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