记录详情

Compile Error

foo.c:7:14: error: unknown type name 'BigInt'; did you mean 'int'?
 int MoveLeft(BigInt a[],int n)
              ^~~~~~
              int
foo.c: In function 'main':
foo.c:24:3: error: unknown type name 'BigInt'; use 'struct' keyword to refer to the type
   BigInt Ja[100001];
   ^~~~~~
   struct 
foo.c:30:21: error: request for member 'str' in something not a structure or union
    scanf("%d",&Ja[i].str);
                     ^
foo.c:31:9: error: request for member 'n' in something not a structure or union
    Ja[i].n=i+1;
         ^
foo.c:37:13: error: request for member 'str' in something not a structure or union
     if(Ja[i].str>=Ja[i+1].str)
             ^
foo.c:37:26: error: request for member 'str' in something not a structure or union
     if(Ja[i].str>=Ja[i+1].str)
                          ^
foo.c:38:13: error: request for member 'str' in something not a structure or union
      Ja[i+1].str=0;
             ^
foo.c:40:11: error: request for member 'str' in something not a structure or union
      Ja[i].str=0;
           ^
foo.c:42:7: warning: implicit declaration of function 'MoveLeft' [-Wimplicit-function-declaration]
   cnt=MoveLeft(Ja,cnt);
       ^~~~~~~~
foo.c:44:22: error: request for member 'n' in something not a structure or union
  printf("%d %d",Ja[0].n,Ja[1].n);
                      ^
foo.c:44:30: error: request for member 'n' in something not a structure or union
  printf("%d %d",Ja[0].n,Ja[1].n);
                              ^
foo.c:26:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&cnt);
   ^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1297 D. Jabberwocky
语言
C
递交时间
2021-11-21 15:21:54
评测时间
2021-11-21 15:21:54
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes