Problem 3nplus1II
User ZacharyTan2010
Submission Time 2024-02-05 17:29:06
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1II.cpp: In function ‘int main()’:
3nplus1II.cpp:10:16: error: expected ‘;’ before ‘}’ token
10 | if(x==1){yes=1}
| ^
| ;
3nplus1II.cpp:11:22: error: expected ‘;’ before ‘}’ token
11 | }if(yes==1){cout<<-1}
| ^
| ;
3nplus1II.cpp:12:13: error: expected ‘;’ before ‘}’ token
12 | else{cout<<x}}
| ^
| ;