Problem | lemonade |
---|---|
User | jmuzhen |
Submission Time | 2024-12-14 09:20:01 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lemonade.cpp: In function ‘int main()’:
lemonade.cpp:52:33: error: invalid initialization of reference of type ‘std::vector<std::unordered_map<int, int> >&’ from expression of type ‘std::vector<std::map<int, int>, std::allocator<std::map<int, int> > >’
52 | cout << dp_f(n, maxc, brians, dp) << endl;
| ^~
lemonade.cpp:10:80: note: in passing argument 4 of ‘int dp_f(int, int, std::vector<Brian>&, std::vector<std::unordered_map<int, int> >&)’
10 | int dp_f(int i, int j, vector<Brian>& brians, vector<unordered_map<int, int>>& memo) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~