记录详情

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:4: error: expected ')' before '{' token
    {if(a[i]>b[j]
    ^
/in/foo.c:16:7: error: stray '\357' in program
    {if(a[i]>b[j]
       ^
/in/foo.c:16:8: error: stray '\274' in program
    {if(a[i]>b[j]
        ^
/in/foo.c:16:9: error: stray '\210' in program
    {if(a[i]>b[j]
         ^
/in/foo.c:22:1: error: expected expression before '}' token
 }
 ^
/in/foo.c:22:1: error: expected declaration or statement at end of input
/in/foo.c:5:22: warning: unused variable 'x' [-Wunused-variable]
 int n,m, a[20],b[10],x,d=0;
                      ^

信息

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