Problem xmas
User rhea61
Submission Time 2023-11-09 08:52:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

xmas.cpp: In function ‘int32_t main()’:
xmas.cpp:11:14: error: ‘l’ was not declared in this scope
11 | for (int i=l: i<=n: i++){
| ^
xmas.cpp:14:2: error: expected ‘;’ before ‘for’
14 | }
| ^
| ;
15 | for (int i=1; i<=n; i++) {
| ~~~
xmas.cpp:15:3: error: expected primary-expression before ‘for’
15 | for (int i=1; i<=n; i++) {
| ^~~
xmas.cpp:14:2: error: expected ‘;’ before ‘for’
14 | }
| ^
| ;
15 | for (int i=1; i<=n; i++) {
| ~~~
xmas.cpp:15:3: error: expected primary-expression before ‘for’
15 | for (int i=1; i<=n; i++) {
| ^~~
xmas.cpp:14:2: error: expected ‘)’ before ‘for’
14 | }
| ^
| )
15 | for (int i=1; i<=n; i++) {
| ~~~
xmas.cpp:11:7: note: to match this ‘(’
11 | for (int i=l: i<=n: i++){
| ^