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_37818418_25652.cpp: In function 'void solve()':
0_0_37818418_25652.cpp:40:5: error: 'unordered_map' was not declared in this scope
     unordered_map<int, int> mp;
     ^
0_0_37818418_25652.cpp:11:13: error: expected primary-expression before 'long'
 #define int long long
             ^
0_0_37818418_25652.cpp:40:19: note: in expansion of macro 'int'
     unordered_map<int, int> mp;
                   ^
0_0_37818418_25652.cpp:42:26: error: 'mp' was not declared in this scope
     while(t < 200010 && !mp.count(cur)) // 如果mp有值相当于死循环了
                          ^
0_0_37818418_25652.cpp:72:24: error: 'mp' was not declared in this scope
                     if(mp.count(t) && mp[t] <= d[i]) ans ++ ; // 在mp内且天数符合要求
                        ^


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 07:57:47, Gzip enabled