/in/foo.cc:3:18: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
int n, k,num[1<<9+5],t,now,i,j,next;
~^~
/in/foo.cc:4:27: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
long long f[2][9*9+5][1<<9+5];
~^~
/in/foo.cc:5:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
bool flag[1<<9+5];
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:35:22: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:35:29: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:35:41: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:37:31: error: reference to 'next' is ambiguous
if (!flag[next])
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:39:26: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:39:47: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:39:64: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/include/c++/6/bits/char_traits.h:39,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/istream:38,
from /usr/include/c++/6/sstream:38,
from /usr/include/c++/6/complex:45,
from /usr/include/c++/6/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/6/bits/stdc++.h:52,
from /in/foo.cc:1:
/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:41:49: error: reference to 'next' is ambiguous
sum+=f[(i-1)%2][j-num[now]][next];
^~~~
/in/foo.cc:3:32: note: candidates are: int next
int n, k,num[1<<9+5],t,now,i,j,next;
^~~~
In file included from /usr/include/c++/6/bits/stl_algobase.h:66:0,
from /usr/