Problem manyjobs
User chiefoggy
Submission Time 2023-12-18 09:56:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

manyjobs.cpp: In function ‘int main()’:
manyjobs.cpp:13:17: error: no match for ‘operator*’ (operand type is ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘std::pair<int, int>’})
13 | v.push_back(*v.back());
| ^~~~~~~~~
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from manyjobs.cpp:1:
/usr/include/c++/9/complex:391:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const std::complex<_Tp>&)’
391 | operator*(const complex<_Tp>& __x, const complex<_Tp>& __y)
| ^~~~~~~~
/usr/include/c++/9/complex:391:5: note: template argument deduction/substitution failed:
manyjobs.cpp:13:25: note: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pa