F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_37549020_25141.cpp:47:1: error: 'll' does not name a type
 ll dp[MAX];
 ^
0_0_37549020_25141.cpp: In function 'LL GetY(int, int)':
0_0_37549020_25141.cpp:50:9: error: 'dp' was not declared in this scope
  return dp[j-1]-sum[j-1]+(j-1)*s[j]-(dp[k-1]-sum[k-1]+(k-1)*s[k]);
         ^
0_0_37549020_25141.cpp: In function 'LL DP()':
0_0_37549020_25141.cpp:61:24: error: 'dp' was not declared in this scope
  for(int i=t;i<2*t;++i)dp[i]=sum[i]-i*s[1];//³υΚΌ»―
                        ^
0_0_37549020_25141.cpp:66:3: error: 'dp' was not declared in this scope
   dp[i]=dp[q[head]-1]+sum[i]-sum[q[head]-1]+(q[head]-1)*s[q[head]]-i*s[q[head]];
   ^
0_0_37549020_25141.cpp:68:9: error: 'dp' was not declared in this scope
  return dp[n];
         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 16:19:36, Gzip enabled