0_0_30179806_12414.cpp: In function 'int main()': 0_0_30179806_12414.cpp:33:9: error: 'maxn' was not declared in this scope cout<<maxn<<endl; ^