Problem 3nplus1
User yqiiiiiii
Submission Time 2025-06-16 15:01:09
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:10:11: error: expected ‘;’ before ‘}’ token
10 | n = n/2
| ^
| ;
11 | }else{
| ~
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:7:24: note: to match this ‘{’
7 | while (n < 1 || n > 1){
| ^
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:3:12: note: to match this ‘{’
3 | int main() {
| ^