This my code.
if(strcmp(s[0][i],s[rock][j])==0) { count[i]+=1; rock++; }
The strcmp function compares two strings. If you want to compare two char variables, just use == or !=.
strcmp
char
==
!=