Borderou de evaluare (job #1773358)
Utilizator | Data | 7 octombrie 2016 19:23:48 | |
---|---|---|---|
Problema | Triang | Status | done |
Runda | Arhiva de probleme | Compilator | cpp | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
user.cpp: In function ‘bool find(POINT2D&)’:
user.cpp:42:40: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0;i < H[get_key(p)].size();++i)
^
user.cpp: In function ‘int main()’:
user.cpp:96:28: error: no matching function for call to ‘find(POINT2D)’
if (find(POINT2D(x1, y1)) == 1)
^
user.cpp:96:28: note: candidates are:
user.cpp:40:6: note: bool find(POINT2D&)
bool find(POINT2D &p)
^
user.cpp:40:6: note: no known conversion for argument 1 from ‘POINT2D {aka std::pair<long double, long double>}’ to ‘POINT2D& {aka std::pair<long double, long double>&}’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4455:5: note: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/4.8/bits/stl_algo.h:4455:5: note: template argument deduction/substitution failed:
user.cpp:96:28: note: candidate expects 3 arguments, 1 provided
if (find(POINT2D(x1, y1)) == 1)
^
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/istream:38,
from /usr/include/c++/4.8/fstream:38,
from user.cpp:1:
/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:96:28: note: ‘std::pair<long double, long double>’ is not derived from ‘std::istreambuf_iterator<_CharT>’
if (find(POINT2D(x1, y1)) == 1)
^
user.cpp:98:28: error: no matching function for call to ‘find(POINT2D)’
if (find(POINT2D(x2, y2)) == 1)
^
user.cpp:98:28: note: candidates are:
user.cpp:40:6: note: bool find(POINT2D&)
bool find(POINT2D &p)
^
user.cpp:40:6: note: no known conversion for argument 1 from ‘POINT2D {aka std::pair<long double, long double>}’ to ‘POINT2D& {aka std::pair<long double, long double>&}’
In file included from /usr/include/c++/4.8/algorithm:62:0,
from user.cpp:2:
/usr/include/c++/4.8/bits/stl_algo.h:4455:5: note: template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)
find(_InputIterator __first, _InputIterator __last,
^
/usr/include/c++/4.8/bits/stl_algo.h:4455:5: note: template argument deduction/substitution failed:
user.cpp:98:28: note: candidate expects 3 arguments, 1 provided
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !