Problem goodchef
User ervinthedamsel
Submission Time 2024-07-31 17:59:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

goodchef.cpp: In function ‘int main()’:
goodchef.cpp:18:10: error: invalid use of member function ‘bool std::priority_queue<_Tp, _Sequence, _Compare>::empty() const [with _Tp = long long int; _Sequence = std::vector<long long int, std::allocator<long long int> >; _Compare = std::less<long long int>]’ (did you forget the ‘()’ ?)
18 | if(pq.empty == false){
| ~~~^~~~~
| ()
goodchef.cpp:19:17: error: ‘class std::priority_queue<long long int>’ has no member named ‘begin’
19 | cout << *pq.begin();
| ^~~~~
goodchef.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
goodchef.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^