Problem | corporate |
---|---|
User | chenweilian |
Submission Time | 2025-03-19 12:50:58 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
corporate.cpp: In function ‘int main()’:
corporate.cpp:125:25: error: invalid initialization of reference of type ‘std::unordered_map<int, int>&’ from expression of type ‘std::unordered_map<int, long long int>’
125 | dnc(root, 1, n - 1, result);
| ^~~~~~
corporate.cpp:65:56: note: in passing argument 4 of ‘void dnc(int, int, int, std::unordered_map<int, int>&)’
65 | void dnc(int p, int l, int r, unordered_map<int, int>& result) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~