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_38770227_139.cpp: In function 'int main()':
0_0_38770227_139.cpp:25:32: error: invalid declarator before 'mp'
   25 |    unordered_map map<int , int>mp;
      |                                ^~
0_0_38770227_139.cpp:30:23: error: 'mp' was not declared in this scope; did you mean 'cmp'?
   30 |                 if(!f)mp[  a[r].c ]++;
      |                       ^~
      |                       cmp
0_0_38770227_139.cpp:31:16: error: 'mp' was not declared in this scope; did you mean 'cmp'?
   31 |             if(mp.size()==k)
      |                ^~
      |                cmp
0_0_38770227_139.cpp:39:16: error: 'mp' was not declared in this scope; did you mean 'cmp'?
   39 |             if(mp.size()<k) {f=0;r++;}
      |                ^~
      |                cmp
0_0_38770227_139.cpp:41:6: error: 'mp' was not declared in this scope; did you mean 'cmp'?
   41 |      mp.clear();
      |      ^~
      |      cmp


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-29 11:27:37, Gzip enabled