Problem | 3nplus1 |
---|---|
User | Curiocodeexplorer |
Submission Time | 2023-11-08 14:03:32 |
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 ‘n’
6 | while n = !1;
| ^
| (
3nplus1.cpp:6:14: error: expected ‘)’ before ‘;’ token
6 | while n = !1;
| ~ ^
| )
3nplus1.cpp:7:14: error: lvalue required as left operand of assignment
7 | if (n % 2 = 0) {
| ^
3nplus1.cpp:9:5: error: expected ‘(’ before ‘else’
9 | if else (n % 2 = 1) {
| ^~~~
| (
3nplus1.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
3nplus1.cpp:7:17: note: to match this ‘{’
7 | if (n % 2 = 0) {
| ^
3nplus1.cpp:14:1: error: expected ‘}’ at end of input
14 | }
| ^
3nplus1.cpp:3:11: note: to match this ‘{’
3 | int main(){
| ^