/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
^~~~