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:28:10: error: expected primary-expression before ']' token
if (vis[][][][]
^
foo.cpp:28:12: error: expected primary-expression before ']' token
if (vis[][][][]
^
foo.cpp:28:14: error: expected primary-expression before ']' token
if (vis[][][][]
^
foo.cpp:28:16: error: expected primary-expression before ']' token
if (vis[][][][]
^
foo.cpp:29:1: error: expected ')' before '}' token
}
^
foo.cpp:29:1: error: expected primary-expression before '}' token
foo.cpp: In function 'void bfs(int, int, int, int, int, int)':
foo.cpp:40:15: error: 'puzzle' cannot be used as a function
if (puzzle() == true){
^