There is no output coming

Why is there no output coming in this problem ?

#include <iostream>
using namespace std;

int main() {
    int t;
    while(t){
        int a, b, a1, b1, a2, b2;
        cin >> a >> b >> a1 >> b1 >> a2 >> b2;
        if(((a+b == a1 + b1) & (a == a1 | a == b1))){
            cout << "1" << endl;
        }
        else if(((a+b == a2 + b2) & (a == a2 | a == b2))){
            cout << "2" << endl;
        }
        else{
            cout << "0" << endl;
        }
        t--;
    }
	return 0;
}

@achintyavarsh - which problem is this?

@achintyavarsh you have not taken input of t .
ie cin>>t;

1 Like

Name: Programming Languages
Problem Code: PROGLANG
Contest Code:LTIME99
Difficulty Rating:1001