Borderou de evaluare (job #2727970)
Utilizator | Data | 22 martie 2021 17:45:54 | |
---|---|---|---|
Problema | Mult | Status | done |
Runda | Arhiva de probleme | Compilator | cpp-64 | Vezi sursa |
Scor | 0 |
Raport evaluator
Eroare de compilare:
main.cpp: In function 'int main()':
main.cpp:60:28: error: no matching function for call to 'copy(long long int [1000], long long int [1000])'
copy(c[j], p[j]);
^
main.cpp:32:6: note: candidate: void copy(int*, int*)
void copy(int* a, int* b) {
^~~~
main.cpp:32:6: note: no known conversion for argument 1 from 'long long int [1000]' to 'int*'
In file included from /usr/include/c++/6/bits/locale_facets.h:48:0,
from /usr/include/c++/6/bits/basic_ios.h:37,
from /usr/include/c++/6/ios:44,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/streambuf_iterator.h:293:5: note: candidate: template<class _CharT> typename __gnu_cxx::__enable_if<std::__is_char<_Tp>::__value, std::ostreambuf_iterator<_CharT> >::__type std::copy(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, std::ostreambuf_iterator<_CharT>)
copy(istreambuf_iterator<_CharT> __first,
^~~~
/usr/include/c++/6/bits/streambuf_iterator.h:293:5: note: template argument deduction/substitution failed:
main.cpp:60:28: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'long long int*'
copy(c[j], p[j]);
^
In file included from /usr/include/c++/6/bits/char_traits.h:39:0,
from /usr/include/c++/6/ios:40,
from /usr/include/c++/6/ostream:38,
from /usr/include/c++/6/iostream:39,
from main.cpp:1:
/usr/include/c++/6/bits/stl_algobase.h:446:5: note: candidate: template<class _II, class _OI> _OI std::copy(_II, _II, _OI)
copy(_II __first, _II __last, _OI __result)
^~~~
/usr/include/c++/6/bits/stl_algobase.h:446:5: note: template argument deduction/substitution failed:
main.cpp:60:28: note: candidate expects 3 arguments, 2 provided
copy(c[j], p[j]);
^
main.cpp:63:49: error: cannot convert 'long long int*' to 'int*' for argument '1' to 'void add(int*, int*)'
add(c[(j * 10 + v[i + 1]) % k], p[j]);
^
main.cpp:65:35: error: cannot convert 'long long int*' to 'int*' for argument '1' to 'void add(int*, int*)'
add(c[ v[i + 1] % k ], ONE);
^
main.cpp:68:28: error: no matching function for call to 'copy(long long int [1000], long long int [1000])'
copy(p[j], c[j]);
^
main.cpp:32:6: note: candidate: void copy(int*, int*)
void copy(int* a, int* b) {
^~~~
main.cpp:32:6: note: no known conversion for argument 1 from 'long long int [1000]' to 'int*'
In file included from /usr/include/c++/6/bits/locale_facets.h:48:0,
from /usr/include/c++/6/bits/basic_ios.h:37,
from /usr/include/c++/6/ios:44,
from /usr/include/c++/6/ostream:38,
Non zero exit status: 1
Ceva nu functioneaza?
- Citeste despre borderoul de evaluare.
- Daca tot nu e bine, contacteaza-ne pe forum !