foo.cpp: In function 'int init()':
foo.cpp:9:6: warning: unused variable 'temp' [-Wunused-variable]
char temp;
^
foo.cpp: In function 'int floodfill(int, int)':
foo.cpp:35:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != 1 && (map[0][j-1] == '\\' || map[0][j-1] == 'X')){
^
foo.cpp:35:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != 1 && (map[0][j-1] == '\\' || map[0][j-1] == 'X')){
^
foo.cpp:40:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != 1 && (map[1][j-1] == '\\' || map[1][j-1] == 'X')){
^
foo.cpp:40:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != 1 && (map[1][j-1] == '\\' || map[1][j-1] == 'X')){
^
foo.cpp:45:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != m+1 && (map[0][j] == '/' || map[0][j] == 'X')){
^
foo.cpp:45:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != m+1 && (map[0][j] == '/' || map[0][j] == 'X')){
^
foo.cpp:50:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != m+1 && (map[1][j] == '/' || map[1][j] == 'X')){
^
foo.cpp:50:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
if( i != 1 && j != m+1 && (map[1][j] == '/' || map[1][j] == 'X')){
^