foo.cpp: In function 'int main()':
foo.cpp:17:27: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'int' [-Wformat=]
scanf("%d",puzzle[i][j]);
^
foo.cpp:21:18: error: too few arguments to function 'void bfs(int, int, int, int, int, int)'
bfs(sx,sy,tx,ty);
^
foo.cpp:12:13: note: declared here
inline void bfs(int,int,int,int,int,int);
^~~
foo.cpp: In function 'bool puzzle_jd(int, int, int, int)':
foo.cpp:26:6: error: expected primary-expression before ')' token
if () return false;
^
foo.cpp: In function 'void bfs(int, int, int, int, int, int)':
foo.cpp:31:9: error: expected primary-expression before ')' token
while (){
^
foo.cpp:33:15: error: 'puzzle' cannot be used as a function
if (puzzle() == true){
^
foo.cpp:29:6: warning: unused variable 'p' [-Wunused-variable]
int p;
^