0_0_30406396_30397.cpp:27:13: error: initializer-string for array of chars is too long [-fpermissive]
char d[4] = "udlr";
^
0_0_30406396_30397.cpp: In function 'void aStar(Node)':
0_0_30406396_30397.cpp:39:28: error: 'get_hash' was not declared in this scope
end.hash = get_hash(end);
^
0_0_30406396_30397.cpp:48:18: error: 'get_h' was not declared in this scope
a.h = get_h(a);
^
0_0_30406396_30397.cpp:51:11: error: 'push' was not declared in this scope
push(a);
^
0_0_30406396_30397.cpp:62:59: error: 'swap' was not declared in this scope
swap(&cur.f[cur.x][cur.y],&cur.f[nextX][nextY]);
^
0_0_30406396_30397.cpp:76:24: error: 'print' was not declared in this scope
print(k);
^
0_0_30406396_30397.cpp: In function 'void push(Node)':
0_0_30406396_30397.cpp:96:14: error: 'up' was not declared in this scope
up(size-1);
^
0_0_30406396_30397.cpp: In function 'Node* pop()':
0_0_30406396_30397.cpp:101:36: error: invalid conversion from 'void*' to 'Node*' [-fpermissive]
Node* res = malloc(sizeof(Node));
^
0_0_30406396_30397.cpp:113:11: error: 'down' was not declared in this scope
down(0);
^
|