foo.cc:32:1: error: 'priority_queue' does not name a type
   32 | priority_queue<int,vector<int>,greater<int> > q;
      | ^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:39:3: error: 'q' was not declared in this scope
   39 |   q.push(x);
      |   ^
foo.cc:42:9: error: 'q' was not declared in this scope
   42 |  while(!q.empty())
      |         ^
foo.cc:46:3: error: 'res' was not declared in this scope
   46 |   res+=a+b;
      |   ^~~
foo.cc:49:8: error: 'res' was not declared in this scope
   49 |  cout<<res;
      |        ^~~
   
  
    [Hydro](https://hydro.ac)提供评测服务