Problem atomsplit
User XinLoiDuongNgu
Submission Time 2025-08-01 22:51:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

atomsplit.cpp: In function ‘int main()’:
atomsplit.cpp:18:15: error: cannot convert ‘std::priority_queue<long long int>::top’ from type ‘const value_type& (std::priority_queue<long long int>::)() const’ {aka ‘const long long int& (std::priority_queue<long long int>::)() const’} to type ‘long long int’
18 | ll max = pq.top;
| ^~~
atomsplit.cpp:21:6: error: expected ‘;’ before ‘if’
21 | t--
| ^
| ;
22 | if (max >1)
| ~~