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_23163299_19579.cpp:15:25: error: array bound is not an integer constant before ']' token
 bool hash_map[state_size];
                         ^
0_0_23163299_19579.cpp:16:24: error: array bound is not an integer constant before ']' token
 int previous[state_size];
                        ^
0_0_23163299_19579.cpp:17:39: error: array bound is not an integer constant before ']' token
 char stored_direction_codes[state_size];
                                       ^
0_0_23163299_19579.cpp: In function 'int main()':
0_0_23163299_19579.cpp:131:16: error: 'hash_map' was not declared in this scope
         memset(hash_map, false, sizeof(hash_map));
                ^
0_0_23163299_19579.cpp: In function 'void output(int, int)':
0_0_23163299_19579.cpp:166:23: error: 'previous' was not declared in this scope
   output(origin_hash, previous[hash]);
                       ^
0_0_23163299_19579.cpp:167:11: error: 'stored_direction_codes' was not declared in this scope
   cout << stored_direction_codes[hash];
           ^
0_0_23163299_19579.cpp: In function 'int A_star(Node)':
0_0_23163299_19579.cpp:184:8: error: 'hash_map' was not declared in this scope
    if(!hash_map[next_node.get_hash()])
        ^
0_0_23163299_19579.cpp:187:5: error: 'stored_direction_codes' was not declared in this scope
     stored_direction_codes[next_node.get_hash()] = direction_codes[i];
     ^
0_0_23163299_19579.cpp:189:5: error: 'previous' was not declared in this scope
     previous[next_node.get_hash()] = curr_node.get_hash();
     ^


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-10-05 05:33:04, Gzip enabled