Borderou de evaluare (job #1622673)

Utilizator gapdanPopescu George gapdan Data 1 martie 2016 13:21:33
Problema Reborn Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘bool verif(int)’: user.cpp:22:14: error: reference to ‘next’ is ambiguous last=next[a][x]; ^ user.cpp:12:5: note: candidates are: int next [30][200005] int next[30][NMAX]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /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: In function ‘int main()’: user.cpp:38:13: error: reference to ‘next’ is ambiguous next[0][v[i].x]=max(next[0][v[i].x],v[i].y); ^ user.cpp:12:5: note: candidates are: int next [30][200005] int next[30][NMAX]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /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:38:33: error: reference to ‘next’ is ambiguous next[0][v[i].x]=max(next[0][v[i].x],v[i].y); ^ user.cpp:3:19: note: in definition of macro ‘max’ #define max(a,b) (a>b ? a:b) ^ user.cpp:12:5: note: candidates are: int next [30][200005] int next[30][NMAX]; ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:66:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:2: /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:38:33: error: reference to ‘next’ is ambiguous next[0][v[i].x]=max(next[0][v[i].x],v[i].y); ^ user.cpp:3:25: note: in definition of macro ‘max’ #define max(a,b) (a>b ? a:b) ^ user.cpp:12:5: note: candidates are: int next [30][200005] int next[30][NMAX]; ^

Ceva nu functioneaza?