记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
自测
题目
P1124 合并果子
语言
C++
递交时间
2022-08-06 20:56:05
评测时间
2022-08-06 20:56:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes