Submission #57186
ソースコード
ステータス
項目 |
データ |
問題 |
1106 - 破壊の果実 |
ユーザー名 |
もけ
|
投稿日時 |
2019-12-11 17:08:35 |
言語 |
C++14 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
2195 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘int main()’:
./Main.cpp:71:42: error: call of overloaded ‘abs(long unsigned int)’ is ambiguous
chmin(minv, abs(X - (xi + yi)));
^
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:38,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/cmath:47,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from ./Main.cpp:1:
/usr/include/stdlib.h:771:12: note: candidate: ‘int abs(int)’
extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
^~~
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/cmath:47,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:41,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:56:3: note: candidate: ‘long int std::abs(long int)’
abs(long __i) { return __builtin_labs(__i); }
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:61:3: note: candidate: ‘long long int std::abs(long long int)’
abs(long long __x) { return __builtin_llabs (__x); }
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:70:3: note: candidate: ‘constexpr double std::abs(double)’
abs(double __x)
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:74:3: note: candidate: ‘constexpr float std::abs(float)’
abs(float __x)
^~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/std_abs.h:78:3: note: candidate: ‘constexpr long double std::abs(long double)’
abs(long double __x)
^~~
セット
テストケース