/in/foo.cc:6:18: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
int n, k,num[1<<9+5],t,now,i,j,next;
~^~
/in/foo.cc:7:27: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
long long f[2][9*9+5][1<<9+5];
~^~
/in/foo.cc:8:15: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
bool flag[1<<9+5];
~^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:38:22: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:38:29: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:38:41: error: reference to 'next' is ambiguous
for (next=0;next<(1<<n);next++)
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:40:31: error: reference to 'next' is ambiguous
if (!flag[next])
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:42:26: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:42:47: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:42:64: error: reference to 'next' is ambiguous
if ((next&now)||((now<<1)&next)||((now>>1)&next))
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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:44:49: error: reference to 'next' is ambiguous
sum+=f[(i-1)%2][j-num[now]][next];
^~~~
/in/foo.cc:6: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/ostream:38,
from /usr/include/c++/6/iostream:39,
from /in/foo.cc:2:
/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
^~~~