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_30766081_10134.cpp:43:50: error: template declaration of 'node<T2> e [1000003]'
 struct node{public:point u;T2 v;int next;}e[maxsz];
                                                  ^
0_0_30766081_10134.cpp:56:3: error: 'T2' does not name a type
   T2 operator()(point u){
   ^
0_0_30766081_10134.cpp: In member function 'void hash_map::operator[](point)':
0_0_30766081_10134.cpp:48:28: error: 'e' was not declared in this scope
     for(int i=head[hs];i;i=e[i].next)
                            ^
0_0_30766081_10134.cpp:54:5: error: 'e' was not declared in this scope
     e[++nume]=(node){u,1,head[hs]},head[hs]=nume;
     ^
0_0_30766081_10134.cpp:54:20: error: missing template arguments before ')' token
     e[++nume]=(node){u,1,head[hs]},head[hs]=nume;
                    ^
0_0_30766081_10134.cpp:54:35: error: expected primary-expression before ',' token
     e[++nume]=(node){u,1,head[hs]},head[hs]=nume;
                                   ^
0_0_30766081_10134.cpp: At global scope:
0_0_30766081_10134.cpp:67:3: error: 'hash_map' is not a template
 };hash_map<int> mpn;
   ^
0_0_30766081_10134.cpp: In function 'int main()':
0_0_30766081_10134.cpp:90:42: error: no match for call to '(hash_map) (point)'
                 ans[i]+=mpn(point(dy,-dx));
                                          ^
0_0_30766081_10134.cpp:107:42: error: no match for call to '(hash_map) (point)'
                 ans[j]+=mpn(point(dy,-dx))+mpn(point(-dy,dx));
                                          ^
0_0_30766081_10134.cpp:107:61: error: no match for call to '(hash_map) (point)'
                 ans[j]+=mpn(point(dy,-dx))+mpn(point(-dy,dx));
                                                             ^


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-12-12 15:43:23, Gzip enabled