0_0_35772065_5422.cpp: In function 'int getdp(int, int)':
0_0_35772065_5422.cpp:7:18: error: 'm' was not declared in this scope
return dp[j]+m+(sum[i]-sum[j])*(sum[i]-sum[j]);
^
0_0_35772065_5422.cpp: In function 'int main()':
0_0_35772065_5422.cpp:24:17: error: 'n' was not declared in this scope
while (cin>>n>>m)
^
0_0_35772065_5422.cpp:24:20: error: 'm' was not declared in this scope
while (cin>>n>>m)
^
0_0_35772065_5422.cpp:29:9: error: 'h' was not declared in this scope
h=1; t=0;
^
0_0_35772065_5422.cpp:29:14: error: 't' was not declared in this scope
h=1; t=0;
^
0_0_35772065_5422.cpp:32:32: error: 'q' was not declared in this scope
while (h<=t&&getup(q[h+1],q[h])<=
^
0_0_35772065_5422.cpp:34:27: error: 'q' was not declared in this scope
dp[i]=getdp(i,q[h]);
^
|