# Help me in solving CSCP11A problem

### My code

``````// The code below is incorrect. Debug this code to solve this problem

#include <stdio.h>
#include <stdlib.h>

int main() {
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
int total_score = A + B + C;
int minimum_score = A;
if (B < minimum_score) {
minimum_score = B;
}
if (C < minimum_score) {
minimum_score = C;
}
if (total_score >= 100 && minimum_score >= 10) {
printf("PASS\n");
} else {
printf("FAIL\n");
}
}
return 0;
}
``````

Learning course: C for problem solving - 1
Problem Link: CodeChef: Practical coding for everyone

@rawvicks_420
Just changed the print statement to PASS and FAIL and the code worked for me.

``````// The code below is incorrect. Debug this code to solve this problem

#include <stdio.h>
#include <stdlib.h>

int main() {
int t;
scanf("%d", &t);
for (int i = 0; i < t; i++) {
int A, B, C;
scanf("%d %d %d", &A, &B, &C);
int total_score = A + B + C;
int minimum_score = A;
if (B < minimum_score) {
minimum_score = B;
}
if (C < minimum_score) {
minimum_score = C;
}
if (total_score >= 100 && minimum_score >= 10) {
printf("PASS\n");
} else {
printf("FAIL\n");
}
}
return 0;
}
``````