/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];
| ^~~~~