fish.cpp:19:1: error: expected initializer before 'vector'
19 | vector<pair<int,int>> fish[maxn]; // fishs from column i
| ^~~~~~
fish.cpp: In function 'long long int max_weights(int32_t, int32_t, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:27:9: error: 'fish' was not declared in this scope
27 | fish[X[i]+1].pb(mp(Y[i]+1,W[i]));
| ^~~~
fish.cpp:35:18: error: 'fish' was not declared in this scope
35 | sort(all(fish[i]));
| ^~~~
fish.cpp:9:16: note: in definition of macro 'all'
9 | #define all(x) x.begin(),x.end()
| ^
fish.cpp:39:26: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
39 | for(int j = 0; j < hr[i].size(); j++) {
| ~~^~~~~~~~~~~~~~
fish.cpp:45:31: error: 'pf' was not declared in this scope; did you mean 'pb'?
45 | for(auto j : hr[i-1]) pf[i][j] = 0;
| ^~
| pb
fish.cpp:46:29: error: 'pf' was not declared in this scope; did you mean 'pb'?
46 | for(auto j : hr[i]) pf[i][j] = 0;
| ^~
| pb
fish.cpp:47:31: error: 'pf' was not declared in this scope; did you mean 'pb'?
47 | for(auto j : hr[i+1]) pf[i][j] = 0;
| ^~
| pb
fish.cpp:49:24: error: 'fish' was not declared in this scope
49 | for(auto aux : fish[i]) {
| ^~~~
fish.cpp:52:13: error: 'pf' was not declared in this scope; did you mean 'pb'?
52 | pf[i][y]+= w;
| ^~
| pb
fish.cpp:55:9: error: 'pf' was not declared in this scope; did you mean 'pb'?
55 | pf[i][0] = 0;
| ^~
| pb
fish.cpp:65:22: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for(int i = 0; i < hr[1].size(); i++) {
| ~~^~~~~~~~~~~~~~
fish.cpp:71:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
71 | for(int h0 = 0; h0 < hr[i].size(); h0++) {
| ~~~^~~~~~~~~~~~~~
fish.cpp:74:32: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
74 | for(int h1 = 0; h1 < hr[i-1].size(); h1++) {
| ~~~^~~~~~~~~~~~~~~~
fish.cpp:76:67: error: 'pf' was not declared in this scope; did you mean 'pb'?
76 | dp[i][h0][0] = max(dp[i][h0][0], dp[i-1][h1][0] + pf[i-1][hr[i][h0]]-pf[i-1][hr[i-1][h1]]);
| ^~
| pb
fish.cpp:80:36: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
80 | for(int h2 = 0; h2 < hr[i-2].size(); h2++) {
| ~~~^~~~~~~~~~~~~~~~
fish.cpp:81:71: error: 'pf' was not declared in this scope; did you mean 'pb'?
81 | dp[i][h0][0] = max(dp[i][h0][0], dp[i-2][h2][1] + pf[i-1][max(hr[i][h0],hr[i-2][h2])]);
| ^~
| pb
fish.cpp:86:50: error: 'pf' was not declared in this scope; did you mean 'pb'?
86 | dp[i][h0][0] = max(dp[i][h0][0], pf[i-1][hr[i][h0]]);
| ^~
| pb
fish.cpp:91:32: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
91 | for(int h1 = 0; h1 < hr[i-1].size(); h1++) {
| ~~~^~~~~~~~~~~~~~~~
fish.cpp:93:67: error: 'pf' was not declared in this scope; did you mean 'pb'?
93 | dp[i][h0][1] = max(dp[i][h0][1], dp[i-1][h1][0] + pf[i][hr[i-1][h1]] - pf[i][hr[i][h0]]);
| ^~
| pb
fish.cpp:102:24: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
102 | for(int h0 = 0; h0 < hr[n].size(); h0++) {
| ~~~^~~~~~~~~~~~~~