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