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_23802524_21359.cpp: In function 'int change(int*, int, int, int*, int, int)':
0_0_23802524_21359.cpp:4:19: error: 'n' was not declared in this scope
     for(int i=0;i<n;i++)if(b[i]==c[n-1])break;
                   ^
0_0_23802524_21359.cpp:4:34: error: 'c' was not declared in this scope
     for(int i=0;i<n;i++)if(b[i]==c[n-1])break;
                                  ^
0_0_23802524_21359.cpp: In function 'int main()':
0_0_23802524_21359.cpp:10:17: error: 'n' was not declared in this scope
     scanf("%d",&n);
                 ^
0_0_23802524_21359.cpp:11:37: error: 'a' was not declared in this scope
     for(int i=0;i<n;i++)scanf("%d",&a[i]);
                                     ^
0_0_23802524_21359.cpp:12:9: error: 'i' was not declared in this scope
     for(i=0;i<n;i++)scanf("%d",&b[i]);
         ^
0_0_23802524_21359.cpp:12:33: error: 'b' was not declared in this scope
     for(i=0;i<n;i++)scanf("%d",&b[i]);
                                 ^
0_0_23802524_21359.cpp:13:12: error: 'a' was not declared in this scope
     change(a,0,n-1,b,0,n-1);
            ^
0_0_23802524_21359.cpp:13:20: error: 'b' was not declared in this scope
     change(a,0,n-1,b,0,n-1);
                    ^


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:48:30, Gzip enabled