ログイン
新規登録
AtsuoCoder Waseda Tour Finals 2025
読込中…
Home
Tasks
Clar
Submissions
Standings
提出 4f95c3a5-8f60-45c1-96c1-dff3062976fe
コード
#include <iostream> using namespace std; int main() { int h, a; cin >> h >> a; if(a > h) { cout << 1 << endl; } else { cout << 0 < endl; } }
結果
問題
点数
言語
結果
実行時間
メモリ
B - Trickster
0
C++
WJ
0 ms
0 KiB
コンパイルエラー
Main.cpp: In function 'int main()': Main.cpp:14:19: error: no match for 'operator<' (operand types are 'std::basic_ostream<char>' and '<unresolved overloaded function type>') 14 | cout << 0 < endl; | ~~~~~~~~~~^~~~~~ In file included from /usr/include/c++/13/string:48, from /usr/include/c++/13/bits/locale_classes.h:40, from /usr/include/c++/13/bits/ios_base.h:41, from /usr/include/c++/13/ios:44, from /usr/include/c++/13/ostream:40, from /usr/include/c++/13/iostream:41, from Main.cpp:1: /usr/include/c++/13/bits/stl_iterator.h:583:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&)' (reversed) 583 | operator<=>(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:583:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_IteratorR>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/stl_iterator.h:1690:5: note: candidate: 'template<class _IteratorL, class _IteratorR> requires three_way_comparable_with<_IteratorR, _IteratorL, std::partial_ordering> constexpr std::compare_three_way_result_t<_IteratorL, _IteratorR> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&)' (reversed) 1690 | operator<=>(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1690:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorR>' 14 | cout << 0 < endl; | ^~~~ In file included from /usr/include/c++/13/bits/basic_string.h:47, from /usr/include/c++/13/string:54: /usr/include/c++/13/string_view:633:5: note: candidate: 'template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(basic_string_view<_CharT, _Traits>, __type_identity_t<basic_string_view<_CharT, _Traits> >)' (reversed) 633 | operator<=>(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/13/string_view:633:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: couldn't deduce template parameter '_CharT' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/basic_string.h:3760:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const _CharT*)' (reversed) 3760 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/basic_string.h:3760:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: mismatched types 'const _CharT*' and 'std::basic_ostream<char>' 14 | cout << 0 < endl; | ^~~~ In file included from /usr/include/c++/13/bits/uses_allocator_args.h:38, from /usr/include/c++/13/bits/memory_resource.h:41, from /usr/include/c++/13/string:58: /usr/include/c++/13/tuple:1952:5: note: candidate: 'template<class ... _Tps, class ... _Ups> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_Tps&>(), declval<_Ups&>()))...> std::operator<=>(const tuple<_UTypes ...>&, const tuple<_UTypes ...>&)' (reversed) 1952 | operator<=>(const tuple<_Tps...>& __t, const tuple<_Ups...>& __u) | ^~~~~~~~ /usr/include/c++/13/tuple:1952:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::tuple<_UTypes ...>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/stl_iterator.h:601:5: note: candidate: 'template<class _Iterator> requires three_way_comparable<_Iterator, std::partial_ordering> constexpr std::compare_three_way_result_t<_Iterator, _Iterator> std::operator<=>(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorL>&)' (rewritten) 601 | operator<=>(const reverse_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:601:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_IteratorL>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/stl_iterator.h:1756:5: note: candidate: 'template<class _Iterator> requires three_way_comparable<_Iterator, std::partial_ordering> constexpr std::compare_three_way_result_t<_Iterator, _Iterator> std::operator<=>(const move_iterator<_IteratorL>&, const move_iterator<_IteratorL>&)' (rewritten) 1756 | operator<=>(const move_iterator<_Iterator>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1756:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout << 0 < endl; | ^~~~ In file included from /usr/include/c++/13/bits/stl_algobase.h:64, from /usr/include/c++/13/string:51: /usr/include/c++/13/bits/stl_pair.h:819:5: note: candidate: 'template<class _T1, class _T2> constexpr std::common_comparison_category_t<decltype (std::__detail::__synth3way(declval<_Iterator&>(), declval<_Iterator&>())), decltype (std::__detail::__synth3way(declval<_T2&>(), declval<_T2&>()))> std::operator<=>(const pair<_T1, _T2>&, const pair<_T1, _T2>&)' (rewritten) 819 | operator<=>(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) | ^~~~~~~~ /usr/include/c++/13/bits/stl_pair.h:819:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::pair<_T1, _T2>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/string_view:625:5: note: candidate: 'template<class _CharT, class _Traits> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(basic_string_view<_CharT, _Traits>, basic_string_view<_CharT, _Traits>)' (rewritten) 625 | operator<=>(basic_string_view<_CharT, _Traits> __x, | ^~~~~~~~ /usr/include/c++/13/string_view:625:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'std::basic_string_view<_CharT, _Traits>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/basic_string.h:3745:5: note: candidate: 'template<class _CharT, class _Traits, class _Alloc> constexpr decltype (__char_traits_cmp_cat<_Traits>(0)) std::operator<=>(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&)' (rewritten) 3745 | operator<=>(const basic_string<_CharT, _Traits, _Alloc>& __lhs, | ^~~~~~~~ /usr/include/c++/13/bits/basic_string.h:3745:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::__cxx11::basic_string<_CharT, _Traits, _Allocator>' 14 | cout << 0 < endl; | ^~~~ In file included from /usr/include/c++/13/bits/ios_base.h:46: /usr/include/c++/13/system_error:316:3: note: candidate: 'std::strong_ordering std::operator<=>(const error_code&, const error_code&)' (rewritten) 316 | operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept | ^~~~~~~~ /usr/include/c++/13/system_error:316:33: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_code&' 316 | operator<=>(const error_code& __lhs, const error_code& __rhs) noexcept | ~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13/system_error:498:3: note: candidate: 'std::strong_ordering std::operator<=>(const error_condition&, const error_condition&)' (rewritten) 498 | operator<=>(const error_condition& __lhs, | ^~~~~~~~ /usr/include/c++/13/system_error:498:38: note: no known conversion for argument 1 from 'std::basic_ostream<char>' to 'const std::error_condition&' 498 | operator<=>(const error_condition& __lhs, | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /usr/include/c++/13/bits/stl_iterator.h:550:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const reverse_iterator<_IteratorL>&, const reverse_iterator<_IteratorR>&) requires requires{{std::operator<::__x->base() > std::operator<::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' 550 | operator<(const reverse_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:550:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::reverse_iterator<_IteratorL>' 14 | cout << 0 < endl; | ^~~~ /usr/include/c++/13/bits/stl_iterator.h:1705:5: note: candidate: 'template<class _IteratorL, class _IteratorR> constexpr bool std::operator<(const move_iterator<_IteratorL>&, const move_iterator<_IteratorR>&) requires requires{{std::operator<::__x->base() < std::operator<::__y->base()} -> decltype(auto) [requires std::convertible_to<<placeholder>, bool>];}' 1705 | operator<(const move_iterator<_IteratorL>& __x, | ^~~~~~~~ /usr/include/c++/13/bits/stl_iterator.h:1705:5: note: template argument deduction/substitution failed: Main.cpp:14:21: note: 'std::basic_ostream<char>' is not derived from 'const std::move_iterator<_IteratorL>' 14 | cout << 0 < endl; | ^~~~