运行 ID: 84994

Main.cc: In function ‘int main()’:
Main.cc:6:12: error: no match for ‘operator>’ (operand types are ‘std::basic_ostream’ and ‘int’)
     cout<b?a:b;
     ~~~~~~~^~
Main.cc:6:12: note: candidate: operator>(int, int) 
Main.cc:6:12: note:   no known conversion for argument 1 from ‘std::basic_ostream’ to ‘int’
In file included from /usr/include/c++/7/bits/stl_algobase.h:64:0,
                 from /usr/include/c++/7/bits/char_traits.h:39,
                 from /usr/include/c++/7/ios:40,
                 from /usr/include/c++/7/ostream:38,
                 from /usr/include/c++/7/iostream:39,
                 from Main.cc:1:
/usr/include/c++/7/bits/stl_pair.h:467:5: note: candidate: template constexpr bool std::operator>(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&)
     operator>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y)
     ^~~~~~~~
/usr/include/c++/7/bits/stl_pair.h:467:5: note:   template argument deduction/substitution failed:
Main.cc:6:13: note:   ‘std::basic_ostream’ is not derived from ‘const std::pair<_T1, _T2>’
     cout<