Problem 3nplus1
User officemouse
Submission Time 2023-11-08 11:26:44
Score 0
Max Time N/A
Max Memory N/A

Compile Error

3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:15: error: expected primary-expression before ‘)’ token
8 | for (n!=1;){
| ^
3nplus1.cpp:8:15: error: expected ‘;’ before ‘)’ token
8 | for (n!=1;){
| ^
| ;
3nplus1.cpp:9:19: error: expected primary-expression before ‘)’ token
9 | if(n%2==0;){
| ^
3nplus1.cpp:14:6: error: unable to find numeric literal operator ‘operator""n’
14 | n=3n+1;
| ^~