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_33814990_17697.cpp:34:1: error: 'pair' does not name a type
 pair<int,int> Closest_Pair(int left,int right)
 ^
0_0_33814990_17697.cpp: In function 'int main()':
0_0_33814990_17697.cpp:86:18: error: 'scanf' was not declared in this scope
     scanf("%d",&T);
                  ^
0_0_33814990_17697.cpp:103:31: error: 'sort' was not declared in this scope
             sort(p,p+end,cmpxy);
                               ^
0_0_33814990_17697.cpp:106:13: error: 'pair' was not declared in this scope
             pair<int,int>pr = Closest_Pair(0,end-1);
             ^
0_0_33814990_17697.cpp:106:18: error: expected primary-expression before 'int'
             pair<int,int>pr = Closest_Pair(0,end-1);
                  ^
0_0_33814990_17697.cpp:107:29: error: 'pr' was not declared in this scope
             int Max = max(p[pr.first].index,p[pr.second].index);
                             ^
0_0_33814990_17697.cpp:107:63: error: 'max' was not declared in this scope
             int Max = max(p[pr.first].index,p[pr.second].index);
                                                               ^
0_0_33814990_17697.cpp:111:29: error: 'printf' was not declared in this scope
         printf("%I64d\n",ans);
                             ^


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-06-18 20:06:57, Gzip enabled