Problem | mountainbridges |
---|---|
User | Josh28acc2 |
Submission Time | 2023-12-03 22:34:45 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountainbridges.cpp: In function ‘void solve()’:
mountainbridges.cpp:134:58: error: call of overloaded ‘abs(ll)’ is ambiguous
134 | dp[q] = min(dp[q], dp[q-1] + x*abs(arr[q] - arr[q-1]));
| ^
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 mountainbridges.cpp:82:
/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 mountainbridges.cpp:82:
/usr/include/c++/9/bits/std_abs.h:103:3: note: candidate: ‘constexpr __float128 std::abs(__float128)’
103 | abs(__float128