museum.cpp: In function 'void dfs(int, int)':
museum.cpp:14:9: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
14 | dp[0][c][1]=0;
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:23:53: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
23 | dp[0][c][j]=min(dp[0][c][j],dp[0][c][j-K]+dp[0][i.f][K]+2*i.s);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:23:67: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
23 | dp[0][c][j]=min(dp[0][c][j],dp[0][c][j-K]+dp[0][i.f][K]+2*i.s);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:23:47: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
23 | dp[0][c][j]=min(dp[0][c][j],dp[0][c][j-K]+dp[0][i.f][K]+2*i.s);
| ~~~~~~~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:23:41: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
23 | dp[0][c][j]=min(dp[0][c][j],dp[0][c][j-K]+dp[0][i.f][K]+2*i.s);
| ~~~~^
museum.cpp:23:25: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
23 | dp[0][c][j]=min(dp[0][c][j],dp[0][c][j-K]+dp[0][i.f][K]+2*i.s);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:24:53: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
24 | dp[1][c][j]=min(dp[1][c][j],dp[0][c][j-K]+dp[1][i.f][K]);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:24:67: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
24 | dp[1][c][j]=min(dp[1][c][j],dp[0][c][j-K]+dp[1][i.f][K]);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:24:47: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
24 | dp[1][c][j]=min(dp[1][c][j],dp[0][c][j-K]+dp[1][i.f][K]);
| ~~~~~~~~~~^
museum.cpp:24:47: warning: array subscript 1 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:24:41: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
24 | dp[1][c][j]=min(dp[1][c][j],dp[0][c][j-K]+dp[1][i.f][K]);
| ~~~~^
museum.cpp:24:25: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
24 | dp[1][c][j]=min(dp[1][c][j],dp[0][c][j-K]+dp[1][i.f][K]);
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp: In function 'int main()':
museum.cpp:44:17: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
44 | dp[0][i][j]=INF;
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:45:17: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
45 | dp[1][i][j]=INF;
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~
museum.cpp:48:15: warning: array subscript 0 is above array bounds of 'int [0][10001][10001]' [-Warray-bounds]
48 | cout<<dp[1][x][k];
| ~~~~^
museum.cpp:8:5: note: while referencing 'dp'
8 | int dp[0][mn][mn],sub[mn],k;
| ^~