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