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_36044357_8186.cpp: In function 'int main()':
0_0_36044357_8186.cpp:10:14: error: 'n' was not declared in this scope
         cin>>n>>k;
              ^
0_0_36044357_8186.cpp:10:17: error: 'k' was not declared in this scope
         cin>>n>>k;
                 ^
0_0_36044357_8186.cpp:13:18: error: 'l' was not declared in this scope
             cin>>l[i]>>r[i];
                  ^
0_0_36044357_8186.cpp:13:24: error: 'r' was not declared in this scope
             cin>>l[i]>>r[i];
                        ^
0_0_36044357_8186.cpp:18:13: error: 'l' was not declared in this scope
             l[i+1]=max(l[i+1],l[i]-k);//最左边 
             ^
0_0_36044357_8186.cpp:19:13: error: 'r' was not declared in this scope
             r[i+1]=min(r[i+1],r[i]+k);// 
             ^
0_0_36044357_8186.cpp:24:13: error: 'l' was not declared in this scope
             l[i-1]=max(l[i-1],l[i]-k);//最大 
             ^
0_0_36044357_8186.cpp:25:13: error: 'r' was not declared in this scope
             r[i-1]=min(r[i-1],r[i]+k);//小 
             ^
0_0_36044357_8186.cpp:30:16: error: 'l' was not declared in this scope
             if(l[i]>r[i])
                ^
0_0_36044357_8186.cpp:30:21: error: 'r' was not declared in this scope
             if(l[i]>r[i])
                     ^
0_0_36044357_8186.cpp:37:23: error: 'l' was not declared in this scope
                 cout<<l[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-06-26 13:27:33, Gzip enabled