Borderou de evaluare (job #1327502)

Utilizator PaueyPaula Nicoleta Gradu Pauey Data 26 ianuarie 2015 19:48:37
Problema Barman Status done
Runda Arhiva de probleme Compilator cpp | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: user.cpp: In function ‘int solve()’: user.cpp:29:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v1.size(); ++i) ^ user.cpp:31:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int i = 0; i < v1.size(); ++i) { ^ user.cpp:36:37: warning: comparison between signed and unsigned integer expressions [-Wsign-compare] for(int j = 0; j < v1.size(); ++j) { ^ user.cpp: In function ‘int main()’: user.cpp:58:31: error: no match for ‘operator!=’ (operand types are ‘int’ and ‘__gnu_cxx::__alloc_traits<std::allocator<pahar> >::value_type {aka pahar}’) if(v.empty() || p.val != v[v.size() - 1]) { ^ user.cpp:58:31: note: candidates are: In file included from /usr/include/c++/4.8/utility:70:0, from /usr/include/c++/4.8/algorithm:60, from user.cpp:3: /usr/include/c++/4.8/bits/stl_pair.h:227:5: note: template<class _T1, class _T2> constexpr bool std::operator!=(const std::pair<_T1, _T2>&, const std::pair<_T1, _T2>&) operator!=(const pair<_T1, _T2>& __x, const pair<_T1, _T2>& __y) ^ /usr/include/c++/4.8/bits/stl_pair.h:227:5: note: template argument deduction/substitution failed: user.cpp:58:48: note: mismatched types ‘const std::pair<_T1, _T2>’ and ‘int’ if(v.empty() || p.val != v[v.size() - 1]) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_iterator.h:303:5: note: template<class _Iterator> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_Iterator>&) operator!=(const reverse_iterator<_Iterator>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:303:5: note: template argument deduction/substitution failed: user.cpp:58:48: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’ if(v.empty() || p.val != v[v.size() - 1]) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_iterator.h:353:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::reverse_iterator<_Iterator>&, const std::reverse_iterator<_IteratorR>&) operator!=(const reverse_iterator<_IteratorL>& __x, ^ /usr/include/c++/4.8/bits/stl_iterator.h:353:5: note: template argument deduction/substitution failed: user.cpp:58:48: note: mismatched types ‘const std::reverse_iterator<_Iterator>’ and ‘int’ if(v.empty() || p.val != v[v.size() - 1]) { ^ In file included from /usr/include/c++/4.8/bits/stl_algobase.h:67:0, from /usr/include/c++/4.8/algorithm:61, from user.cpp:3: /usr/include/c++/4.8/bits/stl_iterator.h:1043:5: note: template<class _IteratorL, class _IteratorR> bool std::operator!=(const std::move_iterator<_Iterator>&, const std::move_iterator<_IteratorR>&) operator!=(const move_iterator<_IteratorL>& __x,

Ceva nu functioneaza?