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_33392011_19865.cpp:11:1: error: 'll' does not name a type
 ll dp[N],dis[N];
 ^
0_0_33392011_19865.cpp: In function 'void dfs(int, int)':
0_0_33392011_19865.cpp:19:3: error: 'dis' was not declared in this scope
   dis[v]=dis[x]+w;
   ^
0_0_33392011_19865.cpp: In function 'double slope(int, int)':
0_0_33392011_19865.cpp:25:9: error: 'dp' was not declared in this scope
  int dy=dp[y]+dis[y]*dis[y]-dp[x]-dis[x]*dis[x];
         ^
0_0_33392011_19865.cpp:25:15: error: 'dis' was not declared in this scope
  int dy=dp[y]+dis[y]*dis[y]-dp[x]-dis[x]*dis[x];
               ^
0_0_33392011_19865.cpp: At global scope:
0_0_33392011_19865.cpp:30:1: error: 'll' does not name a type
 ll ans=0;
 ^
0_0_33392011_19865.cpp: In function 'void DP(int, int)':
0_0_33392011_19865.cpp:38:37: error: 'dis' was not declared in this scope
  while(l<r&&slope(st[l+1],st[l])<=2*dis[x])L.push(st[l]),l++;
                                     ^
0_0_33392011_19865.cpp:39:2: error: 'dp' was not declared in this scope
  dp[x]=dp[st[l]]+(dis[x]-dis[st[l]])*(dis[x]-dis[st[l]])+p;
  ^
0_0_33392011_19865.cpp:39:19: error: 'dis' was not declared in this scope
  dp[x]=dp[st[l]]+(dis[x]-dis[st[l]])*(dis[x]-dis[st[l]])+p;
                   ^
0_0_33392011_19865.cpp:43:2: error: 'ans' was not declared in this scope
  ans=max(ans,dp[x]);
  ^
0_0_33392011_19865.cpp: In function 'int main()':
0_0_33392011_19865.cpp:64:38: error: 'dis' was not declared in this scope
   for(int i=0;i<=n;i++) G[i].clear(),dis[i]=0,dp[i]=0,st[i]=0;
                                      ^
0_0_33392011_19865.cpp:64:47: error: 'dp' was not declared in this scope
   for(int i=0;i<=n;i++) G[i].clear(),dis[i]=0,dp[i]=0,st[i]=0;
                                               ^
0_0_33392011_19865.cpp:65:3: error: 'ans' was not declared in this scope
   ans=0;
   ^
0_0_33392011_19865.cpp:75:3: error: 'dp' was not declared in this scope
   dp[0]=-p;
   ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 12:01:11, Gzip enabled