0_0_29018977_6864.cpp: In function 'int main()': 0_0_29018977_6864.cpp:8:6: error: 'i' was not declared in this scope for(i=0;i<n;i++) ^