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