Borderou de evaluare (job #1046972)

Utilizator mucenic_b101Bogdan Mucenic mucenic_b101 Data 3 decembrie 2013 19:19:17
Problema Cuburi3 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:53:9: error: reference to ‘prev’ is ambiguous prev[i] = poz; ^ user.cpp:6:30: note: candidates are: int prev [4001] int best[MAXN], bestl[MAXN], prev[MAXN], sol[MAXN]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^ user.cpp:66:13: error: reference to ‘prev’ is ambiguous p = prev[p]; ^ user.cpp:6:30: note: candidates are: int prev [4001] int best[MAXN], bestl[MAXN], prev[MAXN], sol[MAXN]; ^ In file included from /usr/local/include/c++/4.8.0/bits/stl_algobase.h:66:0, from /usr/local/include/c++/4.8.0/algorithm:61, from user.cpp:2: /usr/local/include/c++/4.8.0/bits/stl_iterator_base_funcs.h:193:5: note: template<class _BidirectionalIterator> _BidirectionalIterator std::prev(_BidirectionalIterator, typename std::iterator_traits<_Iter>::difference_type) prev(_BidirectionalIterator __x, typename ^

Ceva nu functioneaza?