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_36777970_4021.cpp:30:1: error: 'unordered_map' does not name a type
 unordered_map<int, int> mp;
 ^
0_0_36777970_4021.cpp: In function 'double Closest_Pair(int, int)':
0_0_36777970_4021.cpp:39:12: error: 'mp' was not declared in this scope
         if(mp[L] || mp[R]) return dis;
            ^
0_0_36777970_4021.cpp:60:13: error: 'mp' was not declared in this scope
         if(!mp[P[i].id] && fabs(P[i].x - P[mid].x) <= dis){
             ^
0_0_36777970_4021.cpp: In function 'int main()':
0_0_36777970_4021.cpp:95:9: error: 'mp' was not declared in this scope
         mp.clear();
         ^


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-02 09:34:12, Gzip enabled