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

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:32:13: error: ‘is_useful’ was not declared in this scope
32 | if (is_useful) {
| ^~~~~~~~~
swords.cpp: At global scope:
swords.cpp:38:11: error: expected constructor, destructor, or type conversion before ‘(’ token
38 | printf("%d\n", useful_swords);
| ^
swords.cpp:40:5: error: expected unqualified-id before ‘return’
40 | return 0;
| ^~~~~~
swords.cpp:41:1: error: expected declaration before ‘}’ token
41 | }
| ^