Compile Error

/in/foo.cc:1:1: error: 'include' does not name a type
 include <bits/stdc++.h> 
 ^~~~~~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:6:1: error: 'priority_queue' was not declared in this scope
 priority_queue<int,vector<int>, greater<int> >p; 
 ^~~~~~~~~~~~~~
/in/foo.cc:6:16: error: expected primary-expression before 'int'
 priority_queue<int,vector<int>, greater<int> >p; 
                ^~~
/in/foo.cc:7:1: error: 'cin' was not declared in this scope
 cin >> num;
 ^~~
/in/foo.cc:10:1: error: 'p' was not declared in this scope
 p.push(x)
 ^
/in/foo.cc:12:8: error: 'p' was not declared in this scope
 while (p.size() != 1) {
        ^
/in/foo.cc:19:1: error: expected '}' at end of input
 }
 ^

信息

递交者
类型
递交
题目
P1343 合并果子
语言
C++
递交时间
2024-08-07 16:18:07
评测时间
2024-08-07 16:18:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes