Problem 3nplus1
User Cat
Submission Time 2025-01-20 17:55:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:13: error: expected ‘;’ before ‘{’ token
10 | else{3*n+1
| ^
| ;
11 | {
| ~
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:10:7: note: to match this ‘{’
10 | else{3*n+1
| ^
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:6:15: note: to match this ‘{’
6 | while(n != 1){
| ^
3nplus1.cpp:12:2: error: expected ‘}’ at end of input
12 | }
| ^
3nplus1.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^