| Problem | monsters2 |
|---|---|
| User | Mimikyu |
| Submission Time | 2025-11-10 10:56:23 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
monsters2.cpp: In function ‘int main()’:
monsters2.cpp:28:37: error: call of overloaded ‘abs(__gnu_cxx::__alloc_traits<std::allocator<long long unsigned int>, long long unsigned int>::value_type)’ is ambiguous
28 | while(j+1<k and abs(b[j+1]-p)<=abs(b[j]-p))j++;
| ^
In file included from /usr/include/c++/9/bits/std_abs.h:38,
from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from monsters2.cpp:1:
/usr/include/stdlib.h:840:12: note: candidate: ‘int abs(int)’
840 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
| ^~~
In file included from /usr/include/c++/9/cmath:47,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from monsters2.cpp:1:
/usr/include/c++/9/bits/std_abs.h:103:3: note: candidate: ‘constexp