Please somebody find the logic error in the jungle campign code. While testing it shows 5th test error
#include <stdio.h> #include<string.h> int main() { char a[6],b[6],c[6],d[6]; scanf("%s",a); scanf("%s",b); scanf("%s",c); scanf("%s",d); if(strcmp(a,"Grr")==0) printf("Lion "); if(strcmp(a,"Ssss")==0) printf("Snake "); if(strcmp(a,"Chirp")==0) printf("Bird "); if(strcmp(a,"Rawr")==0) printf("Tiger "); if(strcmp(b,"Grr")==0) printf("Lion "); if(strcmp(b,"Ssss")==0) printf("Snake "); if(strcmp(b,"Chirp")==0) printf("Bird "); if(strcmp(b,"Rawr")==0) printf("Tiger "); if(strcmp(c,"Grr")==0) printf("Lion "); if(strcmp(c,"Ssss")==0) printf("Snake "); if(strcmp(c,"Chirp")==0) printf("Bird "); if(strcmp(c,"Rawr")==0) printf("Tiger "); if(strcmp(d,"Grr")==0) printf("Lion "); if(strcmp(d,"Ssss")==0) printf("Snake "); if(strcmp(d,"Chirp")==0) printf("Bird "); if(strcmp(d,"Rawr")==0) printf("Tiger "); }