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;
^
|