Problem examstress2_ex
User benji
Submission Time 2024-10-16 08:48:27
Score 0

Compile Error

examstress2_ex.cpp:1:3: error: invalid preprocessing directive #Read
1 | # Read N and K from input
| ^~~~
examstress2_ex.cpp:4:3: error: invalid preprocessing directive #Read
4 | # Read the weights of the N cats
| ^~~~
examstress2_ex.cpp:7:3: error: invalid preprocessing directive #Edge
7 | # Edge case: If there are no cats, no removals are needed and the weight is 0
| ^~~~
examstress2_ex.cpp:11:7: error: invalid preprocessing directive #Calculate
11 | # Calculate the initial total weight and check the initial average
| ^~~~~~~~~
examstress2_ex.cpp:16:11: error: invalid preprocessing directive #Sort
16 | # Sort the weights in descending order to start removing the heaviest cats
| ^~~~
examstress2_ex.cpp:19:11: error: invalid preprocessing directive #Initialize
19 | # Initialize the count of removals and adjust the total weight
|