answer.code:7:24: error: ‘int y0’ redeclared as different kind of entity
7 | int n,a[1010][1010],x0,y0;
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/11/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/11/bits/c++config.h:586,
from /usr/include/c++/11/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:33,
from answer.code:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:220:1: note: previous declaration ‘double y0(double)’
220 | __MATHCALL (y0,, (_Mdouble_));
| ^~~~~~~~~~
answer.code: In function ‘int main()’:
answer.code:18:40: error: assignment of function ‘double y0(double)’
18 | x0=i,y0=j;
| ~~^~
answer.code:25:22: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
25 | if(i==y0)
| ~^~~~
answer.code:37:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
37 | if(y0==1)
| ~~^~~
answer.code:49:27: error: invalid types ‘int [1010][double(double) throw () {aka double(double)}]’ for array subscript
49 | cout<<a[2][y0];
| ^
answer.code:51:27: error: invalid types ‘int [1010][double(double) throw () {aka double(double)}]’ for array subscript
51 | cout<<a[1][y0];
| ^
answer.code: In function ‘int read()’:
answer.code:5:20: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
5 | int x;scanf("%d",&x);return x;
| ~~~~~^~~~~~~~~