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_39269244_17944.cpp: In function 'int main()':
0_0_39269244_17944.cpp:12:5: error: 'unordered_map' was not declared in this scope
   12 |     unordered_map<int,int>mp;
      |     ^~~~~~~~~~~~~
0_0_39269244_17944.cpp:8:1: note: 'std::unordered_map' is defined in header '<unordered_map>'; did you forget to '#include <unordered_map>'?
    7 | #include<cstdio>
  +++ |+#include <unordered_map>
    8 | using namespace std;
0_0_39269244_17944.cpp:12:19: error: expected primary-expression before 'int'
   12 |     unordered_map<int,int>mp;
      |                   ^~~
0_0_39269244_17944.cpp:14:9: error: 'mp' was not declared in this scope
   14 |         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-11-23 00:05:24, Gzip enabled