Problem | 3nplus1 |
---|---|
User | Curiocodeexplorer |
Submission Time | 2023-11-08 14:00:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
3nplus1.cpp: In function ‘int main()’:
3nplus1.cpp:7:8: error: expected ‘(’ before ‘n’
7 | while n! = 1;
| ^
| (
3nplus1.cpp:7:9: error: expected ‘)’ before ‘!’ token
7 | while n! = 1;
| ~^
| )
3nplus1.cpp:7:11: error: expected primary-expression before ‘=’ token
7 | while n! = 1;
| ^
3nplus1.cpp:8:12: error: lvalue required as left operand of assignment
8 | if (n%2 = 0) {
| ^
3nplus1.cpp:10:5: error: expected ‘(’ before ‘else’
10 | if else (n%2 = 1) {
| ^~~~
| (
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:8:15: note: to match this ‘{’
8 | if (n%2 = 0) {
| ^
3nplus1.cpp:15:1: error: expected ‘}’ at end of input
15 | }
| ^
3nplus1.cpp:4:11: note: to match this ‘{’
4 | int main(){
|