记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:13: error: redeclaration of 'b' with no linkage
    6 |         int b=1;
      |             ^
foo.c:5:15: note: previous declaration of 'b' with type 'int'
    5 |         int a,b,c,n,num;
      |               ^
foo.c:7:13: error: redeclaration of 'c' with no linkage
    7 |         int c=1;
      |             ^
foo.c:5:17: note: previous declaration of 'c' with type 'int'
    5 |         int a,b,c,n,num;
      |                 ^
foo.c:9:17: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'int' [-Wformat=]
    9 |         scanf("%d",n);
      |                ~^  ~
      |                 |  |
      |                 |  int
      |                 int *
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1024 兔子数列
语言
C
递交时间
2022-08-18 18:45:16
评测时间
2022-08-18 18:45:16
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes