记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",n);
          ^
/in/foo.c:8:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
  scanf("%d",m);
          ^
/in/foo.c:15:23: error: stray '\357' in program
  {for(int j=0;j<=m;j++)
                       ^
/in/foo.c:15:24: error: stray '\274' in program
  {for(int j=0;j<=m;j++)
                        ^
/in/foo.c:15:25: error: stray '\211' in program
  {for(int j=0;j<=m;j++)
                         ^
/in/foo.c:16:3: error: expected ')' before '{' token
   {if(a[i]>b[j])
   ^
/in/foo.c:16:6: error: stray '\357' in program
   {if(a[i]>b[j])
      ^
/in/foo.c:16:7: error: stray '\274' in program
   {if(a[i]>b[j])
       ^
/in/foo.c:16:8: error: stray '\210' in program
   {if(a[i]>b[j])
        ^
/in/foo.c:16:18: error: stray '\357' in program
   {if(a[i]>b[j])
                  ^
/in/foo.c:16:19: error: stray '\274' in program
   {if(a[i]>b[j])
                   ^
/in/foo.c:16:20: error: stray '\211' in program
   {if(a[i]>b[j])
                    ^
/in/foo.c:21:2: error: expected expression before '}' token
  } printf("%d",a);
  ^
/in/foo.c:21:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
  } printf("%d",a);
             ^
/in/foo.c:5:23: warning: unused variable 'x' [-Wunused-variable]
  int n,m, a[20],b[10],x,d=0;
                       ^

信息

递交者
类型
递交
比赛
2024级10点半
语言
C
递交时间
2024-12-24 10:50:56
评测时间
2024-12-24 10:50:56
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes