/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:13: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
  side_lenth=min(n,m);
             ^~~
/in/foo.c:19:2: error: expected ';' before 'for'
  for(i=1;i<=n;i++)
  ^~~
/in/foo.c:31:8: error: 'flags' undeclared (first use in this function)
  while(flags==0)
        ^~~~~
/in/foo.c:31:8: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:38:9: error: 'i' undeclared (first use in this function)
     for(i=k;i<=k+side_lenth-1;i++)
         ^
/in/foo.c:40:10: error: 'j' undeclared (first use in this function)
      for(j=q;j<=q+side_lenth;j++)
          ^
/in/foo.c:57:23: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
  printf("边长为:%d",&side_lenth);
                       ^
/in/foo.c:16:6: warning: variable 'a' set but not used [-Wunused-but-set-variable]
  int a[n][m];
      ^

信息

递交者
类型
递交
题目
P1057 盖房子
语言
C
递交时间
2021-12-29 20:56:21
评测时间
2021-12-29 20:56:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes