0_0_39139585_25767.cpp: In function 'int main()':
0_0_39139585_25767.cpp:45:9: error: 'ios' has not been declared
45 | ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
| ^~~
0_0_39139585_25767.cpp:45:37: error: 'cin' was not declared in this scope
45 | ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
| ^~~
0_0_39139585_25767.cpp:9:1: note: 'std::cin' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
8 | #include<cstring>
+++ |+#include <iostream>
9 | using namespace std;
0_0_39139585_25767.cpp:45:48: error: 'cout' was not declared in this scope
45 | ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
| ^~~~
0_0_39139585_25767.cpp:45:48: note: 'std::cout' is defined in header '<iostream>'; did you forget to '#include <iostream>'?
0_0_39139585_25767.cpp:51:36: error: 'endl' was not declared in this scope
51 | cout<<"0"<<endl;
| ^~~~
0_0_39139585_25767.cpp:9:1: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
8 | #include<cstring>
+++ |+#include <ostream>
9 | using namespace std;
0_0_39139585_25767.cpp:56:37: error: 'endl' was not declared in this scope
56 | cout<<"-1"<<endl;
| ^~~~
0_0_39139585_25767.cpp:56:37: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
0_0_39139585_25767.cpp:69:45: error: 'endl' was not declared in this scope
69 | if(tp.size()<n) cout<<"-1"<<endl;
| ^~~~
0_0_39139585_25767.cpp:69:45: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
0_0_39139585_25767.cpp:77:36: error: 'endl' was not declared in this scope
77 | cout<<ans<<endl;
| ^~~~
0_0_39139585_25767.cpp:77:36: note: 'std::endl' is defined in header '<ostream>'; did you forget to '#include <ostream>'?
|