0_0_37650469_31870.cpp: In function 'int main()': 0_0_37650469_31870.cpp:24:19: error: 'n' was not declared in this scope while( cin >> n ) solve(); ^