Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
138261 万明宇 08比较三个数的大小 C++ Compile Error 0 MS 0 KB 155 2025-11-24 16:07:28

Tests(0/0):


Code:

#include<bits/stdc++.h> using namespace std; int main() { int a, b, c; cin >> a >> b >> c; cout << max(a, b, c) << endl; return 0; }


Run Info:

In file included from /usr/include/c++/5/bits/char_traits.h:39:0,
                 from /usr/include/c++/5/ios:40,
                 from /usr/include/c++/5/istream:38,
                 from /usr/include/c++/5/sstream:38,
                 from /usr/include/c++/5/complex:45,
                 from /usr/include/c++/5/ccomplex:38,
                 from /usr/include/x86_64-linux-gnu/c++/5/bits/stdc++.h:52,
                 from Main.cc:1:
/usr/include/c++/5/bits/stl_algobase.h: In instantiation of 'const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
Main.cc:6:24:   required from here
/usr/include/c++/5/bits/stl_algobase.h:268:17: error: '__comp' cannot be used as a function
       if (__comp(__a, __b))
                 ^