Problem 3nplus1
User Helloworld
Submission Time 2026-01-21 16:47:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:16: error: expected ‘;’ before ‘while’
8 | n <= 10000
| ^
| ;
9 | while not(n == 1);
| ~~~~~
3nplus1.cpp:11:12: error: expected ‘;’ before ‘cout’
11 | n /= 2
| ^
| ;
12 | cout << n;
| ~~~~
3nplus1.cpp:13:7: error: ‘else’ without a previous ‘if’
13 | else;
| ^~~~
3nplus1.cpp:14:6: error: unable to find numeric literal operator ‘operator""n’
14 | 3n += 1
| ^~
3nplus1.cpp:15:16: error: expected ‘}’ at end of input
15 | cout << n;
| ^
3nplus1.cpp:5:14: note: to match this ‘{’
5 | signed main(){;
| ^