Problem xmas
User Yuhmama
Submission Time 2026-06-23 16:11:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int main()’:
xmas.cpp:8:7: error: ‘i’ was not declared in this scope
8 | for (i=0, i<=n, i++) {
| ^
xmas.cpp:11:5: error: expected primary-expression before ‘return’
11 | return 0;
| ^~~~~~
xmas.cpp:10:4: error: expected ‘;’ before ‘return’
10 | }
| ^
| ;
11 | return 0;
| ~~~~~~
xmas.cpp:11:5: error: expected primary-expression before ‘return’
11 | return 0;
| ^~~~~~
xmas.cpp:10:4: error: expected ‘)’ before ‘return’
10 | }
| ^
| )
11 | return 0;
| ~~~~~~
xmas.cpp:8:6: note: to match this ‘(’
8 | for (i=0, i<=n, i++) {
| ^