Problem 3nplus1
User QPWOEI320
Submission Time 2024-06-24 14:45:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:9: error: ‘i’ was not declared in this scope
8 | while (i>1) {
| ^
3nplus1.cpp:10:14: error: expected ‘;’ before ‘}’ token
10 | {cout <<a/2}
| ^
| ;
3nplus1.cpp:12:15: error: expected ‘;’ before ‘}’ token
12 | {cout <<a*3+1}
| ^
| ;
3nplus1.cpp:13:2: error: expected ‘}’ at end of input
13 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^