Problem | catdog |
---|---|
User | Sans12345 |
Submission Time | 2024-01-22 19:47:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
catdog.cpp: In function ‘int update(ll, ll, ll)’:
catdog.cpp:106:31: error: no match for ‘operator=’ (operand types are ‘std::array<long long int, 2>’ and ‘std::pair<long long int, long long int>’)
106 | prv = ST[grp[x]]->RMQ();
| ^
In file included from /usr/include/c++/9/tuple:39,
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 catdog.cpp:2:
/usr/include/c++/9/array:94:12: note: candidate: ‘constexpr std::array<long long int, 2>& std::array<long long int, 2>::operator=(const std::array<long long int, 2>&)’
94 | struct array
| ^~~~~
/usr/include/c++/9/array:94:12: note: no known conversion for argument 1 from ‘std: