记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:14: error: redeclaration of 'c' with no linkage
    7 |          int c=a+b;
      |              ^
foo.c:5:13: note: previous declaration of 'c' with type 'int'
    5 |     int a,b,c,d,e;
      |             ^
foo.c:8:14: error: redeclaration of 'd' with no linkage
    8 |          int d=a*b;
      |              ^
foo.c:5:15: note: previous declaration of 'd' with type 'int'
    5 |     int a,b,c,d,e;
      |               ^
foo.c:9:14: error: redeclaration of 'e' with no linkage
    9 |          int e=a%b;
      |              ^
foo.c:5:17: note: previous declaration of 'e' with type 'int'
    5 |     int a,b,c,d,e;
      |                 ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
语言
C
递交时间
2022-09-29 20:44:57
评测时间
2022-09-29 20:44:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes