0_0_21001603_10723.cpp: In function 'int main()': 0_0_21001603_10723.cpp:9:22: error: 'd' was not declared in this scope while(~scanf("%d", &d)){ ^