0_0_16655513_8426.cpp: In function 'int main()': 0_0_16655513_8426.cpp:7:24: error: 'n' was not declared in this scope while(~scanf("%d",&n)) ^