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_30691582_11231.cpp:14:1: error: 'hash_map' does not name a type
 hash_map<int, int> hmap;
 ^
0_0_30691582_11231.cpp: In function 'int main()':
0_0_30691582_11231.cpp:65:3: error: 'hmap' was not declared in this scope
   hmap[b[i]] = i;
   ^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
 #define to(x) (hmap[x])
                ^
0_0_30691582_11231.cpp:73:15: note: in expansion of macro 'to'
    ans += sum(to(a[r + 1] + k)) - sum(to(a[r + 1] - k) - 1); inse(to(a[++r]), 1);
               ^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
 #define to(x) (hmap[x])
                ^
0_0_30691582_11231.cpp:76:9: note: in expansion of macro 'to'
    inse(to(a[r--]), 0); ans -= sum(to(a[r+1] + k)) - sum(to(a[r+1] - k) - 1);
         ^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
 #define to(x) (hmap[x])
                ^
0_0_30691582_11231.cpp:80:9: note: in expansion of macro 'to'
    inse(to(a[l++]), 0); ans -= sum(to(a[l-1] + k)) - sum(to(a[l-1] - k) - 1);
         ^
0_0_30691582_11231.cpp:17:16: error: 'hmap' was not declared in this scope
 #define to(x) (hmap[x])
                ^
0_0_30691582_11231.cpp:83:15: note: in expansion of macro 'to'
    ans += sum(to(a[l - 1] + k)) - sum(to(a[l - 1] - k) - 1); inse(to(a[--l]), 1);
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-03-11 15:54:30, Gzip enabled