fish.cpp: In function 'long long int max_weights(int, int, std::vector<int>, std::vector<int>, std::vector<int>)':
fish.cpp:26:8: warning: unused variable 'q' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:16: warning: unused variable 'j' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:19: warning: unused variable 'l' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:22: warning: unused variable 'r' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:26: warning: unused variable 'x' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:30: warning: unused variable 'y' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:34: warning: unused variable 's' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:42: warning: unused variable 'f' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:46: warning: unused variable 'k' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^
fish.cpp:26:50: warning: unused variable 'mn' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^~
fish.cpp:26:61: warning: unused variable 'mx' [-Wunused-variable]
26 | ll q , i , j ,l ,r , x , y , s = 0 , f , k , mn = 1e18, mx = 0 ;
| ^~
fish.cpp:35:70: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
35 | dp[i][0] = max({dp[i - 1][1] , dp[i - 1][0] , dp[i - 1][2]}) ,dp[i][2] = dp[i - 1][1] + d[i], dp[i][1] = max(dp[i - 1][0] + d[i - 1], max(dp[i - 1][1] , dp[i - 1][2]));
| ~~~~~~~~~~~^
fish.cpp:35:82: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
35 | dp[i][0] = max({dp[i - 1][1] , dp[i - 1][0] , dp[i - 1][2]}) ,dp[i][2] = dp[i - 1][1] + d[i], dp[i][1] = max(dp[i - 1][0] + d[i - 1], max(dp[i - 1][1] , dp[i - 1][2]));
| ~~~~~~~^
fish.cpp:35:179: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
35 | dp[i][0] = max({dp[i - 1][1] , dp[i - 1][0] , dp[i - 1][2]}) ,dp[i][2] = dp[i - 1][1] + d[i], dp[i][1] = max(dp[i - 1][0] + d[i - 1], max(dp[i - 1][1] , dp[i - 1][2]));
| ~~~~~~~~~~~^
fish.cpp:33:50: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
33 | dp[i][0] = 0 , dp[i][1] = 0 , dp[i][2] = 0;
| ~~~~~~~^
fish.cpp:37:58: warning: array subscript 2 is above array bounds of 'long long int [2]' [-Warray-bounds]
37 | return max({dp[n - 1][0] , dp[n - 1][1] , dp[n - 1][2]});
| ~~~~~~~~~~~^