/ Vijos /

记录详情

Compile Error

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')){
                                                             ^

信息

递交者
类型
递交
题目
P1015 十字绣
语言
C++
递交时间
2015-10-08 18:42:32
评测时间
2015-10-08 18:42:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes