Borderou de evaluare (job #1590337)
Utilizator | Data | 4 februarie 2016 21:58:27 | |
---|---|---|---|
Problema | Cezar | 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:55:46: error: no matching function for call to ‘find(std::vector<short int>::iterator, std::vector<short int>::iterator, short int&)’
v[y].erase(find(v[y].begin(), v[y].end(), x));
^
user.cpp:55:46: note: candidate is:
In file included from /usr/include/c++/4.8/bits/locale_facets.h:48:0,
from /usr/include/c++/4.8/bits/basic_ios.h:37,
from /usr/include/c++/4.8/ios:44,
from /usr/include/c++/4.8/ostream:38,
from /usr/include/c++/4.8/iostream:39,
from user.cpp:2:
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&)
find(istreambuf_iterator<_CharT> __first,
^
/usr/include/c++/4.8/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed:
user.cpp:55:46: note: ‘__gnu_cxx::__normal_iterator<short int*, std::vector<short int> >’ is not derived from ‘std::istreambuf_iterator<_CharT>’
v[y].erase(find(v[y].begin(), v[y].end(), x));
^
user.cpp:31:17: warning: unused variable ‘j’ [-Wunused-variable]
short n, k, i, j, x, y;
^
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !