WHY IS THIS HAPPENING?

My issue

no output is coming

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t,A,B,A1,A2,B1,B2;
	while(t--){
	    cin>>A>>B>>A1>>B1>>A2>>B2;
	        
	    if((A==A1 && B==B1) || (A==B1 && B==A1)){
	        cout<<"1"<<endl;
	    }
	    else if((A==A2 && B==B2) || (A==B2 && B==A2)){
	        cout<<"2"<<endl;
	    }
	    else{
	        cout<<"0"<<endl;
	    }
	}
	return 0;
}

Problem Link: CodeChef: Practical coding for everyone

You have to input t before the loop like this cin>>t;

1 Like

:pinched_fingers: :pinched_fingers: :pinched_fingers:

justani

@justani pls clear my doubt too,

1 Like

oh my god small things make big mess haha , thanks