0_0_31804935_20150.cpp: In function 'int main()': 0_0_31804935_20150.cpp:10:9: error: expected ';' before 'for' for(int i=0;i<n;i++) ^ 0_0_31804935_20150.cpp:10:21: error: 'i' was not declared in this scope for(int i=0;i<n;i++) ^