QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#541247#4990. Coffee Cup ComboZhaoZiLongCompile Error//C++14249b2024-08-31 19:00:312024-08-31 19:00:33

详细

answer.code: In function ‘int main()’:
answer.code:9:30: error: reference to ‘get’ is ambiguous
    9 |                         ok++;get=2;
      |                              ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:63,
                 from answer.code:1:
/usr/include/c++/13/array:411:5: note: candidates are: ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp&& std::get(const array<_Tp, _Nm>&&)’
  411 |     get(const array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/13/array:402:5: note:                 ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr const _Tp& std::get(const array<_Tp, _Nm>&)’
  402 |     get(const array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
/usr/include/c++/13/array:393:5: note:                 ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp&& std::get(array<_Tp, _Nm>&&)’
  393 |     get(array<_Tp, _Nm>&& __arr) noexcept
      |     ^~~
/usr/include/c++/13/array:384:5: note:                 ‘template<long unsigned int _Int, class _Tp, long unsigned int _Nm> constexpr _Tp& std::get(array<_Tp, _Nm>&)’
  384 |     get(array<_Tp, _Nm>& __arr) noexcept
      |     ^~~
In file included from /usr/include/c++/13/functional:53,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53:
/usr/include/c++/13/tuple:1864:5: note:                 ‘template<class _Tp, class ... _Types> constexpr const _Tp&& std::get(const tuple<_Types ...>&&)’
 1864 |     get(const tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1852:5: note:                 ‘template<class _Tp, class ... _Types> constexpr const _Tp& std::get(const tuple<_Types ...>&)’
 1852 |     get(const tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1841:5: note:                 ‘template<class _Tp, class ... _Types> constexpr _Tp&& std::get(tuple<_Types ...>&&)’
 1841 |     get(tuple<_Types...>&& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1830:5: note:                 ‘template<class _Tp, class ... _Types> constexpr _Tp& std::get(tuple<_Types ...>&)’
 1830 |     get(tuple<_Types...>& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1820:5: note:                 ‘template<long unsigned int __i, class ... _Elements> constexpr std::__enable_if_t<(__i >= sizeof... (_Types))> std::get(const tuple<_Types ...>&)’
 1820 |     get(const tuple<_Elements...>&) = delete;
      |     ^~~
/usr/include/c++/13/tuple:1810:5: note:                 ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Types ...> >&& std::get(const tuple<_Types ...>&&)’
 1810 |     get(const tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1801:5: note:                 ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Types ...> >&& std::get(tuple<_Types ...>&&)’
 1801 |     get(tuple<_Elements...>&& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1795:5: note:                 ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Types ...> >& std::get(const tuple<_Types ...>&)’
 1795 |     get(const tuple<_Elements...>& __t) noexcept
      |     ^~~
/usr/include/c++/13/tuple:1789:5: note:                 ‘template<long unsigned int __i, class ... _Elements> constexpr std::__tuple_element_t<__i, std::tuple<_Types ...> >& std::get(tuple<_Types ...>&)’
 1789 |     get(tuple<_Elements...>& __t) noexcept
      |     ^~~
In file included from /usr/include/c++/13/bits/stl_algobase.h:64,
                 from /usr/include/c++/13/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:51:
/usr/include/c++/13/bits/stl_pair.h:1094:5: note:                 ‘template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_Up, _Tp>&&)’
 1094 |     get(const pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/13/bits/stl_pair.h:1089:5: note:                 ‘template<class _Tp, class _Up> constexpr _Tp&& std::get(pair<_Up, _Tp>&&)’
 1089 |     get(pair<_Up, _Tp>&& __p) noexcept
      |     ^~~
/usr/include/c++/13/bits/stl_pair.h:1084:5: note:                 ‘template<class _Tp, class _Up> constexpr const _Tp& std::get(const pair<_Up, _Tp>&)’
 1084 |     get(const pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/13/bits/stl_pair.h:1079:5: note:                 ‘template<class _Tp, class _Up> constexpr _Tp& std::get(pair<_Up, _Tp>&)’
 1079 |     get(pair<_Up, _Tp>& __p) noexcept
      |     ^~~
/usr/include/c++/13/bits/stl_pair.h:1074:5: note:                 ‘template<class _Tp, class _Up> constexpr const _Tp&& std::get(const pair<_T1, _T2>&&)’
 1074 |     get(const pair<_Tp, _Up>&& __p) noexcept
      |     ^~~
/usr/include/c++/13/bits/stl_pair.h:1069:5: note:                 ‘template<class _Tp, ...