Problem 3nplus1
User Reality1001
Submission Time 2024-02-16 19:41:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:12: error: expected ‘;’ before ‘)’ token
7 | for (n > 1){
| ^
| ;
3nplus1.cpp:17:1: error: expected primary-expression before ‘}’ token
17 | }
| ^
3nplus1.cpp:16:3: error: expected ‘;’ before ‘}’ token
16 | }
| ^
| ;
17 | }
| ~
3nplus1.cpp:17:1: error: expected primary-expression before ‘}’ token
17 | }
| ^
3nplus1.cpp:16:3: error: expected ‘)’ before ‘}’ token
16 | }
| ^
| )
17 | }
| ~
3nplus1.cpp:7:6: note: to match this ‘(’
7 | for (n > 1){
| ^
3nplus1.cpp:17:1: error: expected primary-expression before ‘}’ token
17 | }
| ^