/ Vijos /

记录详情

Compile Error

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

信息

递交者
类型
递交
题目
P1846 华容道
语言
C++
递交时间
2017-03-08 21:23:46
评测时间
2017-03-08 21:23:46
评测机
分数
0
总耗时
255ms
峰值内存
0 Bytes