Borderou de evaluare (job #2946029)

Utilizator ScoveargaIlie Andrei-Virgil Scovearga Data 24 noiembrie 2022 14:46:13
Problema Apm2 Status done
Runda Arhiva Monthly Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In function 'int main()': main.cpp:67:19: error: no matching function for call to 'find(int&)' 67 | if(find(n1) != find(n2)) | ^ In file included from /usr/include/c++/10/bits/locale_facets.h:48, from /usr/include/c++/10/bits/basic_ios.h:37, from /usr/include/c++/10/ios:44, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: '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&)' 422 | find(istreambuf_iterator<_CharT> __first, | ^~~~ /usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed: main.cpp:67:19: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int' 67 | if(find(n1) != find(n2)) | ^ In file included from /usr/include/c++/10/algorithm:62, from main.cpp:4: /usr/include/c++/10/bits/stl_algo.h:3895:5: note: candidate: 'template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)' 3895 | find(_InputIterator __first, _InputIterator __last, | ^~~~ /usr/include/c++/10/bits/stl_algo.h:3895:5: note: template argument deduction/substitution failed: main.cpp:67:19: note: candidate expects 3 arguments, 1 provided 67 | if(find(n1) != find(n2)) | ^ main.cpp:67:31: error: no matching function for call to 'find(int&)' 67 | if(find(n1) != find(n2)) | ^ In file included from /usr/include/c++/10/bits/locale_facets.h:48, from /usr/include/c++/10/bits/basic_ios.h:37, from /usr/include/c++/10/ios:44, from /usr/include/c++/10/ostream:38, from /usr/include/c++/10/iostream:39, from main.cpp:1: /usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: candidate: '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&)' 422 | find(istreambuf_iterator<_CharT> __first, | ^~~~ /usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed: main.cpp:67:31: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int' 67 | if(find(n1) != find(n2)) | ^ In file included from /usr/include/c++/10/algorithm:62, from main.cpp:4: /usr/include/c++/10/bits/stl_algo.h:3895:5: note: candidate: 'template<class _IIter, class _Tp> _IIter std::find(_IIter, _IIter, const _Tp&)' 3895 | find(_InputIterator __first, _InputIterator __last, | ^~~~ /usr/include/c++/10/bits/stl_algo.h:3895:5: note: template argument deduction/substitution failed: main.cpp:67:31: note: candidate expects 3 arguments, 1 provided 67 | if(find(n1) != find(n2)) Non zero exit status: 1

Ceva nu functioneaza?