/ Vijos /

记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:9:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",n,m);
          ^
/in/foo.c:9:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",n,m);
             ^
/in/foo.c:10:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",x1,x2);
          ^
/in/foo.c:10:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",x1,x2);
             ^
/in/foo.c:11:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d %d",y1,y2);
          ^
/in/foo.c:11:13: warning: format '%d' expects argument of type 'int *', but argument 3 has type 'int' [-Wformat=]
  scanf("%d %d",y1,y2);
             ^
/in/foo.c:12:6: error: 'i' undeclared (first use in this function)
  for(i=0;i=<((y1-x1)/2);i++)
      ^
/in/foo.c:12:6: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:12:12: error: expected expression before '<' token
  for(i=0;i=<((y1-x1)/2);i++)
            ^
/in/foo.c:14:7: error: 'j' undeclared (first use in this function)
   for(j=1;j=<((y2-x2)/2;j++)
       ^
/in/foo.c:14:13: error: expected expression before '<' token
   for(j=1;j=<((y2-x2)/2;j++)
             ^
/in/foo.c:21:2: error: expected expression before '}' token
  }
  ^
/in/foo.c:21:2: error: expected expression before '}' token

信息

递交者
类型
递交
题目
P1187 兵分N路
语言
C
递交时间
2024-03-05 16:44:09
评测时间
2024-03-05 16:44:09
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes