0_0_31002662_21944.cpp:11:17: error: 'j' has not been declared
int getDP(int i,j){
^
0_0_31002662_21944.cpp: In function 'int getDP(int, int)':
0_0_31002662_21944.cpp:12:15: error: 'j' was not declared in this scope
return dp[j]+m+(sum[i]-sum[j])*(sum[i]-sum[j]);
^
|