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_36238691_2056.cpp:19:5: error: 'vector' does not name a type
     vector<node> e;
     ^
0_0_36238691_2056.cpp: In constructor 'unmap<A, B>::unmap()':
0_0_36238691_2056.cpp:21:44: error: there are no arguments to 'memset' that depend on a template parameter, so a declaration of 'memset' must be available [-fpermissive]
     unmap() { memset(head, -1, sizeof(head)); }
                                            ^
0_0_36238691_2056.cpp:21:44: note: (if you use '-fpermissive', G++ will accept your code, but allowing the use of an undeclared name is deprecated)
0_0_36238691_2056.cpp: In member function 'bool unmap<A, B>::count(A)':
0_0_36238691_2056.cpp:25:40: error: 'e' was not declared in this scope
         for (int i = head[hs]; ~i; i = e[i].nxt)
                                        ^
0_0_36238691_2056.cpp: In member function 'B& unmap<A, B>::operator[](A)':
0_0_36238691_2056.cpp:33:40: error: 'e' was not declared in this scope
         for (int i = head[hs]; ~i; i = e[i].nxt)
                                        ^
0_0_36238691_2056.cpp:36:9: error: 'e' was not declared in this scope
         e.push_back({u, B(), head[hs]}), head[hs] = e.size() - 1;
         ^
0_0_36238691_2056.cpp: In member function 'void unmap<A, B>::clear()':
0_0_36238691_2056.cpp:41:38: error: there are no arguments to 'memset' that depend on a template parameter, so a declaration of 'memset' must be available [-fpermissive]
         memset(head, -1, sizeof(head));
                                      ^


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-02 06:24:24, Gzip enabled