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_39471358_18245.cpp:21:1: error: 'unordered_map' does not name a type
   21 | unordered_map <ull,int> mp;
      | ^~~~~~~~~~~~~
0_0_39471358_18245.cpp: In function 'void clear()':
0_0_39471358_18245.cpp:39:9: error: 'mp' was not declared in this scope; did you mean 'p'?
   39 |         mp.clear(); ans=0;
      |         ^~
      |         p
0_0_39471358_18245.cpp: In function 'int main()':
0_0_39471358_18245.cpp:75:25: error: 'mp' was not declared in this scope; did you mean 'p'?
   75 |                         mp[v[i]]++;
      |                         ^~
      |                         p
0_0_39471358_18245.cpp:77:26: error: 'mp' was not declared in this scope; did you mean 'p'?
   77 |                 for(it i=mp.begin();i!=mp.end();++i) ans+=i->second*(i->second-1)/2;
      |                          ^~
      |                          p
0_0_39471358_18245.cpp:89:40: error: 'mp' was not declared in this scope; did you mean 'mk'?
   89 |                                 int mk=mp[v[t]]; //cout<<"red"<<mk<<endl;
      |                                        ^~
      |                                        mk


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-10 18:50:02, Gzip enabled