foo.cc: In function 'int main()':
foo.cc:6:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
6 | scanf ("%d %d",x,y);
| ~^ ~
| | |
| int* int
foo.cc:6:21: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'int' [-Wformat=]
6 | scanf ("%d %d",x,y);
| ~^ ~
| | |
| int* int
foo.cc:8:16: error: 'Y' was not declared in this scope
8 | if(x>0,Y>0)
| ^
foo.cc:11:14: error: lvalue required as left operand of assignment
11 | if (x*y=0)
| ~^~
[Hydro](https://hydro.ac)提供评测服务