ho_t3.cpp: In function 'int main()':
ho_t3.cpp:31:43: error: no matching function for call to 'chkmin(ll&, int&)'
31 | chkmin(dp[i+(nt<=t[l+1])][l+1][r][0],nt);
| ^
ho_t3.cpp:15:27: note: candidate: 'template<class T> bool chkmin(T&, T)'
15 | template<typename T> bool chkmin(T&x,T y){return x>y?x=y,1:0;}
| ^~~~~~
ho_t3.cpp:15:27: note: template argument deduction/substitution failed:
ho_t3.cpp:31:43: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
31 | chkmin(dp[i+(nt<=t[l+1])][l+1][r][0],nt);
| ^
ho_t3.cpp:36:43: error: no matching function for call to 'chkmin(ll&, int&)'
36 | chkmin(dp[i+(nt<=t[n-r])][l][r+1][1],nt);
| ^
ho_t3.cpp:15:27: note: candidate: 'template<class T> bool chkmin(T&, T)'
15 | template<typename T> bool chkmin(T&x,T y){return x>y?x=y,1:0;}
| ^~~~~~
ho_t3.cpp:15:27: note: template argument deduction/substitution failed:
ho_t3.cpp:36:43: note: deduced conflicting types for parameter 'T' ('long long int' and 'int')
36 | chkmin(dp[i+(nt<=t[n-r])][l][r+1][1],nt);
| ^
ho_t3.cpp:40:85: warning: suggest parentheses around comparison in operand of '|' [-Wparentheses]
40 | for(int i=1;i<=n;i++) for(int l=0;l<=n;l++) for(int r=0;r<=n;r++) if(dp[i][l][r][0]!=1e18|dp[i][l][r][1]!=1e18) ans=i;
| ~~~~~~~~~~~~~~^~~~~~
ho_t3.cpp:22:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
22 | scanf("%d%d",&n,&k);
| ~~~~~^~~~~~~~~~~~~~
ho_t3.cpp:23:29: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
23 | for(int i=1;i<=n;i++) scanf("%d",&a[i]);
| ~~~~~^~~~~~~~~~~~
ho_t3.cpp:24:29: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
24 | for(int i=1;i<=n;i++) scanf("%d",&t[i]);
| ~~~~~^~~~~~~~~~~~