0_0_19562406_18678.cpp: In function 'void solve()': 0_0_19562406_18678.cpp:19:2: error: 'cout' was not declared in this scope cout<<ans<<endl; ^ 0_0_19562406_18678.cpp:19:13: error: 'endl' was not declared in this scope cout<<ans<<endl; ^