Problem catlunch
User vancongloc
Submission Time 2026-02-13 21:38:50
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp: In function ‘int main()’:
catlunch.cpp:19:16: error: cannot convert ‘std::priority_queue<long long int, std::vector<long long int> >::top’ from type ‘const value_type& (std::priority_queue<long long int, std::vector<long long int> >::)() const’ {aka ‘const long long int& (std::priority_queue<long long int, std::vector<long long int> >::)() const’} to type ‘long long int’
19 | int ans=pq.top,sf=max(0ll,pq.top());
| ^~~