Borderou de evaluare (job #1212091)

Utilizator jul123Iulia Duta jul123 Data 23 iulie 2014 19:46:19
Problema Kss 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:26:17: error: reference to ‘next’ is ambiguous next[k][j]=-1; ^ user.cpp:6:20: note: candidates are: long long unsigned int next [1001][26] unsigned long long next[1001][26], dp[1001]; ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, 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:32:17: error: reference to ‘next’ is ambiguous next[k][j]=next[k][j+1]; ^ user.cpp:6:20: note: candidates are: long long unsigned int next [1001][26] unsigned long long next[1001][26], dp[1001]; ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, 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:32:28: error: reference to ‘next’ is ambiguous next[k][j]=next[k][j+1]; ^ user.cpp:6:20: note: candidates are: long long unsigned int next [1001][26] unsigned long long next[1001][26], dp[1001]; ^ 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/ostream:38, from /usr/include/c++/4.8/iostream:39, 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:33:13: error: reference to ‘next’ is ambiguous next[c[j]-'a'][j]=j; ^ user.cpp:6:20: note: candidates are: long long unsigned int next [1001][26]

Ceva nu functioneaza?