0_0_23246008_30516.cpp: In function 'void DP()': 0_0_23246008_30516.cpp:37:41: error: invalid conversion from 'int*' to 'int' [-fpermissive] int res=f[S[j].l-1]+i-S[j].l+1; ^