0_0_21442336_27589.cpp: In function 'int main()':
0_0_21442336_27589.cpp:18:3: error: 'll' was not declared in this scope
ll ans=0;
^
0_0_21442336_27589.cpp:33:12: error: 'ans' was not declared in this scope
if(t2) ans+=a[i]*(r[t2]-i)*(i-l[1]);
^
0_0_21442336_27589.cpp:34:10: error: 'ans' was not declared in this scope
else ans+=a[i]*(n-i+1)*(i-l[1]);
^
0_0_21442336_27589.cpp:39:7: error: 'ans' was not declared in this scope
ans+=a[i]*(l[o-1]-l[o])*(r[k-o+1]-r[k-o]);
^
0_0_21442336_27589.cpp:42:16: error: 'ans' was not declared in this scope
if(t2!=0) ans+=a[i]*(l[k-1]-l[k])*(r[1]-i);
^
0_0_21442336_27589.cpp:43:11: error: 'ans' was not declared in this scope
else ans+=a[i]*(l[k-1]-l[k])*(n-i+1);
^
0_0_21442336_27589.cpp:46:16: error: 'ans' was not declared in this scope
if(t2!=0) ans+=a[i]*l[k-1]*(r[1]-i);
^
0_0_21442336_27589.cpp:47:11: error: 'ans' was not declared in this scope
else ans+=a[i]*l[k-1]*(n-i+1);
^
0_0_21442336_27589.cpp:49:19: error: 'ans' was not declared in this scope
else if(t1>1) ans+=a[i]*(l[t1-1]-l[t1])*(r[k-t1+1]-r[k-t1]);
^
0_0_21442336_27589.cpp:50:15: error: 'ans' was not declared in this scope
if(t2==k) ans+=a[i]*(i-l[1])*(r[k]-r[k-1]);
^
0_0_21442336_27589.cpp:51:22: error: 'ans' was not declared in this scope
else if(t2==k-1) ans+=a[i]*(n-r[k-1]+1)*(i-l[1]);
^
0_0_21442336_27589.cpp:52:19: error: 'ans' was not declared in this scope
else if(t2>1) ans+=a[i]*(r[t2]-r[t2-1])*(l[k-t2]-l[k-t2+1]);
^
0_0_21442336_27589.cpp:56:19: error: 'ans' was not declared in this scope
printf("%lld\n",ans);
^
|