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_39504938_11058.cpp: In function 'int main()':
0_0_39504938_11058.cpp:70:5: error: 'map' was not declared in this scope
   70 |     map<int,int> mp;
      |     ^~~
0_0_39504938_11058.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_39504938_11058.cpp:70:9: error: expected primary-expression before 'int'
   70 |     map<int,int> mp;
      |         ^~~
0_0_39504938_11058.cpp:74:13: error: 'mp' was not declared in this scope
   74 |         if( mp[ k ]==1 ){
      |             ^~
0_0_39504938_11058.cpp:75:28: error: expected ';' before 'continue'
   75 |             cout<<sum<<endl
      |                            ^
      |                            ;
   76 |             continue;
      |             ~~~~~~~~        
0_0_39504938_11058.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-29 17:07:37, Gzip enabled