Problem 3nplus1
User jaydenlol
Submission Time 2026-06-22 16:30:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:11:13: error: ‘i’ was not declared in this scope
11 | while (n!= i) {
| ^
3nplus1.cpp:12:23: error: expected ‘;’ before ‘:’ token
12 | if (n %2 ==0) n = n/2:
| ^
| ;
3nplus1.cpp:17:1: error: expected ‘}’ at end of input
17 | }
| ^
3nplus1.cpp:5:12: note: to match this ‘{’
5 | int main() {
| ^