0_0_24406890_26925.cpp:12:11: error: '::main' must return 'int' void main() ^ 0_0_24406890_26925.cpp: In function 'int main()': 0_0_24406890_26925.cpp:19:8: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^