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_39139513_21409.cpp: In function 'void set_g(node)':
0_0_39139513_21409.cpp:48:5: error: 'memset' was not declared in this scope
   48 |     memset(g, 0, sizeof g);
      |     ^~~~~~
0_0_39139513_21409.cpp:9:1: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    8 | #include <map>
  +++ |+#include <cstring>
    9 | #include <string>
0_0_39139513_21409.cpp: In function 'bool bfs()':
0_0_39139513_21409.cpp:63:5: error: 'memset' was not declared in this scope
   63 |     memset(vis, '0', sizeof vis);
      |     ^~~~~~
0_0_39139513_21409.cpp:63:5: note: 'memset' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
0_0_39139513_21409.cpp: At global scope:
0_0_39139513_21409.cpp:160:1: error: expected unqualified-id before '-' token
  160 | -
      | ^


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 05:00:52, Gzip enabled