QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#537597 | #4564. Digital Circuit | egypt_ioi2024_01# | Compile Error | / | / | C++23 | 1.2kb | 2024-08-30 16:25:14 | 2024-08-30 16:25:15 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code: In function ‘void init(int32_t, int32_t, std::vector<int>, std::vector<int>)’: answer.code:11:9: error: no match for ‘operator=’ (operand types are ‘std::vector<long long int>’ and ‘std::vector<int>’) 11 | a = A; | ^ In file included from /usr/include/c++/13/vector:72, from /usr/include/c++/13/functional:64, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:53, from answer.code:1: /usr/include/c++/13/bits/vector.tcc:210:5: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’ 210 | vector<_Tp, _Alloc>:: | ^~~~~~~~~~~~~~~~~~~ /usr/include/c++/13/bits/vector.tcc:211:42: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘const std::vector<long long int>&’ 211 | operator=(const vector<_Tp, _Alloc>& __x) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /usr/include/c++/13/vector:66: /usr/include/c++/13/bits/stl_vector.h:763:7: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’ 763 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) | ^~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:763:26: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘std::vector<long long int>&&’ 763 | operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move()) | ~~~~~~~~~^~~ /usr/include/c++/13/bits/stl_vector.h:785:7: note: candidate: ‘constexpr std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = long long int; _Alloc = std::allocator<long long int>]’ 785 | operator=(initializer_list<value_type> __l) | ^~~~~~~~ /usr/include/c++/13/bits/stl_vector.h:785:46: note: no known conversion for argument 1 from ‘std::vector<int>’ to ‘std::initializer_list<long long int>’ 785 | operator=(initializer_list<value_type> __l) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~