Problem catlunch
User sleepyfishy
Submission Time 2025-11-23 13:16:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

catlunch.cpp:4:7: error: invalid preprocessing directive #Priority
4 | # Priority queue to simulate top K accessible fishes
| ^~~~~~~~
catlunch.cpp:5:7: error: invalid preprocessing directive #We
5 | # We use negative values to make Python's min-heap behave like a max-heap
| ^~
catlunch.cpp:10:7: error: invalid preprocessing directive #Initially
10 | # Initially, add the first K fishes into heap
| ^~~~~~~~~
catlunch.cpp:16:11: error: invalid preprocessing directive #Remove
16 | # Remove used fishes from heap top
| ^~~~~~
catlunch.cpp:24:20: error: stray ‘#’ in program
24 | break # stop if best fish is non-positive
| ^
catlunch.cpp:28:11: error: invalid preprocessing directive #Push
28 | # Push next fish if possible
| ^~~~
catlunch.cpp:34:3: error: invalid preprocessing directive #R