Problem 3nplus1
User yq
Submission Time 2026-06-24 20:17:29
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:11: error: expected ‘;’ before ‘)’ token
8 | for(n!=1){
| ^
| ;
3nplus1.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
3nplus1.cpp:18:3: error: expected ‘;’ before ‘}’ token
18 | }
| ^
| ;
19 | }
| ~
3nplus1.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^
3nplus1.cpp:18:3: error: expected ‘)’ before ‘}’ token
18 | }
| ^
| )
19 | }
| ~
3nplus1.cpp:8:6: note: to match this ‘(’
8 | for(n!=1){
| ^
3nplus1.cpp:19:1: error: expected primary-expression before ‘}’ token
19 | }
| ^