Problem catlunch
User spyrath
Submission Time 2025-06-19 09:14:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp:16:19: error: missing terminating ' character
16 | cout << maxRes << '\n’;
| ^~~~~~~
catlunch.cpp:2:1: error: ‘priority_queue’ does not name a type
2 | priority_queue<long long> pq;
| ^~~~~~~~~~~~~~
catlunch.cpp:3:1: error: ‘cin’ does not name a type
3 | cin >> N >> K;
| ^~~
catlunch.cpp:4:1: error: expected unqualified-id before ‘for’
4 | for (int i = 0; i < N; i++){
| ^~~
catlunch.cpp:4:17: error: ‘i’ does not name a type
4 | for (int i = 0; i < N; i++){
| ^
catlunch.cpp:4:24: error: ‘i’ does not name a type
4 | for (int i = 0; i < N; i++){
| ^
catlunch.cpp:16:1: error: ‘cout’ does not name a type
16 | cout << maxRes << '\n’;
| ^~~~