0_0_29669289_17830.cpp: In function 'void init()':
0_0_29669289_17830.cpp:22:5: error: 'l' was not declared in this scope
l=0,r=0;
^
0_0_29669289_17830.cpp:22:9: error: 'r' was not declared in this scope
l=0,r=0;
^
0_0_29669289_17830.cpp: In function 'void solve()':
0_0_29669289_17830.cpp:44:16: error: 'l' was not declared in this scope
while (l<r&&up(q[l+1],q[l])<2*sum[i]*down(q[l+1],q[l])) ++l;
^
0_0_29669289_17830.cpp:44:18: error: 'r' was not declared in this scope
while (l<r&&up(q[l+1],q[l])<2*sum[i]*down(q[l+1],q[l])) ++l;
^
0_0_29669289_17830.cpp:45:20: error: 'l' was not declared in this scope
dp[i]=dp[q[l]]+(sum[i]-sum[q[l]])*(sum[i]-sum[q[l]])+m;
^
0_0_29669289_17830.cpp:46:18: error: 'r' was not declared in this scope
while (l<r&&up(q[r],q[r-1])*down(i,q[r])>up(i,q[r])*down(q[r],q[r-1])) --r;
^
0_0_29669289_17830.cpp:47:11: error: 'r' was not declared in this scope
++r,q[r]=i;
^
|