Problem | lboard |
---|---|
User | G |
Submission Time | 2024-02-12 23:57:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lboard.cpp: In function ‘int main()’:
lboard.cpp:26:23: error: lvalue required as left operand of assignment
26 | if(((a-i=1 or a-i=-1)&&b==j)or((b-j=1 or b-j=-1)&&a==i){
| ^
lboard.cpp:26:50: error: lvalue required as left operand of assignment
26 | if(((a-i=1 or a-i=-1)&&b==j)or((b-j=1 or b-j=-1)&&a==i){
| ^
lboard.cpp:33:7: error: expected ‘)’ before ‘;’ token
33 | a=i;
| ^
| )
lboard.cpp:26:6: note: to match this ‘(’
26 | if(((a-i=1 or a-i=-1)&&b==j)or((b-j=1 or b-j=-1)&&a==i){
| ^
lboard.cpp:39:23: error: lvalue required as left operand of assignment
39 | if(((a-i=1 or a-i=-1)&&b==j)or((b-j=1 or b-j=-1)&&a==i){
| ^
lboard.cpp:39:50: error: lvalue required as left operand of assignment
39 | if(((a-i=1 or a-i=-1)&&b==j)or((b-j=1 or b-j=-1)&&a==i){