Problem 3nplus1
User blob
Submission Time 2023-11-10 09:42:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:5:7: error: ‘i’ was not declared in this scope
5 | for (i=0, i < n, i++) {
| ^
3nplus1.cpp:13:1: error: expected primary-expression before ‘}’ token
13 | }
| ^
3nplus1.cpp:12:3: error: expected ‘;’ before ‘}’ token
12 | }
| ^
| ;
13 | }
| ~
3nplus1.cpp:13:1: error: expected primary-expression before ‘}’ token
13 | }
| ^
3nplus1.cpp:12:3: error: expected ‘)’ before ‘}’ token
12 | }
| ^
| )
13 | }
| ~
3nplus1.cpp:5:6: note: to match this ‘(’
5 | for (i=0, i < n, i++) {
| ^
3nplus1.cpp:13:1: error: expected primary-expression before ‘}’ token
13 | }
| ^