Problem goodchef
User ervinthedamsel
Submission Time 2024-07-31 17:59:40
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:21: error: invalid type argument of unary ‘*’ (have ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’})
19 | cout << *pq.top();
| ^
goodchef.cpp:24:1: error: expected ‘}’ at end of input
24 | }
| ^
goodchef.cpp:5:14: note: to match this ‘{’
5 | signed main(){
| ^