Borderou de evaluare (job #1634223)

Utilizator liisLIIS-Horia-Vlad-Denis liis Data 6 martie 2016 13:33:09
Problema Puzzle2 Status done
Runda ONIS 2016, Runda 1 Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘void elimin(int, std::vector<int>&)’: user.cpp:13:24: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(i=0;i<nod.size();i++) ^ user.cpp:16:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(;i<nod.size()-1;i++) ^ user.cpp: In function ‘void caz1()’: user.cpp:26:26: error: reference to ‘next’ is ambiguous v[++ lgV] = poz; next = 0; ^ user.cpp:7:34: note: candidates are: int next int v[100005],n,poz,lgV,m,a,b,ok,next; ^ 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:27:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<nod[poz].size();i++) ^ user.cpp:29:16: error: reference to ‘next’ is ambiguous if(next == 0) ^ user.cpp:7:34: note: candidates are: int next int v[100005],n,poz,lgV,m,a,b,ok,next; ^ 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:32:21: error: reference to ‘next’ is ambiguous next = nod[poz][i]; ^ user.cpp:7:34: note: candidates are: int next int v[100005],n,poz,lgV,m,a,b,ok,next; ^ 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,

Ceva nu functioneaza?