Submission #75765
ソースコード
ステータス
コンパイルメッセージ
In file included from /usr/local/gcc-8.2.0/include/c++/8.2.0/algorithm:61,
from /usr/local/gcc-8.2.0/include/c++/8.2.0/x86_64-pc-linux-gnu/bits/stdc++.h:65,
from ./Main.cpp:1:
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In instantiation of ‘const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]’:
./Main.cpp:7:23: required from here
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:268:17: error: ‘__comp’ cannot be used as a function
if (__comp(__a, __b))
~~~~~~^~~~~~~~~~
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h: In instantiation of ‘const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]’:
./Main.cpp:8:23: required from here
/usr/local/gcc-8.2.0/include/c++/8.2.0/bits/stl_algobase.h:246:17: error: ‘__comp’ cannot be used as a function
if (__comp(__b, __a))
~~~~~~^~~~~~~~~~
セット
テストケース