记录详情

Compile Error

/in/foo.cc: In function 'void bfs(int)':
/in/foo.cc:19:25: error: return-statement with a value, in function returning 'void' [-fpermissive]
   if(t==e) return dist[t];
                         ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:36:40: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll* {aka long long int*}' [-Wformat=]
  for(int i=1;i<=n;i++) scanf("%d",&a[i]);
                                        ^
/in/foo.cc:37:13: error: void value not ignored as it ought to be
  int k=bfs(s);
             ^
/in/foo.cc:37:6: warning: unused variable 'k' [-Wunused-variable]
  int k=bfs(s);
      ^

信息

递交者
类型
递交
题目
P1009 2.新飞行棋
语言
C++
递交时间
2020-03-26 19:55:58
评测时间
2020-03-26 19:55:58
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes