Problem | boxispull |
---|---|
User | EternalTempest |
Submission Time | 2023-08-02 23:00:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
boxispull.cpp:27:11: error: ‘int y1’ redeclared as different kind of entity
27 | int x2,x1,y1,y2,tc,arr[MAXN+10];
| ^~
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/9/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/c++config.h:528,
from /usr/include/c++/9/cassert:43,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:33,
from boxispull.cpp:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration ‘double y1(double)’
221 | __MATHCALL (y1,, (_Mdouble_));
| ^~~~~~~~~~
boxispull.cpp: In function ‘int main()’:
boxispull.cpp:35:41: error: invalid operands of types ‘int’ and ‘double(double) noexcept’ to binary ‘operator-’
35 | int dx = abs(x2-x1), dy = abs(y2-y1);
| ~~^~~
|