Problem | boxispull |
---|---|
User | Mineshafter61 |
Submission Time | 2024-01-22 09:53:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
boxispull.cpp: In function ‘long int taxicab(long int, long int, long int, long int)’:
boxispull.cpp:5:67: error: call of overloaded ‘abs(long int)’ is ambiguous
5 | long taxicab(long x1, long y1, long x2, long y2) {return abs(x1-x2)+abs(y1-y2);}
| ^
In file included from /usr/include/c++/9/cstdlib:75,
from /usr/include/c++/9/ext/string_conversions.h:41,
from /usr/include/c++/9/bits/basic_string.h:6496,
from /usr/include/c++/9/string:55,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from boxispull.cpp:2:
/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)’