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_35123712_2528.cpp: In function 'int find_shortest_path()':
0_0_35123712_2528.cpp:64:31: error: 'memset' was not declared in this scope
     memset(dist,0,sizeof(dist));
                               ^
0_0_35123712_2528.cpp: In function 'int backtrack(int)':
0_0_35123712_2528.cpp:105:83: error: 'strlen' was not declared in this scope
         if (find_shortest_path() && dist[endx*2+1][endy*2+1]/2 == (int)strlen(path)) { // solution found
                                                                                   ^
In file included from 0_0_35123712_2528.cpp:2:0:
0_0_35123712_2528.cpp: In function 'int main()':
0_0_35123712_2528.cpp:197:27: error: 'strlen' was not declared in this scope
         assert(strlen(path) <= (DIMENSION-1)*5);
                           ^
0_0_35123712_2528.cpp:228:43: error: 'memset' was not declared in this scope
                 memset(flag,0,sizeof(flag));
                                           ^


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-06-29 06:00:06, Gzip enabled