Help me in solving CWC23QUALIF problem

My issue

include<stdio.h>

void main(){
int n;
//
// Input number of lines
scanf(“%d”, &n);
//
if (n >= 12) {
printf(“YES”);
}
else {
printf(“NO”);
}
}

this is the code i am trying to run, the output is correct but it keeps showing runtime error SIGINT

My code

# include<stdio.h>
void main(){
	int n;
	//
// Input number of lines
	scanf("%d", &n);
	//
	if (n >= 12) {
	    printf("YES");
	}
	else {
	    printf("NO");
	}
}

Learning course: 500 difficulty rating
Problem Link: Cricket World Cup Qualifier Practice Problem in - CodeChef

@saga_69
u have to do it like this

#include <stdio.h>

int main(void) {
	int x;
	scanf("%d",&x);
	if(x>=12)
	printf("YES\n");
	else
	printf("NO\n");
	return 0;
}
1 Like