Please help me with my anagram finder

I am having issues building this thisbuilding this anagram finder.
The two strings are definitely Anagrams so I am expecting to print “Anagram” and not “Not Anagram”. The opposite happens.
Here is my code:

#include<stdio.h>
#include<string.h>
int main(){
  int counter1[]={0,0,0,0};
  int counter2[]={0,0,0,0};
  char s1[]="dbb cccccaacb cdbababdcdcdab dcdad";
  char s2[]= "bbbcc bdddccccad cdbbaaacaccdabdd";
  int i;
  for(i=0;i<strlen(s1);i++){
  if(s1[i]=='a'){
  counter1[0]++;
  }
  if (s1[i]=='b')
  counter1[1]++;
  
  if (s1[i]=='c'){
  counter1[2]++;
  }
  if (s1[i]=='d'){
  counter1[3]++;
  }
  if(s1[i] == ' ') {
    continue;
  }
 
  }
 
  int j;
  for(j=0;j<strlen(s2);j++){
    if(s2[j]=='a'){
    counter2[0]++;
    }
    
    if(s2[j]=='b'){
    counter2[1]++;
    }
    if(s2[j]='c') {
    counter2[2]++;
    }
    if(s2[j]=='d') {
    counter2[3]++;
    }
    if(s2[j]==' ') {
  continue;
    }
  }
  int flag=0;
  int k;
  for( k=0;k<4;k++); {
  if (counter1[k] != counter2[k]){
  flag=1;
  
  
  }
  }
    if (flag==0)
    {printf("Anagram");
    }
    if(flag==1)  {
      printf("Not Anagram");
    }
    

}
````Preformatted text`

that = should be ==

The ; does not belong there in the loop.

#include<stdio.h> #include<string.h> int main(){ int counter1[]={0,0,0,0}; int counter2[]={0,0,0,0}; char s1[]="dbb cccccaacb cdbababdcdcdab dcdad"; char s2[]= "bbbcc bdddccccad cdbbaaacaccdabdd"; int i; for(i=0;i<strlen(s1);i++){ if(s1[i]=='a'){ counter1[0]++; } if (s1[i]=='b') counter1[1]++; if (s1[i]=='c'){ counter1[2]++; } if (s1[i]=='d'){ counter1[3]++; } if(s1[i] == ' ') { continue; } } int j; for(j=0;j<strlen(s2);j++){ if(s2[j]=='a'){ counter2[0]++; } if(s2[j]=='b'){ counter2[1]++; } if(s2[j]=='c') { counter2[2]++; } if(s2[j]=='d') { counter2[3]++; } if(s2[j]==' ') { continue; } } int flag=0; int k = 0; for( k=0;k<4;k++) { if (counter1[k] != counter2[k]){ printf("%d => %d %d", k, (int)counter1[k], (int)counter2[k]); flag=1; } } if (flag==0){ printf("Anagram"); } if(flag==1) { printf("Not Anagram"); } printf("\n"); printf("flag=%d ", flag); printf("\n"); printf("a=%d ", counter1[0]); printf("b=%d ", counter1[1]); printf("c=%d ", counter1[2]); printf("d=%d ", counter1[3]); printf("\n"); printf("a=%d ", counter2[0]); printf("b=%d ", counter2[1]); printf("c=%d ", counter2[2]); printf("d=%d ", counter2[3]); printf("\n"); printf("strlen(s1)=%d ", (int)strlen(s1)); printf("\n"); printf("strlen(s2)=%d ", (int)strlen(s2)); printf("\n"); }