0_0_18900122_30581.cpp: In function 'int main()': 0_0_18900122_30581.cpp:8:21: error: 'd' was not declared in this scope while(~scanf("%d",&d)) ^