Problem swords
User Teeskit
Submission Time 2026-01-29 16:23:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

swords.cpp: In function ‘int main()’:
swords.cpp:9:2: error: expected ‘,’ or ‘;’ before ‘for’
9 | for (int i = 0; i < n; i++ ) {
| ^~~
swords.cpp:9:18: error: ‘i’ was not declared in this scope
9 | for (int i = 0; i < n; i++ ) {
| ^
swords.cpp:19:1: error: expected ‘}’ at end of input
19 | }
| ^
swords.cpp:3:15: note: to match this ‘{’
3 | signed main() {
| ^