Problem 3nplus1
User JK13
Submission Time 2023-11-08 14:47:31
Score 0
Max Time N/A
Max Memory N/A

Compile Error

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