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_29669289_17830.cpp: In function 'void init()':
0_0_29669289_17830.cpp:22:5: error: 'l' was not declared in this scope
     l=0,r=0;
     ^
0_0_29669289_17830.cpp:22:9: error: 'r' was not declared in this scope
     l=0,r=0;
         ^
0_0_29669289_17830.cpp: In function 'void solve()':
0_0_29669289_17830.cpp:44:16: error: 'l' was not declared in this scope
         while (l<r&&up(q[l+1],q[l])<2*sum[i]*down(q[l+1],q[l])) ++l;
                ^
0_0_29669289_17830.cpp:44:18: error: 'r' was not declared in this scope
         while (l<r&&up(q[l+1],q[l])<2*sum[i]*down(q[l+1],q[l])) ++l;
                  ^
0_0_29669289_17830.cpp:45:20: error: 'l' was not declared in this scope
         dp[i]=dp[q[l]]+(sum[i]-sum[q[l]])*(sum[i]-sum[q[l]])+m;
                    ^
0_0_29669289_17830.cpp:46:18: error: 'r' was not declared in this scope
         while (l<r&&up(q[r],q[r-1])*down(i,q[r])>up(i,q[r])*down(q[r],q[r-1])) --r;
                  ^
0_0_29669289_17830.cpp:47:11: error: 'r' was not declared in this scope
         ++r,q[r]=i;
           ^


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-23 08:37:18, Gzip enabled