Problem swords
User Kelly25
Submission Time 2024-03-08 16:04:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:37:17: error: expected ‘;’ at end of input
37 | useful_swords++
| ~~^
| ;
swords.cpp:37:15: error: expected ‘}’ at end of input
37 | useful_swords++
| ^~
swords.cpp:32:18: note: to match this ‘{’
32 | if (is_useful) {
| ^
swords.cpp:37:15: error: expected ‘}’ at end of input
37 | useful_swords++
| ^~
swords.cpp:28:55: note: to match this ‘{’
28 | if (attack < prev_attack && defense < prev_defense) {
| ^
swords.cpp:37:15: error: expected ‘}’ at end of input
37 | useful_swords++
| ^~
swords.cpp:23:37: note: to match this ‘{’
23 | for (int j = 0; j < i; ++j) {
| ^
swords.cpp:37:15: error: expected ‘}’ at