| Problem | catlunch |
|---|---|
| User | ForgottenDragon |
| Submission Time | 2025-12-27 15:43:14 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
catlunch.cpp: In function ‘int main()’:
catlunch.cpp:20:18: error: ‘idx’ was not declared in this scope
20 | pq.push(arr[idx]);
| ^~~
catlunch.cpp:22:6: error: redeclaration of ‘long long int it’
22 | int it = min(N, K);
| ^~
catlunch.cpp:17:6: note: ‘long long int it’ previously declared here
17 | int it = 0;
| ^~
catlunch.cpp:24:6: error: redeclaration of ‘long long int answer’
24 | int answer = 0;
| ^~~~~~
catlunch.cpp:15:9: note: ‘long long int answer’ previously declared here
15 | int answer = 0;
| ^~~~~~
catlunch.cpp:34:10: error: ‘idx’ was not declared in this scope
34 | if (idx < N) {
| ^~~