/in/foo.cc: In function 'int main()':
/in/foo.cc:11:2: error: 'map' was not declared in this scope
map<int ,PII> cnt_1,cnt_2;
^~~
/in/foo.cc:11:6: error: expected primary-expression before 'int'
map<int ,PII> cnt_1,cnt_2;
^~~
/in/foo.cc:19:13: error: 'cnt_1' was not declared in this scope
if(x==1) cnt_1[cnt++]={i,j};
^~~~~
/in/foo.cc:20:18: error: 'cnt_2' was not declared in this scope
else if(x==2) cnt_2[cnt++]={i,j};
^~~~~
/in/foo.cc:23:6: error: 'cnt_1' was not declared in this scope
if(!cnt_1.size()||!cnt_2.size()) cout<<-1<<endl;
^~~~~
/in/foo.cc:23:21: error: 'cnt_2' was not declared in this scope
if(!cnt_1.size()||!cnt_2.size()) cout<<-1<<endl;
^~~~~
/in/foo.cc:27:15: error: unable to deduce 'auto&&' from 'cnt_2'
for(auto t1:cnt_2)
^~~~~
/in/foo.cc:30:16: error: unable to deduce 'auto&&' from 'cnt_1'
for(auto t2:cnt_1)
^~~~~