Problem swords
User Henries
Submission Time 2024-10-15 19:04:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:16:4: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
16 | ans += 1;
| ^~~
| abs
swords.cpp:19:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | cout << ans;
| ^~~
| abs