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_23804388_21409.cpp: In function 'int change(int*, int, int, int*, int, int)':
0_0_23804388_21409.cpp:4:19: error: 'n' was not declared in this scope
     for(int i=0;i<n;i++)if(b[i]==a[astart])break;
                   ^
0_0_23804388_21409.cpp:5:19: error: 'n' was not declared in this scope
     for(int j=0;j<n;j++)if(a[j]==b[i-1])break;
                   ^
0_0_23804388_21409.cpp:5:36: error: 'i' was not declared in this scope
     for(int j=0;j<n;j++)if(a[j]==b[i-1])break;
                                    ^
0_0_23804388_21409.cpp:6:18: error: 'i' was not declared in this scope
     if(astart+1<=i&&i+1<=bend)
                  ^
0_0_23804388_21409.cpp:7:23: error: 'j' was not declared in this scope
     change(a,astart+1,j,b,bstart,i-1);
                       ^
0_0_23804388_21409.cpp:8:16: error: 'i' was not declared in this scope
     if(bstart<=i-1&&i+1<=aend)
                ^
0_0_23804388_21409.cpp:9:14: error: 'j' was not declared in this scope
     change(a,j+1,aend,b,i+1,bend);
              ^
0_0_23804388_21409.cpp: In function 'int main()':
0_0_23804388_21409.cpp:19:9: error: 'i' was not declared in this scope
     for(i=0;i<n;i++)scanf("%d",&b[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-15 18:57:31, Gzip enabled