Problem | 3nplus1 |
---|---|
User | SMILE |
Submission Time | 2024-04-13 11:43:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:9:10: error: lvalue required as left operand of assignment
9 | if(n%2=0){
| ^
3nplus1.cpp:11:16: error: lvalue required as left operand of assignment
11 | }else if(n%2=1){
| ^
3nplus1.cpp:12:10: error: unable to find numeric literal operator ‘operator""n’
12 | cout<<3n+1;
| ^~
3nplus1.cpp:16:1: error: expected ‘}’ at end of input
16 | }
| ^
3nplus1.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^