+ 1
I used C to solve the Gotham City and the program worked well in my laptop, why all the tests got failed ?
9 Respostas
+ 4
I think your code is running successfully
+ 1
I checked it so many times. It's like the tests are constant.
+ 1
Anam Quraishi could you please link up the code. You'll get help faster
+ 1
Anam Quraishi your print statement are different from mention in the task that's why it's casuing test case failure.
#include <stdio.h>
int main() 
{
    int criminal;
    //printf("Number of Criminals:\n");
    scanf("%d", &criminal);
    
    if(criminal < 5)
    printf("%s", "I got this!\n");
    
    else if(criminal <= 10)
    printf("%s", "Help me Batman\n");
    
    else
    printf("%s", "Good Luck out there!   \n");
    return 0;
    
}
+ 1
Anam Quraishi capitalized letter at start of every word which is not in statement they want also no requirement of first print statement
0
You must be missing something definitely
0
then what should I write there?
0
Anam Quraishi
Remove or comment line 6.no need to put that.. As preity said, you should not include any extra charecter or space in output...
For ex:
If criminal< 5
You should output only "I got this!" exactly,
as given requirement in description.. with matching case also... ("I Got this!." is different, has extra dot G capitalised, so not matches Expexted output)
So remove extra spaces in outputting and \n also...



