Borderou de evaluare (job #1395160)

Utilizator cosmyoPaunel Cosmin cosmyo Data 21 martie 2015 02:00:29
Problema Search Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int main()’: user.cpp:27:5: error: reference to ‘next’ is ambiguous next[i][j][k] = o[k]; ^ user.cpp:6:5: note: candidates are: int next [105][5005][26] int next[N][5005][26]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:44:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ans[j].size() == len) ^ user.cpp:46:39: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] if(ans[j].back() + 1 < s[j].size() && ^ user.cpp:47:8: error: reference to ‘next’ is ambiguous next[j][ans[j].back() + 1][ch - 'a'] != -1) ^ user.cpp:6:5: note: candidates are: int next [105][5005][26] int next[N][5005][26]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type) next(_ForwardIterator __x, typename ^ user.cpp:50:24: error: reference to ‘next’ is ambiguous ans[j].push_back(next[j][ans[j].back() + 1][ch - 'a']); ^ user.cpp:6:5: note: candidates are: int next [105][5005][26] int next[N][5005][26]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/bits/char_traits.h:39, from /usr/include/c++/4.8/ios:40, from /usr/include/c++/4.8/istream:38, from /usr/include/c++/4.8/fstream:38, from user.cpp:1: /usr/include/c++/4.8/bits/stl_iterator_base_funcs.h:184:5: note: template<class _ForwardIterator> _ForwardIterator std::next(_ForwardIterator, typename std::iterator_traits<_Iter>::difference_type)

Ceva nu functioneaza?