| Problem | lamps |
|---|---|
| User | PlayVoltz |
| Submission Time | 2024-03-01 07:53:00 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
lamps.cpp: In function ‘long long int w(long long int)’:
lamps.cpp:38:32: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
38 | if (dsu[node].fi==node)return type[node];
| ^~~~
| wctype
lamps.cpp:39:9: error: ‘type’ was not declared in this scope; did you mean ‘wctype’?
39 | return type[node]^w(dsu[node]);
| ^~~~
| wctype
lamps.cpp:39:31: error: cannot convert ‘__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>’} to ‘long long int’
39 | return type[node]^w(dsu[node]);
| ^
| |
| __gnu_cxx::__alloc_traits<std::allocator<std::pair<long long in