Problem maximum
User definetlynotbc
Submission Time 2023-02-16 21:15:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

maximum.cpp: In function ‘int main()’:
maximum.cpp:7:7: error: overloaded function with no contextual type information
7 | max=a;
| ^
maximum.cpp:10:7: error: overloaded function with no contextual type information
10 | max=b;
| ^
maximum.cpp:15:6: error: no match for ‘operator<<’ (operand types are ‘std::ostream’ {aka ‘std::basic_ostream<char>’} and ‘<unresolved overloaded function type>’)
15 | cout<<max;
| ~~~~^~~~~
In file included from /usr/include/c++/9/iostream:39,
from maximum.cpp:1:
/usr/include/c++/9/ostream:108:7: note: candidate: ‘std::basic_ostream<_CharT, _Traits>::__ostream_type& std::basic_ostream<_CharT, _Traits>::operator<<(std::basic_ostream<_CharT, _Traits>::__ostream_type& (*)(std::basic_ostream<_CharT, _Traits>::__ostream_type&)) [with _CharT = char; _Traits = std::char_traits<char>; std::basic_ostream<_Ch