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_18085231_12413.cpp:7:7: error: 'N' was not declared in this scope
 int c[N];
       ^
0_0_18085231_12413.cpp:8:19: error: 'N' was not declared in this scope
 pair <int ,int> A[N],B[N];
                   ^
0_0_18085231_12413.cpp:8:24: error: 'N' was not declared in this scope
 pair <int ,int> A[N],B[N];
                        ^
0_0_18085231_12413.cpp: In function 'int main()':
0_0_18085231_12413.cpp:19:13: error: 'A' was not declared in this scope
             A[i].first=x;
             ^
0_0_18085231_12413.cpp:22:14: error: 'A' was not declared in this scope
         sort(A+1,A+1+n);
              ^
0_0_18085231_12413.cpp:27:13: error: 'B' was not declared in this scope
             B[i].first=x;
             ^
0_0_18085231_12413.cpp:30:14: error: 'B' was not declared in this scope
         sort(B+1,B+1+n);//½«a[i],b[i]±àºÅ²¢ÅÅÐò 
              ^
0_0_18085231_12413.cpp:35:18: error: 'c' was not declared in this scope
             else c[A[i].second]=B[i].second;
                  ^
0_0_18085231_12413.cpp:42:18: error: 'c' was not declared in this scope
             sort(c+x,c+y+1);
                  ^
0_0_18085231_12413.cpp:46:16: error: 'c' was not declared in this scope
             if(c[i]!=i) flag=0;
                ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-02-18 21:44:52, Gzip enabled