0_0_23589218_7308.cpp:16:1: error: 'll' does not name a type
ll dp[maxn];
^
0_0_23589218_7308.cpp:19:1: error: 'll' does not name a type
ll cow[maxn];
^
0_0_23589218_7308.cpp:20:1: error: 'll' does not name a type
ll sum[maxn];
^
0_0_23589218_7308.cpp:22:1: error: 'll' does not name a type
ll gety(int j,int k)
^
0_0_23589218_7308.cpp:27:1: error: 'll' does not name a type
ll getx(int j,int k)
^
0_0_23589218_7308.cpp: In function 'int main()':
0_0_23589218_7308.cpp:39:28: error: 'cow' was not declared in this scope
scanf("%I64d",&cow[i]);
^
0_0_23589218_7308.cpp:41:14: error: 'cow' was not declared in this scope
sort(cow+1,cow+n+1);
^
0_0_23589218_7308.cpp:44:13: error: 'sum' was not declared in this scope
sum[i]=sum[i-1]+cow[i];
^
0_0_23589218_7308.cpp:47:13: error: 'dp' was not declared in this scope
dp[i] = sum[i] - i*cow[1];
^
0_0_23589218_7308.cpp:47:21: error: 'sum' was not declared in this scope
dp[i] = sum[i] - i*cow[1];
^
0_0_23589218_7308.cpp:53:54: error: 'gety' was not declared in this scope
while(head+1<tail && gety(i-t+1,q[tail-1])*getx(q[tail-1],q[tail-2])<=gety(q[tail-1],q[tail-2])*getx(i-t+1,q[tail-1]))tail--;
^
0_0_23589218_7308.cpp:53:80: error: 'getx' was not declared in this scope
while(head+1<tail && gety(i-t+1,q[tail-1])*getx(q[tail-1],q[tail-2])<=gety(q[tail-1],q[tail-2])*getx(i-t+1,q[tail-1]))tail--;
^
0_0_23589218_7308.cpp:55:56: error: 'gety' was not declared in this scope
while(head+1<tail && gety(q[head+1],q[head])<=i*getx(q[head+1],q[head]))head++;
^
0_0_23589218_7308.cpp:55:83: error: 'getx' was not declared in this scope
while(head+1<tail && gety(q[head+1],q[head])<=i*getx(q[head+1],q[head]))head++;
^
0_0_23589218_7308.cpp:56:13: error: 'dp' was not declared in this scope
dp[i]=dp[q[head]-1]+sum[i]-sum[q[head]-1]-(i-q[head]+1)*cow[q[head]];
^
0_0_23589218_7308.cpp:56:33: error: 'sum' was not declared in this scope
dp[i]=dp[q[head]-1]+sum[i]-sum[q[head]-1]-(i-q[head]+1)*cow[q[head]];
^
0_0_23589218_7308.cpp:58:26: error: 'dp' was not declared in this scope
printf("%I64d\n",dp[n]);
^
|