Problem | lamps |
---|---|
User | PlayVoltz |
Submission Time | 2024-02-29 23:49:52 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lamps.cpp: In function ‘long long int fp(long long int)’:
lamps.cpp:34:21: 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’
34 | return fp(dsu[node]).fi;
| ^
| |
| __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>}
lamps.cpp:32:12: note: initializing argument 1 of ‘long long int fp(long long int)’
32 | int fp(int node){
| ^
lamps.cpp: In function ‘long long int w(long long int)’:
lamps.cpp:25:12: error: request for member ‘second’ in ‘fp(dsu.std::vector<std::pair<long long int, long