In file included from /usr/include/c++/7/bits/char_traits.h:39:0, from /usr/include/c++/7/ios:40, from /usr/include/c++/7/istream:38, from /usr/include/c++/7/sstream:38, from /usr/include/c++/7/complex:45, from /usr/include/c++/7/ccomplex:39, from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52, from Main.cc:1: /usr/include/c++/7/bits/stl_algobase.h: In instantiation of ‘const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = double; _Compare = double]’: Main.cc:17:13: required from here /usr/include/c++/7/bits/stl_algobase.h:268:17: error: ‘__comp’ cannot be used as a function if (__comp(__a, __b)) ~~~~~~^~~~~~~~~~ Main.cc: In function ‘int max(int, int, int)’: Main.cc:13:1: warning: control reaches end of non-void function [-Wreturn-type] } ^