doll.cpp:15:16: error: 'pairll' was not declared in this scope
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^~~~~~
doll.cpp:15:30: error: 'pairll' was not declared in this scope
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^~~~~~
doll.cpp:15:36: error: template argument 1 is invalid
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^
doll.cpp:15:36: error: template argument 2 is invalid
doll.cpp:15:47: error: 'pairll' was not declared in this scope
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^~~~~~
doll.cpp:15:53: error: template argument 1 is invalid
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^
doll.cpp:15:55: error: template argument 1 is invalid
15 | priority_queue<pairll,vector<pairll>, greater<pairll> >p;
| ^
doll.cpp:15:55: error: template argument 2 is invalid
doll.cpp:15:55: error: template argument 3 is invalid
doll.cpp: In function 'void create_circuit(int, std::vector<int>)':
doll.cpp:21:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<A.size()-1;i++){
| ~^~~~~~~~~~~
doll.cpp:33:26: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
33 | for(int j=0;j<v[i].size();j++){
| ~^~~~~~~~~~~~
doll.cpp:81:17: error: request for member 'size' in 'p', which is of non-class type 'int'
81 | while(p.size()>0)p.pop();
| ^~~~
doll.cpp:81:28: error: request for member 'pop' in 'p', which is of non-class type 'int'
81 | while(p.size()>0)p.pop();
| ^~~
doll.cpp:89:34: error: 'i' was not declared in this scope
89 | if(u[-k-1]==0)u[-i-1]=r;
| ^
doll.cpp:91:23: error: request for member 'push' in 'p', which is of non-class type 'int'
91 | p.push({u[-i-1],k});
| ^~~~
doll.cpp:91:32: error: 'i' was not declared in this scope
91 | p.push({u[-i-1],k});
| ^
doll.cpp:102:19: error: request for member 'begin' in 'p', which is of non-class type 'int'
102 | reverse(p.begin(),p.end());
| ^~~~~
doll.cpp:102:29: error: request for member 'end' in 'p', which is of non-class type 'int'
102 | reverse(p.begin(),p.end());
| ^~~
doll.cpp:103:17: error: request for member 'size' in 'p', which is of non-class type 'int'
103 | while(p.size()>0 && f[-p.top()-1]%2==0)p.pop();
| ^~~~
doll.cpp:103:34: error: request for member 'top' in 'p', which is of non-class type 'int'
103 | while(p.size()>0 && f[-p.top()-1]%2==0)p.pop();
| ^~~
doll.cpp:103:50: error: request for member 'pop' in 'p', which is of non-class type 'int'
103 | while(p.size()>0 && f[-p.top()-1]%2==0)p.pop();
| ^~~
doll.cpp:104:14: error: request for member 'size' in 'p', which is of non-class type 'int'
104 | if(p.size()==0)break;
| ^~~~
doll.cpp:105:17: error: request for member 'size' in 'p', which is of non-class type 'int'
105 | while(p.size()>0){
| ^~~~
doll.cpp:106:21: error: request for member 'size' in 'p', which is of non-class type 'int'
106 | while(p.size()>0 && f[-p.back()-1]%2==0)p.pop();
| ^~~~
doll.cpp:106:38: error: request for member 'back' in 'p', which is of non-class type 'int'
106 | while(p.size()>0 && f[-p.back()-1]%2==0)p.pop();
| ^~~~
doll.cpp:106:55: error: request for member 'pop' in 'p', which is of non-class type 'int'
106 | while(p.size()>0 && f[-p.back()-1]%2==0)p.pop();
| ^~~
doll.cpp:107:18: error: request for member 'size' in 'p', which is of non-class type 'int'
107 | if(p.size()==0)break;
| ^~~~
doll.cpp:108:17: error: request for member 'top' in 'p', which is of non-class type 'int'
108 | z=p.top().sc;
| ^~~
doll.cpp:109:15: error: request for member 'pop_back' in 'p', which is of non-class type 'int'
109 | p.pop_back();
| ^~~~~~~~
doll.cpp:123:27: error: request for member 'push' in 'p', which is of non-class type 'int'
123 | p.push({u[k],-k-1});
| ^~~~
doll.cpp:164:18: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
164 | for(int i=0;i<x.size();i++){
| ~^~~~~~~~~
doll.cpp:168:9: warning: comparison of integer expressions of different signedness: 'll' {aka 'int'} and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
168 | if(h>2*A.size()-2)exit(1);
| ~^~~~~~~~~~~~~