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_39504943_5651.cpp: In function 'int main()':
0_0_39504943_5651.cpp:70:5: error: 'map' was not declared in this scope
   70 |     map<int,int> mp;
      |     ^~~
0_0_39504943_5651.cpp:4:1: note: 'std::map' is defined in header '<map>'; did you forget to '#include <map>'?
    3 | #include <cmath>
  +++ |+#include <map>
    4 | // #define int long long
0_0_39504943_5651.cpp:70:9: error: expected primary-expression before 'int'
   70 |     map<int,int> mp;
      |         ^~~
0_0_39504943_5651.cpp:74:13: error: 'mp' was not declared in this scope
   74 |         if( mp[ k ]==1 ){
      |             ^~
0_0_39504943_5651.cpp:78:9: error: 'mp' was not declared in this scope
   78 |         mp[ k ]=1;
      |         ^~


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-26 04:34:00, Gzip enabled