prog.cpp:20:9: error: ‘pair’ does not name a type
typedef pair<int,int> pii;
^~~~
prog.cpp:38:2: error: ‘vector’ does not name a type
vector<int> v;
^~~~~~
prog.cpp:41:1: error: ‘vector’ does not name a type
vector<oin> v;
^~~~~~
prog.cpp:43:1: error: ‘string’ does not name a type
string ss(int i){
^~~~~~
prog.cpp: In function ‘void dfs(int, int)’:
prog.cpp:54:2: error: ‘string’ was not declared in this scope
string sout;
^~~~~~
prog.cpp:56:3: error: ‘sout’ was not declared in this scope
sout+=" ";
^~~~
prog.cpp:59:5: error: ‘v’ was not declared in this scope
if(v[ii].k){
^
prog.cpp:61:4: error: ‘sout’ was not declared in this scope
sout[sout.size()-2] = '+';
^~~~
prog.cpp:63:4: error: ‘sout’ was not declared in this scope
sout[sout.size()-2] = '-';
^~~~
prog.cpp:66:2: error: ‘sout’ was not declared in this scope
sout+=ss(ii);
^~~~
prog.cpp:66:13: error: ‘ss’ was not declared in this scope
sout+=ss(ii);
^
prog.cpp:67:29: error: ‘printf’ was not declared in this scope
printf("%s\n", sout.c_str());
^
prog.cpp:68:6: error: ‘v’ was not declared in this scope
if(!v[ii].mais){
^
prog.cpp: In function ‘int main()’:
prog.cpp:78:16: error: ‘scanf’ was not declared in this scope
scanf("%d", &n);
^
prog.cpp:79:2: error: ‘v’ was not declared in this scope
v.resize(n+1);
^