fish.cpp: In function 'long long int slv(long long int, long long int, long long int)':
fish.cpp:12:8: error: 'mp' was not declared in this scope; did you mean 'dp'?
12 | if(mp.count({a,{b,c}}))return mp[{a,{b,c}}];
| ^~
| dp
fish.cpp:22:12: error: 'mp' was not declared in this scope; did you mean 'mx'?
22 | return mp[{a,{b,c}}]=mx;
| ^~
| mx
fish.cpp: In function 'long long int max_weights(int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:31:12: error: cannot convert 'std::map<std::pair<long long int, std::pair<long long int, long long int> >, long long int>' to 'void*'
31 | memset(dp,-1,sizeof dp);
| ^~
| |
| std::map<std::pair<long long int, std::pair<long long int, long long int> >, long long int>
In file included from /usr/include/features.h:461,
from /usr/include/x86_64-linux-gnu/c++/10/bits/os_defines.h:39,
from /usr/include/x86_64-linux-gnu/c++/10/bits/c++config.h:518,
from /usr/include/c++/10/bits/stl_algobase.h:59,
from /usr/include/c++/10/vector:60,
from fish.h:1,
from fish.cpp:1:
/usr/include/x86_64-linux-gnu/bits/string_fortified.h:59:1: note: initializing argument 1 of 'void* memset(void*, int, size_t)'
59 | __NTH (memset (void *__dest, int __ch, size_t __len))
| ^~~~~