boxes.cpp: In function 'long long int dp(int, int)':
boxes.cpp:20:37: error: expected ')' before ';' token
for(int k=r,it=1;k>=l && it<=K;k--;it++){
^
boxes.cpp:20:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int k=r,it=1;k>=l && it<=K;k--;it++){
^~~
boxes.cpp:20:38: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
for(int k=r,it=1;k>=l && it<=K;k--;it++){
^~
boxes.cpp:20:38: error: 'it' was not declared in this scope
boxes.cpp:20:38: note: suggested alternative: 'int'
for(int k=r,it=1;k>=l && it<=K;k--;it++){
^~
int
boxes.cpp:23:21: warning: conversion to 'int' from 'long long int' may alter its value [-Wconversion]
return memo[l][r]=ans;
^~~