Help me in solving TWOSTR problem

My issue

can u explain it some more detail

My code

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    int x,y;
	    cin>>x>>y;
	    if(x==y){
	        
	    }
	}
	return 0;
}

Learning course: Strings using C++
Problem Link: CodeChef: Practical coding for everyone

#include <iostream>
#include <string>

#define AzH_TxdmN ios_base::sync_with_stdio(0);cin.tie(nullptr);cout.tie(nullptr);
using namespace std;

int t;
string s1,s2;

int main()
{
    AzH_TxdmN //macro that speeds the code
    cin>>t;
    while(t--)
    {
        bool state = true; // we use this flag variable "state" to check whether the query already answered or not
        cin>>s1>>s2;
        for (int i = 0; i < s1.length() && state; i++) //s1.length() == s2.length() so writing any works
        {
            if (s1[i] == '?' || s2[i] == '?')
            {
                continue; // if any of its charachter is '?' then we don't need to care it as we can replace it
            }
            else
            {
                if (s1[i] != s2[i]) // if a charachter isn't equal with another, you can't change it
                {
                    cout<<"No\n";  // that's why we output No and change the state to false.
                    state = false;
                }
            }
        }
        if (state)
            cout<<"Yes\n";
    }
}

Self explaining code.