Αποτελέσματα

Codename Αποτέλεσμα
30-agoraCompilation error
src_6676.cc: In function ‘int main()’:
src_6676.cc:27:39: error: no match for ‘operator=’ (operand types are ‘std::vector’ and ‘ll’ {aka ‘long long int’})
prefix=EKP(nums[i],prefix[i-1]);
^
In file included from /usr/include/c++/8/vector:69,
from src_6676.cc:2:
/usr/include/c++/8/bits/vector.tcc:186:5: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator]’
vector<_Tp, _Alloc>::
^~~~~~~~~~~~~~~~~~~
/usr/include/c++/8/bits/vector.tcc:186:5: note: no known conversion for argument 1 from ‘ll’ {aka ‘long long int’} to ‘const std::vector&’
In file included from /usr/include/c++/8/vector:64,
from src_6676.cc:2:
/usr/include/c++/8/bits/stl_vector.h:596:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator]’
operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
^~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:596:7: note: no known conversion for argument 1 from ‘ll’ {aka ‘long long int’} to ‘std::vector&&’
/usr/include/c++/8/bits/stl_vector.h:617:7: note: candidate: ‘std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator]’
operator=(initializer_list __l)
^~~~~~~~
/usr/include/c++/8/bits/stl_vector.h:617:7: note: no known conversion for argument 1 from ‘ll’ {aka ‘long long int’} to ‘std::initializer_list
src_6676.cc:33:23: error: lvalue required as decrement operand
for (ll i=n; i>=1 --i){
^~
src_6676.cc:33:25: error: expected ‘;’ before ‘i’
for (ll i=n; i>=1 --i){
^


Καινούργια υποβολή:
Όλες οι υποβολές:
Έχεις λάθος που δεν καταλαβαίνεις; Ρώτα