Borderou de evaluare (job #2425096)

Utilizator Anakin1001George Giorgiu Gica Anakin1001 Data 24 mai 2019 12:09:59
Problema Kss Status done
Runda Arhiva de probleme Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:16:16: error: reference to 'next' is ambiguous memset(next, 0, sizeof(next)); ^~~~ main.cpp:9:32: note: candidates are: long long int next [1001][27] long long k, din[1001][N + 1], next[1001][N + 1]; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /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 ^~~~ main.cpp:16:32: error: reference to 'next' is ambiguous memset(next, 0, sizeof(next)); ^~~~ main.cpp:9:32: note: candidates are: long long int next [1001][27] long long k, din[1001][N + 1], next[1001][N + 1]; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /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 ^~~~ main.cpp:21:17: error: reference to 'next' is ambiguous next[i][j] = next[i + 1][j]; ^~~~ main.cpp:9:32: note: candidates are: long long int next [1001][27] long long k, din[1001][N + 1], next[1001][N + 1]; ^~~~ 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/istream:38, from /usr/include/c++/6/fstream:38, from main.cpp:1: /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 ^~~~ main.cpp:21:30: error: reference to 'next' is ambiguous next[i][j] = next[i + 1][j]; ^~~~ main.cpp:9:32: note: candidates are: long long int next [1001][27] Non zero exit status: 1

Ceva nu functioneaza?