记录详情

Compile Error

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

信息

递交者
类型
递交
题目
No Target
语言
C++
递交时间
2017-08-17 16:25:03
评测时间
2017-08-17 16:25:03
评测机
分数
0
总耗时
268ms
峰值内存
33.383 MiB