Problem Link: CCOOK Problem - CodeChef
Feedback #query help bug reports c faq
Here is my code for the problem CCOOK:
/include <stdio.h>
int main(void) {
// your code goes here
int t;
scanf(“%d”,&t);
while(t–)
{
int a[5],solved=0;
for(int i=0;i<5;i++)
scanf(“%d”,&a[i]);
for(int i=0;i<5;i++)
{
if(a[i]==1)
solved+=1;
}
switch(solved)
{
case 0: printf(“Beginner\n”);break;
case 1: printf(“Junior Developer\n”);break;
case 2: printf(“Middle Developer\n”);break;
case 3: printf(“Higher Developer\n”);break;
case 4: printf(“Hacker\n”);break;
default: printf(“Jeff Dean\n”);
}
}
return 0;
}
Its passing all pre-provided as well as self defined test cases but when I’m submitting this code. I am getting WA.
Can anyone please tell me what’s wrong with code.