Problem | 3nplus1 |
---|---|
User | Dana |
Submission Time | 2023-11-08 15:22:55 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:6:5: error: expected ‘(’ before ‘while’
6 | if while (n%2=0) {
| ^~~~~
| (
3nplus1.cpp:9:6: error: expected primary-expression before ‘else’
9 | if (else) {
| ^~~~
3nplus1.cpp:9:6: error: expected ‘)’ before ‘else’
9 | if (else) {
| ~^~~~
| )
3nplus1.cpp:10:11: error: unable to find numeric literal operator ‘operator""n’
10 | cout << 3n+1;
| ^~