Problem | 3nplus1 |
---|---|
User | Dana |
Submission Time | 2023-11-08 15:25:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:8: error: expected ‘(’ before ‘{’ token
6 | while {
| ^
| (
3nplus1.cpp:6:8: error: expected primary-expression before ‘{’ token
3nplus1.cpp:6:7: error: expected ‘)’ before ‘{’ token
6 | while {
| ^~
| )
3nplus1.cpp:8:11: error: lvalue required as left operand of assignment
8 | if (n%2=0) {
| ^
3nplus1.cpp:12:11: error: unable to find numeric literal operator ‘operator""n’
12 | cout << 3n+1;
| ^~
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:4:11: note: to match this ‘{’
4 | int main(){
| ^