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