0_0_15230956_15320.cpp: In function 'int main()': 0_0_15230956_15320.cpp:29:7: error: 'n' was not declared in this scope cout<<n<<endl; ^