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_38781148_23797.cpp: In function 'void solve()':
0_0_38781148_23797.cpp:94:5: error: 'hash_map' was not declared in this scope; did you mean '__gnu_cxx::hash_map'?
   94 |     hash_map<int, int> mp;
      |     ^~~~~~~~
      |     __gnu_cxx::hash_map
In file included from 0_0_38781148_23797.cpp:6:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/backward/hash_map:83:11: note: '__gnu_cxx::hash_map' declared here
   83 |     class hash_map
      |           ^~~~~~~~
0_0_38781148_23797.cpp:94:14: error: expected primary-expression before 'int'
   94 |     hash_map<int, int> mp;
      |              ^~~
0_0_38781148_23797.cpp:98:9: error: 'mp' was not declared in this scope; did you mean 'm'?
   98 |         mp[xx]++;
      |         ^~
      |         m
0_0_38781148_23797.cpp:101:5: error: 'mp' was not declared in this scope; did you mean 'm'?
  101 |     mp[xx]++;
      |     ^~
      |     m


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-20 01:48:22, Gzip enabled