0_0_38575312_18833.cpp: In function 'int main()': 0_0_38575312_18833.cpp:19:18: error: expected ';' before 'for' cin>>n ^ ; for(int i=0;i<n;i++) ~~~ 0_0_38575312_18833.cpp:20:24: error: 'i' was not declared in this scope for(int i=0;i<n;i++) ^