Help me find the error

#include <stdio.h>
#include <string.h>
#include <math.h>
#include <stdlib.h>

int main() {
int i=0,c=0;
/* Enter your code here. Read input from STDIN. Print output to STDOUT */
char n[1000];
scanf("%s",n);
for(int j=0;j<=9;j++)
{
while(n[i]!=’\0’)
{
if(n[i]==j)
c++;
i++;
}
printf("%d ",c);
i=0;
c=0;
}

return 0;

}

You are comparing a character element (n[i]) with an integer (j) .