Problem | 3nplus1 |
---|---|
User | Alexis10 |
Submission Time | 2023-11-08 14:03:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:8:9: error: lvalue required as left operand of assignment
8 | if (n%2=0);
| ^
3nplus1.cpp:15:1: error: ‘else’ without a previous ‘if’
15 | else {
| ^~~~
3nplus1.cpp:19:9: error: unable to find numeric literal operator ‘operator""n’
19 | n=3n+1;
| ^~
3nplus1.cpp:22:1: error: expected ‘}’ at end of input
22 | }
| ^
3nplus1.cpp:4:12: note: to match this ‘{’
4 | int main() {
| ^