0_0_24800364_20691.cpp:2:11: error: '::main' must return 'int' void main(){ ^ 0_0_24800364_20691.cpp: In function 'int main()': 0_0_24800364_20691.cpp:4:27: error: expected primary-expression before ')' token while(scanf("%d",&n)!=EOF)){ ^