0_0_28985160_3035.cpp: In function 'int main()': 0_0_28985160_3035.cpp:22:20: error: 'n' was not declared in this scope for(int i = 1;i<=n;i++) ^