Problem swords
User NuggetsAreNice
Submission Time 2024-02-15 13:44:45
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:10:3: error: expected ‘,’ or ‘;’ before ‘int’
10 | int useful = 0;
| ^~~
swords.cpp:20:22: error: expected ‘;’ before ‘break’
20 | maybe = false
| ^
| ;
21 | break;
| ~~~~~
swords.cpp:25:11: error: ‘useful’ was not declared in this scope
25 | cout << useful;
| ^~~~~~