QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#68106#4152. 工作安排 HuangHanShengCompile Error//C++2.1kb2022-12-14 17:41:232022-12-14 17:41:24

详细

answer.code: In function ‘void insert1(int, int, int, int)’:
answer.code:25:5: error: reference to ‘data’ is ambiguous
   25 |     data[++num].y=y;data[num].z=z;data[num].c=c;data[num].next=h[x];h[x]=num;
      |     ^~~~
In file included from /usr/include/c++/11/deque:68,
                 from /usr/include/c++/11/queue:60,
                 from answer.code:1:
/usr/include/c++/11/bits/range_access.h:319:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
  319 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:310:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
  310 |     data(_Tp (&__array)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:300:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
  300 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:290:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
  290 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
answer.code:23:2: note:                 ‘node data [4000000]’
   23 | }data[N*N];
      |  ^~~~
answer.code:25:21: error: reference to ‘data’ is ambiguous
   25 |     data[++num].y=y;data[num].z=z;data[num].c=c;data[num].next=h[x];h[x]=num;
      |                     ^~~~
In file included from /usr/include/c++/11/deque:68,
                 from /usr/include/c++/11/queue:60,
                 from answer.code:1:
/usr/include/c++/11/bits/range_access.h:319:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
  319 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:310:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
  310 |     data(_Tp (&__array)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:300:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
  300 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:290:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
  290 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
answer.code:23:2: note:                 ‘node data [4000000]’
   23 | }data[N*N];
      |  ^~~~
answer.code:25:35: error: reference to ‘data’ is ambiguous
   25 |     data[++num].y=y;data[num].z=z;data[num].c=c;data[num].next=h[x];h[x]=num;
      |                                   ^~~~
In file included from /usr/include/c++/11/deque:68,
                 from /usr/include/c++/11/queue:60,
                 from answer.code:1:
/usr/include/c++/11/bits/range_access.h:319:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
  319 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:310:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
  310 |     data(_Tp (&__array)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:300:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(const _Container&)’
  300 |     data(const _Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:290:5: note:                 ‘template<class _Container> constexpr decltype (__cont.data()) std::data(_Container&)’
  290 |     data(_Container& __cont) noexcept(noexcept(__cont.data()))
      |     ^~~~
answer.code:23:2: note:                 ‘node data [4000000]’
   23 | }data[N*N];
      |  ^~~~
answer.code:25:49: error: reference to ‘data’ is ambiguous
   25 |     data[++num].y=y;data[num].z=z;data[num].c=c;data[num].next=h[x];h[x]=num;
      |                                                 ^~~~
In file included from /usr/include/c++/11/deque:68,
                 from /usr/include/c++/11/queue:60,
                 from answer.code:1:
/usr/include/c++/11/bits/range_access.h:319:5: note: candidates are: ‘template<class _Tp> constexpr const _Tp* std::data(std::initializer_list<_Tp>)’
  319 |     data(initializer_list<_Tp> __il) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:310:5: note:                 ‘template<class _Tp, long unsigned int _Nm> constexpr _Tp* std::data(_Tp (&)[_Nm])’
  310 |     data(_Tp (&__array)[_Nm]) noexcept
      |     ^~~~
/usr/include/c++/11/bits/range_access.h:300:5: note:                 ‘template<class _Container> c...