记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:8:13: error: conflicting types for 'digit'; have 'int[5]'
    8 |         int digit[5];
      |             ^~~~~
/in/foo.c:7:19: note: previous declaration of 'digit' with type 'int'
    7 |         int num=n,digit,count=0;
      |                   ^~~~~
/in/foo.c:11:17: error: 'digits' undeclared (first use in this function); did you mean 'digit'?
   11 |                 digits[count++]=digit;
      |                 ^~~~~~
      |                 digit
/in/foo.c:11:17: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:8:13: warning: unused variable 'digit' [-Wunused-variable]
    8 |         int digit[5];
      |             ^~~~~

信息

递交者
类型
自测
语言
C
递交时间
2025-11-20 16:32:29
评测时间
2025-11-20 16:32:29
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes