Problem swords
User Kenniene
Submission Time 2024-06-07 17:51:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp:2:7: error: invalid preprocessing directive #Sort
2 | # Sort the swords by attack value in ascending order, and by defense in descending order if attacks are equal
| ^~~~
swords.cpp:5:7: error: invalid preprocessing directive #Initialize
5 | # Initialize the count of useful swords
| ^~~~~~~~~~
swords.cpp:8:7: error: invalid preprocessing directive #Initialize
8 | # Initialize the highest defense seen so far
| ^~~~~~~~~~
swords.cpp:11:7: error: invalid preprocessing directive #Iterate
11 | # Iterate through the sorted list of swords
| ^~~~~~~
swords.cpp:13:11: error: invalid preprocessing directive #If; did you mean #if?
13 | # If the current sword's defense is higher than the highest defense seen so far,
| ^~
| if
swords.cpp:14:11: error: invalid preprocessing directive #it; did you mean #if?
14 |