Problem | lamps |
---|---|
User | PlayVoltz |
Submission Time | 2024-03-01 08:01:08 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lamps.cpp: In function ‘void merge(long long int, long long int, bool)’:
lamps.cpp:47:2: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
47 | type[b]=d;
| ^~~~
| wctype
lamps.cpp:48:9: error: no match for ‘operator=’ (operand types are ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type’ {aka ‘std::pair<long long int, long long int>’} and ‘long long int’)
48 | dsu[b]=a;
| ^
In file included from /usr/include/c++/9/bits/stl_algobase.h:64,
from /usr/include/c++/9/bits/char_traits.h:39,
from /usr/include/c++/9/ios:40,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from lamps.cpp:1:
/usr/include/c++/9/bits/stl_pair.h:378:7: note: candidate: ‘std::pair<_T1, _T2>&