express.cpp: In function 'int main()':
express.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf("%d %d %d", &n, &m, &k);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~
express.cpp:27:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
27 | scanf("%d %d", &a, &b);
| ~~~~~^~~~~~~~~~~~~~~~~
express.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%lld", &val[a][b]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~
express.cpp:37:56: warning: array subscript 2 is above array bounds of 'LL [2]' {aka 'long long int [2]'} [-Warray-bounds]
37 | dp[i][j][1]=min(dp[i+1][j][2], dp[i][j+1][2]);
| ~~~~~~~~~~~~^
express.cpp:37:41: warning: array subscript 2 is above array bounds of 'LL [2]' {aka 'long long int [2]'} [-Warray-bounds]
37 | dp[i][j][1]=min(dp[i+1][j][2], dp[i][j+1][2]);
| ~~~~~~~~~~~~^
express.cpp:38:23: warning: array subscript 2 is above array bounds of 'LL [2]' {aka 'long long int [2]'} [-Warray-bounds]
38 | dp[i][j][2]=max(dp[i+1][j][1], dp[i][j+1][1]);
| ~~~~~~~~~~^
express.cpp:34:39: warning: array subscript 2 is above array bounds of 'LL [2]' {aka 'long long int [2]'} [-Warray-bounds]
34 | dp[i][j][1]=dp[i][j][2]=val[i][j];
| ~~~~~~~~~~^