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_32902038_10240.cpp:3:7: error: 'MAXN' was not declared in this scope
 int a[MAXN],b[MAXN];
       ^
0_0_32902038_10240.cpp:3:15: error: 'MAXN' was not declared in this scope
 int a[MAXN],b[MAXN];
               ^
0_0_32902038_10240.cpp: In function 'int main()':
0_0_32902038_10240.cpp:7:24: error: 'scanf' was not declared in this scope
     while(scanf("%d",&n))
                        ^
0_0_32902038_10240.cpp:9:41: error: 'a' was not declared in this scope
         for(int i=0;i<n;i++) scanf("%d",a+i);
                                         ^
0_0_32902038_10240.cpp:10:41: error: 'b' was not declared in this scope
         for(int i=0;i<n;i++) scanf("%d",b+i);
                                         ^
0_0_32902038_10240.cpp:11:14: error: 'a' was not declared in this scope
         sort(a,a+n);
              ^
0_0_32902038_10240.cpp:11:19: error: 'sort' was not declared in this scope
         sort(a,a+n);
                   ^
0_0_32902038_10240.cpp:12:14: error: 'b' was not declared in this scope
         sort(b,b+n);
              ^
0_0_32902038_10240.cpp:19:9: error: 'cout' was not declared in this scope
         cout<<ans<<endl;
         ^
0_0_32902038_10240.cpp:19:20: error: 'endl' was not declared in this scope
         cout<<ans<<endl;
                    ^


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-12-02 03:49:14, Gzip enabled