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_30261511_25994.cpp:6:1: error: 'hash_map' does not name a type
 hash_map<ull, ull> mp;
 ^
0_0_30261511_25994.cpp:7:1: error: 'hash_map' does not name a type
 hash_map<ull, int> cnta;
 ^
0_0_30261511_25994.cpp:8:1: error: 'hash_map' does not name a type
 hash_map<ull, int> cntb;
 ^
0_0_30261511_25994.cpp: In function 'void init()':
0_0_30261511_25994.cpp:11:2: error: 'mp' was not declared in this scope
  mp.clear();
  ^
0_0_30261511_25994.cpp:12:2: error: 'cnta' was not declared in this scope
  cnta.clear();
  ^
0_0_30261511_25994.cpp:13:2: error: 'cntb' was not declared in this scope
  cntb.clear();
  ^
0_0_30261511_25994.cpp: In function 'bool cmp(ull, ull)':
0_0_30261511_25994.cpp:26:9: error: 'mp' was not declared in this scope
  return mp[a] < mp[b];
         ^
0_0_30261511_25994.cpp: In function 'int main()':
0_0_30261511_25994.cpp:40:8: error: 'cnta' was not declared in this scope
     if(cnta[tem]==0)a.push_back(tem);
        ^
0_0_30261511_25994.cpp:41:5: error: 'mp' was not declared in this scope
     mp[tem]++;
     ^
0_0_30261511_25994.cpp:42:5: error: 'cnta' was not declared in this scope
     cnta[tem]++;
     ^
0_0_30261511_25994.cpp:47:8: error: 'cntb' was not declared in this scope
     if(cntb[tem]==0)b.push_back(tem);
        ^
0_0_30261511_25994.cpp:48:5: error: 'mp' was not declared in this scope
     mp[tem]++;
     ^
0_0_30261511_25994.cpp:49:5: error: 'cntb' was not declared in this scope
     cntb[tem]++;
     ^
0_0_30261511_25994.cpp:56:8: error: 'cnta' was not declared in this scope
     if(cnta[rec]==0)a.push_back(rec);
        ^
0_0_30261511_25994.cpp:57:5: error: 'mp' was not declared in this scope
     mp[rec]++;
     ^
0_0_30261511_25994.cpp:58:5: error: 'cnta' was not declared in this scope
     cnta[rec]++;
     ^
0_0_30261511_25994.cpp:64:8: error: 'cntb' was not declared in this scope
     if(cntb[rec]==0)b.push_back(rec);
        ^
0_0_30261511_25994.cpp:65:5: error: 'mp' was not declared in this scope
     mp[rec]++;
     ^
0_0_30261511_25994.cpp:66:5: error: 'cntb' was not declared in this scope
     cntb[rec]++;
     ^
0_0_30261511_25994.cpp:74:21: error: 'mp' was not declared in this scope
    while (a.size()&&mp[a.back()] == 0) a.pop_back();
                     ^
0_0_30261511_25994.cpp:77:5: error: 'mp' was not declared in this scope
     mp[rec] = 0;
     ^
0_0_30261511_25994.cpp:78:13: error: 'cnta' was not declared in this scope
     cnt1 += cnta[rec];
             ^
0_0_30261511_25994.cpp:80:21: error: 'mp' was not declared in this scope
    while (b.size()&&mp[b.back()] == 0) b.pop_back();
                     ^
0_0_30261511_25994.cpp:83:5: error: 'mp' was not declared in this scope
     mp[rec] = 0;
     ^
0_0_30261511_25994.cpp:84:13: error: 'cntb' was not declared in this scope
     cnt2 += cntb[rec];
             ^


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-13 14:58:40, Gzip enabled