/in/foo.c: In function 'main':
/in/foo.c:5:9: error: 'cin' undeclared (first use in this function)
5 | cin>>xmin>>xmax;
| ^~~
/in/foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:6:36: error: expected ';' before 'int'
6 | scanf("%d %d",&xmin, &xmax)
| ^
| ;
7 | int digitCount[10] = {0};
| ~~~
/in/foo.c:9:9: warning: implicit declaration of function 'countDigits' [-Wimplicit-function-declaration]
9 | countDigits(i, digitCount);
| ^~~~~~~~~~~
/in/foo.c:9:24: error: 'digitCount' undeclared (first use in this function)
9 | countDigits(i, digitCount);
| ^~~~~~~~~~
/in/foo.c:19:9: error: 'cout' undeclared (first use in this function)
19 | cout<<"%d\n", mostFrequentDigit<<endl;
| ^~~~
/in/foo.c:19:42: error: 'endl' undeclared (first use in this function)
19 | cout<<"%d\n", mostFrequentDigit<<endl;
| ^~~~
/in/foo.c:19:21: warning: left-hand operand of comma expression has no effect [-Wunused-value]
19 | cout<<"%d\n", mostFrequentDigit<<endl;
| ^