Borderou de evaluare (job #2299178)

Utilizator driver71528@gmail.comTerec Andrei-Sorin [email protected] Data 9 decembrie 2018 00:06:52
Problema 2SAT Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'bool df(int)': main.cpp:53:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i=0;i<rez.size();i++) ~^~~~~~~~~~~ main.cpp:58:19: error: no matching function for call to 'std::vector<int>::erase()' rez.erase(); ^ In file included from /usr/include/c++/6/vector:64:0, from main.cpp:3: /usr/include/c++/6/bits/stl_vector.h:1147:7: note: candidate: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*; std::vector<_Tp, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; typename __gnu_cxx::__alloc_traits<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type>::const_pointer = const int*] erase(const_iterator __position) ^~~~~ /usr/include/c++/6/bits/stl_vector.h:1147:7: note: candidate expects 1 argument, 0 provided /usr/include/c++/6/bits/stl_vector.h:1174:7: note: candidate: std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(std::vector<_Tp, _Alloc>::const_iterator, std::vector<_Tp, _Alloc>::const_iterator) [with _Tp = int; _Alloc = std::allocator<int>; std::vector<_Tp, _Alloc>::iterator = __gnu_cxx::__normal_iterator<int*, std::vector<int> >; typename std::_Vector_base<_Tp, _Alloc>::pointer = int*; std::vector<_Tp, _Alloc>::const_iterator = __gnu_cxx::__normal_iterator<const int*, std::vector<int> >; typename __gnu_cxx::__alloc_traits<typename std::_Vector_base<_Tp, _Alloc>::_Tp_alloc_type>::const_pointer = const int*] erase(const_iterator __first, const_iterator __last) ^~~~~ /usr/include/c++/6/bits/stl_vector.h:1174:7: note: candidate expects 2 arguments, 0 provided Non zero exit status: 1

Ceva nu functioneaza?