/ 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: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;
      ^

信息

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