/ Vijos /

记录详情

Compile Error

foo.cpp: In function 'll _edgerealend(ll, ll)':
foo.cpp:56:12: error: reference to 'end' is ambiguous
     ll tmp=end[node][br];
            ^
foo.cpp:26:5: note: candidates are: int end [400000][26]
 int end[400000][26];
     ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:42:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:51:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:97:5: note:                 template<class _Tp, unsigned int _Nm> _Tp* std::end(_Tp (&)[_Nm])
     end(_Tp (&__arr)[_Nm])
     ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:78:5: note:                 template<class _Container> decltype (__cont.end()) std::end(const _Container&)
     end(const _Container& __cont) -> decltype(__cont.end())
     ^
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:68:5: note:                 template<class _Container> decltype (__cont.end()) std::end(_Container&)
     end(_Container& __cont) -> decltype(__cont.end())
     ^
foo.cpp: In function 'void _branch(ll, ll)':
foo.cpp:89:5: error: reference to 'end' is ambiguous
     end[node][chr]=-1;
     ^
foo.cpp:26:5: note: candidates are: int end [400000][26]
 int end[400000][26];
     ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\basic_string.h:42:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:52,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\initializer_list:99:5: note:                 template<class _Tp> constexpr const _Tp* std::end(std::initializer_list<_Tp>)
     end(initializer_list<_Tp> __ils) noexcept
     ^
In file included from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\string:51:0,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\locale_classes.h:40,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\ios_base.h:41,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ios:42,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\ostream:38,
                 from c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\iostream:39,
                 from foo.cpp:4:
c:\tdm-gcc-32\lib\gcc\mingw32\4.8.1\include\c++\bits\range_access.h:97:5: note:                 template

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2016-01-21 11:08:40
评测时间
2016-01-21 11:09:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes