Problem | poi |
---|---|
User | Vinayak01 |
Submission Time | 2024-03-12 22:18:54 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
poi.cpp: In function ‘int main()’:
poi.cpp:43:51: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::tuple<int, int, int> >, std::tuple<int, int, int> >::value_type’ {aka ‘std::tuple<int, int, int>’} and ‘std::pair<std::pair<int, int>, int>’)
43 | p[i] = make_pair(make_pair(i,score[i]),solved[i]);
| ^
In file included from /usr/include/c++/9/functional:54,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from poi.cpp:1:
/usr/include/c++/9/tuple:817:7: note: candidate: ‘std::tuple<_Elements>& std::tuple<_Elements>::operator=(typename std::conditional<__assignable<const _Elements& ...>(), const std::tuple<_Elements>&, c