Problem | shops |
---|---|
User | KCL |
Submission Time | 2025-02-25 17:39:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
shops.cpp: In function ‘constexpr int& parentof(int)’:
shops.cpp:11:46: error: call to non-‘constexpr’ function ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = elm; _Alloc = std::allocator<elm>; std::vector<_Tp, _Alloc>::reference = elm&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
11 | constexpr int& parentof(int v) { return dsu[v].parent; }
| ^
shops.cpp: In function ‘constexpr int& rankof(int)’:
shops.cpp:12:44: error: call to non-‘constexpr’ function ‘std::vector<_Tp, _Alloc>::reference std::vector<_Tp, _Alloc>::operator[](std::vector<_Tp, _Alloc>::size_type) [with _Tp = elm; _Alloc = std::allocator<elm>; std::vector<_Tp, _Alloc>::reference = elm&; std::vector<_Tp, _Alloc>::size_type = long unsigned int]’
12 | constexpr int& rankof(int v) { return ds