/ Vijos /

记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:9: error: reference to 'next' is ambiguous
  memset(next,0,sizeof(next));
         ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:25:23: error: reference to 'next' is ambiguous
  memset(next,0,sizeof(next));
                       ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:45:6: error: reference to 'next' is ambiguous
      next[i][j][k].x=x-dx[k];
      ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:46:6: error: reference to 'next' is ambiguous
      next[i][j][k].y=y-dy[k];
      ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:94:11: error: reference to 'next' is ambiguous
     int x=next[tno.x][tno.y][t].x;
           ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~
/in/foo.cc:95:11: error: reference to 'next' is ambiguous
     int y=next[tno.x][tno.y][t].y;
           ^~~~
/in/foo.cc:13:20: note: candidates are: no next [1100][1100][4]
 struct no{int x,y;}next[1100][1100][4];
                    ^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
                 from /usr/include/c++/6/deque:60,
                 from /usr/include/c++/6/queue:60,
                 from /in/foo.cc:3:
/usr/include/c++/6/bits/stl_iterator_base_funcs.h:205:5: note:                 template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)
     next(_ForwardIterator __x, typename
     ^~~~

信息

递交者
类型
递交
题目
P1452 逃脱
语言
C++
递交时间
2019-01-21 16:34:41
评测时间
2019-01-21 16:34:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes