merchant.cpp: In function 'int32_t main()':
merchant.cpp:31:5: error: 'dp' was not declared in this scope
dp[i][j][w] = pii((ll) 1e15 , 1);
^~
merchant.cpp:31:5: note: suggested alternative: 'mp'
dp[i][j][w] = pii((ll) 1e15 , 1);
^~
mp
merchant.cpp:33:4: error: 'dp' was not declared in this scope
dp[i][j][k] = pii(0 , 0);
^~
merchant.cpp:33:4: note: suggested alternative: 'mp'
dp[i][j][k] = pii(0 , 0);
^~
mp
merchant.cpp:15:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d" , &n , &m , &k);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
merchant.cpp:18:9: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%lld%lld" , &b[i][j], & s[i][j]);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
merchant.cpp:39:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%d%d" , &u , & v , &x);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~