Language: C++

#include <bits/stdc++.h>
#include <string>
 
using namespace std;
using namespace std::chrono; 
 
 
 
//c++ templte for help...........................................................
 
//#define deb(x) cout<<#x<<" "<<x<<endl;/* for debuging  printing variable with name*/
//#define debb(x,y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<endl;										
//#define debbb(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<endl;			
 
//typedef long long ll;
//typedef unsigned long long ull;
	
 
//for loop
//#define fo(i,n) for(int i=0;i<(ll)n;i++)
//#define Fo(i,k,n) for(int i=k;i<n;i++)
 
 
//to print vector element 
//template<typename T>
//void printV(T vec){
	//fo(i,vec.size()) cout<<vec[i]<<" "<<flush;
	//cout<<endl;
	//}
	
 
//#define modulo 1000000007
//const int INF=1e9+5;
 
//iterate map
//template<typename T>
//void itR(T map){
	 //for(auto itr=map.begin();itr!=map.end();itr++){
				//debb(itr->first,itr->second)
			//}
	//cout<<endl;
//}
 
 
 
//c++ template for help........................................................

void change(vector<ll> &vec,ll a,ll b,ll c){
	swap(vec[a],vec[b]);
	swap(vec[a],vec[c]);
}


int main() {
	//stringstream ss;
	//ss<<"akhil";
	//cout<<ss.str()<<endl;
	cout<<setprecision(50);
	ios::sync_with_stdio(0);
	cin.tie(0);
	
	
	 // TESTCASE KO DEKH KA BHAUT SARA CONDITION GENERATE MAT KRO 
	 // PAPER PD CONFIRM HO JAO THORA JADA TIME HI KYU NA LGA
	 // greedy ma jadatr exceptional case check kr ke dekh lo
	 
	 // WHILE DOING THE QUESTION OF DYNAMIC PROGRAMMING GREEDY KA TRAH SOCHNA BAND KRO
	 // DP M DATA KA BHI USE KRNA PDTA HA BE BHULO MT 
	 // DP BHI WO LEETCODE WALE MATRIX KA QUESTION KI TARAH HA
	 // CONSTRAIN WILL BE THE DIMENSION OF DP
	 // DP MA STATE PTA KRO AUR PHIR FUNCTION GENERATE KRO
	 // OBJECT KO CHOOSE KIA YA NAE KIA AGAR KIA TO KYA HOGA AUR NAE KIA TO KYA HOGA
	 // KYA KYA CHEJ IMPORTANT HA WO STATE BN JYAGA AUR HUM LOG STATE KO CHANGE KR SKTA HA JYSA KNPSACK 2 WALE PROBLEM MA KIA THA
	 

	 
	ll testCase;
	cin>>testCase;
	for(ll tt=0;tt<testCase;tt++){
		string s,t;
		cin>>s>>t;
		
		t.pop_back();
		if(s==t) cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
		






	}
	
	return 0;
}


Compiler output:
a.cc:48:20: error: 'll' was not declared in this scope
   48 | void change(vector<ll> &vec,ll a,ll b,ll c){
      |                    ^~
a.cc:48:22: error: template argument 1 is invalid
   48 | void change(vector<ll> &vec,ll a,ll b,ll c){
      |                      ^
a.cc:48:22: error: template argument 2 is invalid
a.cc:48:29: error: 'll' has not been declared
   48 | void change(vector<ll> &vec,ll a,ll b,ll c){
      |                             ^~
a.cc:48:34: error: 'll' has not been declared
   48 | void change(vector<ll> &vec,ll a,ll b,ll c){
      |                                  ^~
a.cc:48:39: error: 'll' has not been declared
   48 | void change(vector<ll> &vec,ll a,ll b,ll c){
      |                                       ^~
a.cc: In function 'void change(int&, int, int, int)':
a.cc:49:17: error: invalid types 'int[int]' for array subscript
   49 |         swap(vec[a],vec[b]);
      |                 ^
a.cc:49:24: error: invalid types 'int[int]' for array subscript
   49 |         swap(vec[a],vec[b]);
      |                        ^
a.cc:50:17: error: invalid types 'int[int]' for array subscript
   50 |         swap(vec[a],vec[c]);
      |                 ^
a.cc:50:24: error: invalid types 'int[int]' for array subscript
   50 |         swap(vec[a],vec[c]);
      |                        ^
a.cc: In function 'int main()':
a.cc:77:9: error: 'll' was not declared in this scope
   77 |         ll testCase;
      |         ^~
a.cc:78:14: error: 'testCase' was not declared in this scope
   78 |         cin>>testCase;
      |              ^~~~~~~~
a.cc:79:15: error: expected ';' before 'tt'
   79 |         for(ll tt=0;tt<testCase;tt++){
      |               ^~~
      |               ;
a.cc:79:21: error: 'tt' was not declared in this scope; did you mean 'tm'?
   79 |         for(ll tt=0;tt<testCase;tt++){
      |                     ^~
      |                     tm