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();
^
|