criyle/codenet-compile-errors huggingface dataset:
Language: C

/*
       Hi there <3 
──────▄▀▄─────▄▀▄
─────▄█░░▀▀▀▀▀░░█▄
─▄▄──█░░░░░░░░░░░█──▄▄
█▄▄█─█░░▀░░┬░░▀░░█─█▄▄█

*/
#include <bits/stdc++.h>
#define MOD 1000000007
#define re return
#define fi first
#define se second
#define mp make_pair
#define pb emplace_back
#define all(x) x.begin(), x.end()
#define sz(x) ((int)(x).size())
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rrep(i, n) for (int i = (n)-1; i >= 0; i--)
#define y0 y32479
#define y1 y95874
#define next next239
#define prev prev239
#define fill(x, y) memset(x, y, sizeof(x))
#define sqr(x) ((x) * (x))
#define sqrt(x) sqrt(abs(x))
#define unq(x) (x.resize(unique(all(x)) - x.begin()))
#define ba back()
#define popcount __builtin_popcountll
#define fastIO()                 \
    {                            \
        ios::sync_with_stdio(0); \
        cin.tie(0);              \
        cout.tie(0);             \
    }
#define in(x) \
    int x;    \
    cin >> x;
#define in1(x) \
    int x;     \
    cin >> x;  \
    x--;
#define inll(x) \
    ll x;       \
    cin >> x;
#define ins(x) \
    string x;  \
    cin >> x;

using namespace std;

typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef vector<string> vs;
typedef long long ll;
typedef pair<ll, ll> pll;
typedef vector<ll> vll;
typedef pair<double, double> pdd;
typedef long double LD;
typedef double D;

void Solve()
{
    string s,t;
    cin>>t>>s;
    t+=s[s.length()-1];
    if(s==t)
        cout<<"Yes"<<endl;
    else
    {
            cout<<"No"<<endl;
    }
    
}

int main()
{
    fastIO();
    int t;
    t=1;
    while (t--)
    {
        Solve();
    }
    return 0;
}

Compiler output:
main.c:9:10: fatal error: bits/stdc++.h: No such file or directory
    9 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define endl "\n";
#define int long long
#define fastio ios_base::sync_with_stdio(0); cin.tie(0)
#define double long double
const int mod = 1e9 + 7;
const int K = 26;

int32_t main()
{   
    fastio;
    
    string s, t; cin >> s >> t;
    if(s == t.substr(0,t.size()-1))
    	cout << "Yes" << endl;
    else
    	cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int32_t main()':
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else
      |     ^~~~
Language: C++

#include<bits/stdc++.h>


typedef long long int lli;
typedef unsigned long long int ulli;
typedef long double ldb;

#define pb push_back
#define popb pop_back
#define si size()
#define be begin()
#define en end()
#define le length()
#define mp make_pair
#define mt make_tuple
#define fi first
#define se second

#define forz(i,n) for( int i=0;i<n;i++)
#define forl(i, n) for(int i = 1; i<= n; i++)
#define deci(n)  fixed<<setprecision(n)
#define high(n) __builtin_popcount(n)
#define parity(n) __builtin_parity(n)
#define ctz(n)  __builtin_ctz(n)
// #define mod 1000000007
#define mod2 998244353
#define kira ios::sync_with_stdio(0), cin.tie(0),cout.tie(0)

using namespace std;

void cpc()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w" , stdout);
#endif
}
lli power(lli x, lli y)
{
	lli res = 1;     // Initialize result
	// lli p = mod;
	x = x ; // Update x if it is more than or
	// equal to p

	if (x == 0) return 0; // In case x is divisible by p;

	while (y > 0)
	{
		// If y is odd, multiply x with result
		if (y & 1)
			res = (res * x);

		// y must be even now
		y = y >> 1; // y = y/2
		x = (x * x);
	}
	return res;
}

int main()
{
	
	string s, t;
	cin >> s >> t;
	lli n = s.size();
	if (s == t.substr(0, n)  && t.size== (s.size() +1))
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:66:39: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   66 |         if (s == t.substr(0, n)  && t.size== (s.size() +1))
      |                                     ~~^~~~
      |                                           ()
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i=0;i<(n);i++)
typedef long long ll;

int main(){
    string s,t;
    cin >> s >> t;
    string ans = "Yes";
    for(int i=0; i<s.length();i++){
        if(s.at(i)!=t.at(i)) ans ="No";
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#define PI 2.0*acos(0.0)
#define ll              long long int
#define gcd(a,b)        __gcd(a,b)
#define lcm(a,b)        ((a)*(b))/gcd(a,b)
#define MOD             1000000007
#define mx              123456789
using namespace std;
int main()
{
    string s, s1;
    cin>>s>>s1;
    bool ok=0;
    for(i=0; i<s.size(); i++)
    {
        if(s[i]!=s1[i])
        {
            ok=1;
            break;
        }
    }
    if(ok==0)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'i' was not declared in this scope
   14 |     for(i=0; i<s.size(); i++)
      |         ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i=0; i < (int)(n); i++)
using ull = unsigned long long;
using ll = long long;


int main() {
    string S, T;
    cin >> S >> T;

    if (S.size() + 1 == T.size() && S == T.substr(0, S.size())) cout << "Yes" << endl;
    else cout << "No" << endl;
    

    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;

#define bolt ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define pb push_back
#define endl "\n"
#define lb lower_bound
#define ub upper_bound

typedef long long ll;
typedef long double ld;

const ld pi=3.1415926535897932384626433;
const int mod = 1000000007;
const ll inf=3e18;
// 92DTG

int main ()
{
   bolt;
   string s;
   string t;
   cin>>s>>t;
   if (s.size()>=t.size)
   {
      cout<<"No";
      return 0;
   }
   ll ans=0;
   for (ll i=0;i<s.size();i++)
   {
      if (s[i]==t[i])
      {
         ans++;
      }
   }
  
   if (ans==s.size() and ans+1==t.size())
      cout<<"Yes";
   else
      cout<<"No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:20: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   26 |    if (s.size()>=t.size)
      |                  ~~^~~~
      |                        ()
Language: C++

#include<stdc++.h>
using namespace std;

int main(){
    string S;
    string T;

    cin >> S >> T;

    if(T.size()-S.size()==1){
        cout << "Yse" << endl;
    }
    else{
        cout << "No" << endl;
    }

}

Compiler output:
a.cc:1:9: fatal error: stdc++.h: No such file or directory
    1 | #include<stdc++.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

/*
Date : 10/05/2020
Time : 
author - @wayToHell (Avinash Prasad)
Contest Name : Codeforce Round #
Problem id : 
Problem name : 
Problem Link : https://www.codeforces.com/contest/
FROM DUST I HAVE COME, DUST I WILL BE....
                           -Anonymous
*/
#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,fast-math,O3")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
#define speed                   \
  ios_base::sync_with_stdio(0); \
  cin.tie(0);                   \
  cout.tie(0);
#include <bits/stdc++.h>
using namespace std ;
#define INF 18446744073709551610
#define MOD 1000000007
#define loop(i,n) for( int i=0;i<n;i++)
#define loopab(i,a,b) for(int i=a;i<=b;i++) 
#define loopr(i,b,a) for(int i=b;i>=a;i--)
#define P first
#define Q second
#define FILL(x,a) memset ( x , a ,sizeof x)
#define pb push_back
#define mp make_pair
typedef long long ll;
typedef long long int lli;
typedef vector<int> vi;
typedef pair <int,int> pii;
typedef vector < pii > vii;
typedef vector < vii > viii;
int main()
{
	speed;
	string s, t;
	cin >> s >> t;
	int i  =0;
	while(i<s.length())
	{
		if(s[i]!=t[i])
		{
			cout << "No";
			return 0;
		}
		i++;
	}
	cout << "Yes";
	return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:14:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C

#include <bits/stdc++.h>

using namespace std;
int main(void)
{
  string s, r;
  cin>>s>>r;
  for(int i=0; i<s.size(); i++)
  {
    if(s[i]!=r[i])
    {
      cout<<"No\n";
      return 0;
    }
  }
  
  cout<<"Yes\n";
  return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

class Main{
	
}import java.util.*;
class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String a=sc.nextLine(),b=sc.nextLine();
    b = b.substring(0,a.length());
    if(a.equals(b)){
      pl("Yes");
    }else{
      pl("No");
    }
  }

  public static void pr(String str){
    System.out.print(str);
  }
  public static void pl(String str){
    System.out.println(str);
  }
}


Compiler output:
Main.java:3: error: class, interface, enum, or record expected
}import java.util.*;
 ^
1 error
Language: C++

//I love Nanami Chiaki
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define pii pair<int,int>
#define mp make_pair
#define fst first
#define snd second
const int inf=1e9+7;
const int mod=1e9+7;
//const int maxn=;
string s,t;
int main(){
	cin>>s;cin>>t;
	for (int i=0;i<s.size();i++){
		if (s[i]!=t[i]){puts("No");return 0}
	}
	puts("Yes");return 0;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:52: error: expected ';' before '}' token
   16 |                 if (s[i]!=t[i]){puts("No");return 0}
      |                                                    ^
      |                                                    ;
Language: C++

/***************************************** START OF TEMPLATE *********************************************/

#include<bits/stdc++.h>

using namespace std;

#define  SPEED          ios:: sync_with_stdio(0);cin.tie(0);cout.tie(0);cout<<fixed;cout<<setprecision(10);
#define  randomINIT     mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());
#define  foo(i,a,n)     for(ll i = (a); i <= n; i++)
#define  frr(i,a,n)     for(ll i = (a); i >= n; i--)
#define  fo(i,n)        for(ll i = 0; i < n; i++)
#define  all(x)         (x).begin(),(x).end()
#define  mset(x,val)    memset(x,val,sizeof(x))
#define  newl           cout<<"\n"
#define  f              first
#define  s              second
#define  pb             push_back
#define  INPa(a,n)      foo(i,1,n) cin>>a[i];
#define  deb2d(a,n,m)   foo(i,1,n){foo(j,1,m){cout<<a[i][j]<<" ";}newl;}
#define  deb1d(a,n)     foo(i,1,n)cout<<a[i]<<" ";newl;
#define  debv(a)        for(auto it: a)cout<<it<<" ";newl;
#define  deb1(a)        cout<<a<<" ";newl;
#define  deb2(a,b)      cout<<a<<" "<<b<<" ";newl;
#define  deb3(a,b,c)    cout<<a<<" "<<b<<" "<<c<<" ";newl;
#define  deb4(a,b,c,d)  cout<<a<<" "<<b<<" "<<c<<" "<<d;newl;
#define  ll             long long
#define  ld             long double
#define  pll            pair<ll,ll>
#define  vll            vector<ll>
#define  vpll           vector<pll>

const ll   MOD   =  1e+9 + 7;
const ll   INF   =  LLONG_MAX;
const int  INFi  =  INT_MAX;
const ll   N     =  2e+5 + 8;

vll adj[N]; ll vis[N];
ll dx4[] = {0, 1, 0, -1}, dy4[] = {1, 0, -1, 0};

ll test_cases = 1; randomINIT; a

/**********************************************************************aa***********************************/
/***************************************** VARIABLE DECLARATIONS *****************************************/
string s, t;


/***************************************** FUNCTION IMPLEMENTATIONS **************************************/



/***************************************** START OF MAIN FUNCTION ****************************************/
void MAIN(ll tc) {
    cin >> s >> t;
    foo(i, 0, s.size() - 1) {
        if (s[i] == t[i]) continue;
        else {
            cout << "No\n";
            return;
        }
    }
    if (s.size() + 1 == t.size()) {
        cout << "Yes\n";
    } else {
        cout << "No\n";
    }
}

int main() {
    SPEED;

    //cin>>test_cases;
    foo(i, 1, test_cases) {
        MAIN(i);
    }
}

Compiler output:
a.cc:40:32: error: 'a' does not name a type
   40 | ll test_cases = 1; randomINIT; a
      |                                ^
a.cc: In function 'void MAIN(long long int)':
a.cc:16:25: error: 'second' was not declared in this scope
   16 | #define  s              second
      |                         ^~~~~~
a.cc:53:12: note: in expansion of macro 's'
   53 |     cin >> s >> t;
      |            ^
a.cc:53:17: error: 't' was not declared in this scope; did you mean 'tc'?
   53 |     cin >> s >> t;
      |                 ^
      |                 tc
Language: C

#include <stdio.h>
#include <string.h>

int main(){
	int A[12],B[12];
	scanf("%s %s",&N);
	int n= strlen(A);
    int i=0;
    for(i=0;i<n;i++){
      
      if(A[i]!=B[i]){
        printf("No\n");
        return 0;
      }
    }
  	if(B[n]!=NULL){
      printf("Yes\n");
      return 0;
    }
  
	printf("No\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:24: error: 'N' undeclared (first use in this function)
    6 |         scanf("%s %s",&N);
      |                        ^
main.c:6:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:23: error: passing argument 1 of 'strlen' from incompatible pointer type [-Wincompatible-pointer-types]
    7 |         int n= strlen(A);
      |                       ^
      |                       |
      |                       int *
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'int *'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:16:16: warning: comparison between pointer and integer
   16 |         if(B[n]!=NULL){
      |                ^~
Language: C

#include "bits/stdc++.h"

typedef long long ll;
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define max3(x, y, z) max(x, max(y, z))
#define min3(x, y, z) min(x, min(y, z))

#ifdef _MSC_FULL_VER  //デバッグ出力
#define dout cout
#define debug() if (true)
#define check(x) std::cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) std::cout << "☆" << x << endl
#else
#define dout \
  if (false) cout
#define debug() if (false)
#define check(x) \
  if (false) cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) \
  if (false) cout << "☆" << x << endl
#endif

using namespace std;
int main() {
  string a,b;
  cin >> a >> b;
  rep(i, a.length()) {
    if (a[i] != b[i]) {
      cout << "No";
      return 0;
    }
  }
  if (a.length() + 1 != b.length()) {
    cout << "No";
    return 0;
  }
  cout << "Yes";
  return 0;
}
/*
//よく使うやつ
int N;
cin >> N;
vector<int> list(N);
rep(i,N) {
  cin >> list[i];
}
//配列(スタックとしても使える)
vector<int> list;
list.at(i)
vector<vector<int>> list(10, vector<int>(10));
//ソート クイックだからO(NlogN)
sort(all(list));
sort(all(list), greater<int>());

//配列の最小最大(Nは要素数)
*min_element(all(c))
*max_element(all(c))

//a[0]からa[N]を逆順にする(計算量はO(N))
reverse(all(a));
//listの末尾に要素を追加
list.push_back(10);
//listの末尾から要素を削除
list.pop_back();
//空ですか？
list.empty()



//キュー(待ち行列)
//定義
queue<int> a;
//追加
a.push(x);
//取る
a.pop();
//チェック
a.front()
//サイズ
a.size()
//空ですか
a.empty()



//優先度付きキュー※全部計算量がO(NlogN)あるので注意
// int 型の要素を持ち、最も小さい値を取り出す形の priority_queue を定義
priority_queue<int, vector<int>, greater<int>> Q1;
// double 型の要素を持ち、最も大きい値を取り出す形の priority_queueを定義
priority_queue<double, vector<double>, less<double>> Q2;
//追加
a.push(x);
//取る
a.pop();
//一番小さいの教えて下さい
a.top()
//サイズ
a.size()
//空ですか
a.empty()



//配列の内容表示
dout << "====listの内容====\n";
for (int edp = 0; edp < N; edp++) dout << list[edp] << endl;
dout << "====ここまで====\n";



//部分文字列
//添字3から5文字
s.substr(3,5)
//添字3から全部
s.substr(3)

//入れ替え
swap(a,b);


*/


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include "bits/stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h>
using namespace std;

int main(){
	string a,b;
	cin >> a>> b;
int l = a.size();

	if(b.substr(l) == a ){
		cout << "Yes" <<endl;
	}
	else{
		cout << "No" <<endl;
	}
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int maxn=2e5+7;

int main()
{
    string s,t;
    cin>>s>>t;
    int n=s.size();
    int x=0;
    for(int i=0;i<len;i++){
        if(s[i]!=t[i]){
            x=1;break;
        }
    }     
    if(x){
        printf("No\n");
    }
    else{
        printf("Yes\n");
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: 'len' was not declared in this scope
   12 |     for(int i=0;i<len;i++){
      |                   ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;

int main()
{
  string a, b;
  cin >> a >> b;
  bool flag = true;
  for (int i = 0; i < a.size(); i++)
  {
    if (a[i] != b[i])
    {
      flag = false;
      break;
    }
  }
  if (flag)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <valarray>
#include <algorithm>
#include <utility>
#include <functional>

using namespace std;

int main() {
	string s,t;
  char a;
	cin >> s >> t;
  a=t[t.size()-1];
  if(s+a==t){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: C

#include <bits/stdc++.h>

using ll = long long;
using namespace std;
const int INFint = 2e9+1;
const ll INFll = 2e18+1;
ll MOD=1e9+7;


int H,W,T;
string s[10];

int main(){
  string s,t;
  cin>>s>>t;
  if(int(s.size()) != int(t.size()) - 1){
    cout << "No" << endl;
    return 0;
  }
  for(int i(0);i<int(s.size());i++){
    if(s[i] != t[i]) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}



Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <fstream>
#include <iostream>
#include <vector>
#include <cstring>
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define Nmax 1000005
#define INF 1000000000
#define MOD 1000000007
 
using namespace std;

int main()
{
    
    // #ifndef ONLINE_JUDGE
    //     freopen ("data.in","r",stdin);
    //     freopen ("E.out","w",stdout);
    // #endif
    cin.sync_with_stdio( false );

    int tests=1;
    // cin>>tests;
    while(tests--)
    {
    	string s,t;
    	cin>>s>>t;
    	if(s.length()+==t.length() && s==t.substr(0,s.length())) cout<<"Yes";
    	else cout<<"No";

   	}
    	return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:24: error: expected primary-expression before '=' token
   29 |         if(s.length()+==t.length() && s==t.substr(0,s.length())) cout<<"Yes";
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main(void){
    string s,t;
    cin >> s >> t;
    for(int i = 0;i < s.size();i++){
        if(s.at(i) != t.at(i)){
            cout << "No" << endl;
            return;
        }
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |             return;
      |             ^~~~~~
Language: C

#include <cmath>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <iostream>
#include <algorithm>
#include <bits/stdc++.h>
#define ll long long
using namespace std;
void put(int x){
	if(x<0) {
		putchar('-');
		x*=-1;
	}
	if(x==0) {
		putchar('0');
	}
	int num=0;
	char c[15];
	while(x) {
		c[++num]=(x%10)+48;
		x/=10;
	}
	while(num) {
		putchar(c[num--]);
	}
	putchar('\n');
}
inline void in(int &x){
	char ch=getchar();
	int flag=1;
	while(!(ch>='0'&&ch<='9')) {
		if(ch=='-')
			flag*=-1;
		ch=getchar();
	}
	x=ch-'0';
	ch=getchar();
	while(ch>='0'&&ch<='9') {
		x=((x<<3)+(x<<1))+ch-'0';
		ch=getchar();
	}
	x*=flag;
}
string a,b; 
int main(){
//	freopen("1.in","r",stdin);
//	freopen("1.out","w",stdout);
	cin>>a>>b;
	for(int i=0;i<a.size();i++){
		if(a[i]!=b[i]){
			printf("No\n");return 0;
		}
	}
	printf("Yes\n");
	return 0;
}

Compiler output:
main.c:1:10: fatal error: cmath: No such file or directory
    1 | #include <cmath>
      |          ^~~~~~~
compilation terminated.
Language: C

/* HARDWORK IS THE KEY TO SUCCESS.
   RATING IS TEMPORARY , KNOWLEDGE IS PERMANENT.!!!*/
#include <bits/stdc++.h>
#define pragma
using namespace std;
#define ll long long
#define ld long double
#define T ll t = 1; cin>>t; while(t--)
#define vin ll n; cin>>n; vector<ll>x(n); for(ll i=0; i<n; i++) cin>>x[i]
#define vout for(ll i=0; i<n; i++) cout<<x[i]<<" "
#define ain ll n,k,i; cin>>n; ll a[n]; for( i=0; i<n; i++) cin>>a[i]
#define aout for(ll i=0; i<n; i++) cout<<a[i]<<" "
#define matin ll m,n; cin >> n >> m; ll a[n + 1][m + 1] ; for(ll i=1;i<=n;i++) for(ll j=1;j<=m;j++) cin>>a[i][j];
#define matout for(ll i=0;i<m;i++){for(ll j=0;j<n;j++) cout<<a[i][j]<<" "; cout<<"\n";}
#define sin set<ll>s; ll n; cin>>n; ll tmp; for(ll i=0;i<n;i++){cin>>tmp; s.I(tmp);}
#define sout for(auto it=s.begin();it!=s.end();++it) cout<<*it<<" "
#define F first
#define S second
#define I insert
#define pb push_back
#define ppb pop_back
#define AISORT sort(a,a+n)
#define ADSORT sort(a,a+n,greater<ll>())
#define VISORT sort(x.begin(),x.end())
#define VDSORT sort(x.begin(),x.end(),greater<ll>())

const ll maxs = 3e5+3;
const ll maxs1 = 1e3+4;
const ll mod = 1e9 + 7;

//MODULO OPEARTIONS
inline ll add(ll a, ll b) {
    return (mod + a + b) % mod;
}
inline ll sub(ll a, ll b) {
    return (a - b + mod) % mod;
}
inline ll mul(ll a, ll b) {
    return (1ll * a * b) % mod;
}

//POWER
ll fastpow(ll x, ll y) {
    ll res = 1; x = x % mod; while (y > 0) {
        if(y & 1)
            res = (res * x) % mod; 
        y = y >> 1;
        x = (x * x) % mod;
    }
    return res;
}

//MODULAR INVERSE
ll inv(ll x) {
    return fastpow(x, mod - 2);
}

//     ll n;
//     ll a[maxs];
//     ll tree[maxs];
bool vis[maxs];
vector < ll > graph[maxs];
//ALWAYS CLEAR THEM WHEN TESTCASES ARE GIVEN
//ALWAYS RETURN WHEN ST == ED CONDITION IN SEGMENT TREES

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    string s,t;
    cin >> s >> t;
    ll flg = 0;
    for(ll i = 0;i < s.size();++i)
    {
        if(s[i] != t[i])
        {
            flg = 1;
            break;
        }
    }
    
    if(flg)
        cout << "No";
    else
        cout << "Yes";
}



Compiler output:
main.c:3:10: fatal error: bits/stdc++.h: No such file or directory
    3 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#define _CRT_SECURE_NO_DEPRECATE
#pragma GCC optimize("O3")
#pragma GCC target("sse4")
#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds; 
using namespace std;
#define int long long int
#define SYNC std::ios_base::sync_with_stdio(0);cin.tie(NULL);cout.tie(NULL);
#define FRE freopen("input.txt","r",stdin);freopen("output.txt","w",stdout);
typedef long double ld;
typedef pair<int,int> ii;
typedef pair<int,ii> iii;
typedef vector<int> vi;
typedef vector<ii>   vii;
//typedef tree<int, null_type, less<int>, rb_tree_tag, 
//             tree_order_statistics_node_update> 
//    data_set;
#define rep(i,l,r)   for(int i=(l);i<(r);i++)
#define deb(x)     cout << (#x) << " is " << (x) << endl
#define dbg(x)     cout << x << ' '
#define here cout << " Hey baitch!!\n";
#define  pb push_back
#define  F  first
#define  S  second
#define all(v) (v).begin(),(v).end()
#define sz(a) (int)((a).size())
#define sq(x) ((x)*(x))
const int MOD = 1e9+7;
const int MOD1 = 998244353;
const int N = 2e5+5;
const int INF = 1000111000111000111LL;
const ld PI = 3.1415926535898;

int32_t main()
{
	SYNC
	string s,t;
	cin >> s >> t;
	if(sz(s) == sz(t)-1) {
		t.pop_back();
		if(s == t)	return cout << "Yes",0;
	}
	cout << "No";
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;

#define ll long long
#define mod 1000000007
#define pll pair<long long,long long>
#define pdd pair<long double,long double>
#define vll vector<ll>
#define rep(i,j,n) for(int i=j;i<n;i++)
#define mp make_pair
#define pb push_back
#define pf push_front
#define inf 1e17
#define N 100010
priority_queue<pll,vector<pll>,greater<pll> >pq;
priority_queue<ll,vector<ll>,greater<ll> >pq1;

ll result(ll a, ll b, ll p){
    ll ans=1;
    if(b==(-1))
        b=p-2;
    while(b){
        if(b&1){
            ans=(ans*a)%p;
        }
        a=(a*a)%p;
        b>>=1;
    }
    return ans;
}

ll T,n,m;

int main(){
    if(fopen("input.txt", "r"))
    freopen("input.txt", "r", stdin),
    freopen("output.txt", "w", stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cout.tie(NULL);
    
    strint s, t;
    cin >> s >> t;
    string p = "";
    for(int i=0;i<s.size();i++){
        p += t[i];
    }
    if(p==s){
        cout << "Yes\n";
    }
    else
        cout << "No\n";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:5: error: 'strint' was not declared in this scope; did you mean 'strcat'?
   42 |     strint s, t;
      |     ^~~~~~
      |     strcat
a.cc:43:12: error: 's' was not declared in this scope
   43 |     cin >> s >> t;
      |            ^
a.cc:43:17: error: 't' was not declared in this scope
   43 |     cin >> s >> t;
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define rep2(i, m, n) for(int i = (int)(m); i < (int)(n); i++)
#define rep_inv(i, n, m) for(int i = (int)(n); i > (int)(m); i--)
using namespace std;
using ll = long long;
using vl = vector<ll>;
using vc = vector<char>;
using vvl = vector<vl>;
using vvc = vector<vc>;
using pll = pair<ll, ll>;
using vpll = vector<pll>;

int main(){
  strign S, T;
  cin >> S >> T;

  rep(i, S.size()){
    if(S[i] != T[i]){
      cout << "No" << endl;
      return 0;
    }
  }

  cout << "Yes" << endl;
  
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'strign' was not declared in this scope; did you mean 'strspn'?
   15 |   strign S, T;
      |   ^~~~~~
      |   strspn
a.cc:16:10: error: 'S' was not declared in this scope
   16 |   cin >> S >> T;
      |          ^
a.cc:16:15: error: 'T' was not declared in this scope
   16 |   cin >> S >> T;
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  string S, T;
  cin >> S;
  cin >> T;
  int n = S.size();
  for (int i = 0; i < n; i++) {
    if (S.at(i) != T.at(i)) {
      cout << "No" << endl;
      return;
    }
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |       return;
      |       ^~~~~~
Language: C++

#pragma GCC optimze("Ofast")
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file
#include <ext/pb_ds/tree_policy.hpp> // Including tree_order_statistics_node_update
using namespace std;
using namespace __gnu_pbds;
#define ll long long
#define pp pair<ll,ll>
#define ppp pair<ll,pp >
#define trace(...) cout<<"Line:"<<__LINE__<<" "; __f(#__VA_ARGS__, __VA_ARGS__)
template<typename Arg1>
void __f(const char* name, Arg1&& arg1) {
	cout<<name<<" : "<<arg1<<endl;
}
template<typename Arg1, typename ... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args) {
	const char* comma=strchr(names+1,',');
	cout.write(names,comma-names)<<" : "<<arg1<<" | ";
	__f(comma+1,args...);
}
typedef tree<pp,null_type,less<pp>,rb_tree_tag,tree_order_statistics_node_update> ordered_set;
#define ld long double
#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(),(x).end()
#define rep(i,a,b) for(ll i=a;i<b;i+=1)
#define sz(v) (ll)(v.size())
#define hell (ll)1000000007
#define slld(x) scanf("%lld",&x)
ll t=1, tt;
const ll inf=1e18, N=3005;
inline ll mult(ll x,ll y){x%=hell;y%=hell;return (1LL*x*y)%hell;}
inline ll add(ll x,ll y){x+=y;return x%hell;}
inline ll powMod(ll base,ll expo){
	if(base==0)return 0;
	ll ans=1;
	while(expo){
		if(expo&1)ans=mult(ans,base);
		base=mult(base,base); 
		expo>>=1;
	}
	return ans;
}
void solve(){
	string a, b;
	cin>>a>>b;
	rep(i,0,sz(a)){
		if(a[i]!=b[i]){
			cout<<"No";
			return;
		}
	}
	cout<<"Yes"
}
signed main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
   	//cin>>t;
   	tt=t;
    while(t--){
        solve();
        if(t)cout<<"\n";
    }
    return 0 ;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:54:20: error: expected ';' before '}' token
   54 |         cout<<"Yes"
      |                    ^
      |                    ;
   55 | }
      | ~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false);cin.tie(0)
#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(),a.end()
#define int long long
const int MOD=1e9+7;
const int N=3e5+10;
int32_t main()
{
    IOS;
    string s,a;
    cin>>s>>a;
    int ok=0;
    for(int i=0;i<s.size();i++)
    {
        if(s[i]!=a[i])
            ok=1;
    }
    if(ok)
        cout<<"No"<<endl;
    else
        cout<<"Yes"<<endl;


}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

include <iostream>
using namespace std;
int main(){
  string s,t;
  cin >> s >> t;
  for(int i=0;i<s.length();i++){
    if(s[i]!=t[i]){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   string s,t;
      |   ^~~~~~
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> s >> t;
      |   ^~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin >> s >> t;
      |          ^
a.cc:5:15: error: 't' was not declared in this scope
    5 |   cin >> s >> t;
      |               ^
a.cc:8:7: error: 'cout' was not declared in this scope
    8 |       cout << "No" << endl;
      |       ^~~~
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |       cout << "No" << endl;
      |                       ^~~~
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |   cout << "Yes" << endl;
      |                    ^~~~
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <queue>
#include <stack>
#include <vector>
#include <string>
#include <set>
#include <map>
#include <random>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define repp(i,n,m) for (int i = m; i < (n); ++i)
#define repl(i,n) for (long long i = 0; i < (n); ++i)
#define reppl(i,n,m) for (long long i = m; i < (n); ++i)
using namespace std;
using ll = long long;
using ld = long double;
using P = pair<int, int>;
using PL = pair<long long, long long>;
using Pxy = pair<long double, long double>;
using T = tuple<int, int, bool>;
const int INF = 1001001007;
const int MOD = 1000000007;
const ll inf = 1e18;
template <typename AT>
void printvec(vector<AT> &ar){
    rep(i,ar.size()-1) cout << ar[i] << " ";
    cout << ar[ar.size()-1] << endl;
}
template <typename Q>
void printvvec(vector<vector<Q>> &ar){
    rep(i,ar.size()){
        rep(j,ar[0].size()-1) cout << ar[i][j] << " ";
        cout << ar[i][ar[0].size()-1] << endl;
    }
}
template <typename S>
bool range(S a, S b, S x){
    return (a <= x && x < b);
}

int main() {
    string s, t; cin >> s >> t;
    if (s = t.substr(0,s.size())) cout << "Yes" << endl;
    else cout << "No" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:43:11: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int](0, s.std::__cxx11::basic_string<char>::size()))' from 'std::__cxx11::basic_string<char>' to 'bool'
   43 |     if (s = t.substr(0,s.size())) cout << "Yes" << endl;
      |         ~~^~~~~~~~~~~~~~~~~~~~~~
      |           |
      |           std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
#include <vector>
#include <string>

int main () {
  string s, t;
  cin >> s >> t;
  if (t.size() != s.size() + 1) {
    cout << "No";
    return 0;
  }
  for (int i = 0; i < s.size(); i++) 
    if (s[i] != t[i]) {
      cout << "No";
      return 0;
    }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string s, t;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> s >> t;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s >> t;
      |          ^
a.cc:7:15: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "No";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |       cout << "No";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout << "Yes";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

int32_t main() {
	ios::sync_with_stdio(0);
	cin.tie(0);

	string a, b;
	cin >> a >> b;

	if (b.size() < a.size()) {
		cout << "No";
		return;
	}

	bool flag = true;
	for (int i = 0; i < a.size(); ++i) {
		if (a[i] != b[i]) {
			flag = false;
			break;
		}
	}
	if (flag)
		cout << "Yes";
	else
		cout << "No";
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:13:17: error: return-statement with no value, in function returning 'int32_t' {aka 'int'} [-fpermissive]
   13 |                 return;
      |                 ^~~~~~
Language: C++

#define _CRT_SECURE_NO_WARNINGS
#include <bits\stdc++.h>

using namespace std;

typedef long long ll;

inline void solve() {
	string a, b;
	cin >> a >> b;
	b.pop_back();
	if (a == b)
		cout << "Yes";
	else
		cout << "No";
}

int main()
{
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
#if defined(_DEBUG)
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
	int q = 1;
	//cin >> q;
	for (; q > 0; q--) {
		solve();
		cout << '\n';
	}
}

Compiler output:
a.cc:2:10: fatal error: bits\stdc++.h: No such file or directory
    2 | #include <bits\stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
string s,t;
cin >> s >> t;
bool ok = true;
for (int i=0; i<s.length(); i++)
    {
        if (s[i]!=t[i]) {cout << "No"; return 0;}
    }

cout << "Yes";


}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
#define deb(x) cout<<#x<<" "<<x<<endl;
#define print(arr,n) for(int i=0;i<n;++i) { cout<<arr[i]<<" "; } cout<<endl;
#define ub(x,el) upper_bound(x.begin(),x.end(),el) - x.begin()
#define lb(x,el) lower_bound(x.begin(),x.end(),el) - x.begin();
#define bs(x,el) binary_search(x.begin(),x.end(),el)
#define MOD 1000000007
#define finish return 0
#define all(x) x.begin(),x.end()
using namespace std;
using namespace __gnu_pbds; 
typedef long long int ll;
typedef tree<ll, null_type,less<ll>, rb_tree_tag,tree_order_statistics_node_update> ordered_set;
template<int D, typename T> struct Vec : public vector<Vec<D - 1, T>> { static_assert(D >= 1, "Vector dimension must be greater than zero!"); template<typename... Args> Vec(int n = 0, Args... args) : vector<Vec<D - 1, T>>(n, Vec<D - 1, T>(args...)) { }}; template<typename T> struct Vec<1, T> : public vector<T> { Vec(int n = 0, T val = T()) : vector<T>(n, val) { } };
inline ll mod(ll x) { return (x%MOD + MOD)%MOD; }
ll gcd(ll a, ll b, ll &x, ll &y){if(a == 0){x = 0, y = 1; return b;} ll x1, y1;  ll d = gcd(b%a, a, x1, y1); x = y1 - (b/a) * x1; y = x1; return d;}
ll power(ll x,ll y, ll p) { ll res = 1; x = x % p; while (y > 0) { if (y & 1) res = (res*x) % p; y = y>>1; x = (x*x) % p;   } return res; } 
ll power(ll x,ll y) { ll res = 1; while (y > 0) { if (y & 1) res = (res*x); y = y>>1; x = (x*x);   } return res; } 
ll mod(ll num, ll den){ return mod(mod(num) * power(den,MOD-2,MOD)); }
int main()
{
	ios_base::sync_with_stdio(false);
    cin.tie(NULL);
	string s,t;
  	cin>>s>>t;
  if(s==t.substr(s.size()) cout<<"Yes"<<endl;
     else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:27: error: expected ';' before 'cout'
   28 |   if(s==t.substr(s.size()) cout<<"Yes"<<endl;
      |                           ^~~~~
      |                           ;
a.cc:28:7: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   28 |   if(s==t.substr(s.size()) cout<<"Yes"<<endl;
      |      ~^~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:29:6: error: expected primary-expression before 'else'
   29 |      else cout<<"No"<<endl;
      |      ^~~~
a.cc:28:46: error: expected ')' before 'else'
   28 |   if(s==t.substr(s.size()) cout<<"Yes"<<endl;
      |     ~                                        ^
      |                                              )
   29 |      else cout<<"No"<<endl;
      |      ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string s,t;
    cin>>s>>t;
    int f = 0;
    for(i=0;i<s.size();i++)
        if(s[i]!=t[i])
            f=1;
    if(f==0)
        cout<<"Yes";
    else
        cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;i<s.size();i++)
      |         ^
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<unordered_set>
#include<unordered_map>
#include<bitset>
using namespace std;
#define INF 2000000007
#define LINF 100000000000000007
#define MOD 1000000007
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define repb(i, n) for (int i = n - 1; i >= 0; i--)
#define MODE 0
#ifdef MODE
#define DEB(X) cout<< #X <<": "<<X<<" ";
#define ARDEB(i,X) cout<< #X <<"["<<i<<"]: "<<X[i]<<" ";
#define END cout<<endl;
#else
#define DEB(X) {}
#define ARDEB(i,X) {}
#define END {}
#endif
typedef long long ll;
typedef pair<int,int> P;
struct edge{int to,cost;};
int ceil2(int a,int b){if(a%b){return a/b+1;}else{return a/b;}}
using namespace std;
string k;
int n,m,ans;

signed main(){
	string s,t;
	cin>>s>>t;
	s+=t[t.isze()-1];
	if(s==t)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:16: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'isze'; did you mean 'size'?
   44 |         s+=t[t.isze()-1];
      |                ^~~~
      |                size
Language: C

#include <bits/stdc++.h>
#define ll long long
#define fastIO cout << fixed << setprecision(12), ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
using namespace std;

int main() {
	fastIO;
#ifdef LOCAL
			freopen("input.in", "rt", stdin);
#endif
	string a, b;
	cin >> a >> b;
	b.pop_back();
	if(a == b) {
		cout << "Yes";
	} else {
		cout << "No";
	}
	return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

/*
 *  Language:   C++
 *  Author:     Debajyoti Dasgupta
 */

#include <bits/stdc++.h>

using namespace std;
#define int long long

signed main() {
    string s, t;
    cin >> s >> > t;
    t.pop_back();
    if (s == t)cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected primary-expression before '>' token
   13 |     cin >> s >> > t;
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

#define rep(i,n) for(int i = 0; i < n; i++)
#define REP(i,n) for(int i = 1; i < n; i++)
#define per(i,n) for(int i = n; i >= 0; i--)
#define sz(x) int(x.size())
#define all(v) v.begin(), v.end()
#define rall(v) v.rbegin(), v.rend()
#define YesorNo(a) printf(a ? "Yes\n" : "No\n")
#define endl '\n'
#define fi first
#define se second
using ll = long long;
using P = pair<int,int>;
using Pl = pair<ll,ll>;
using vi = vector<int>;
using vii = vector<vi>;
using vl = vector<ll>;
using vll = vector<vl>;
using vs = vector<string>;
using vb = vector<bool>;
using vc = vector<char>;
using vcc = vector<vc>;
const int dx[] = {0,1,0,-1,1,1,-1,-1};
const int dy[] = {1,0,-1,0,1,-1,-1,1};
const int inf = (1<<30)-1;
const ll infll = (1LL<<62)-1;
ll ceil(const ll &a, const ll &b){return ((a)+(b)-1)/b;}
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }



int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);

  string s, t;
  cin >> s >> t;
  bool ok = true;
  rep(i,sz(s)) {
    if(s[i] != t[i]) ok = false;
  }
  YesorNo();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: expected primary-expression before '?' token
   10 | #define YesorNo(a) printf(a ? "Yes\n" : "No\n")
      |                             ^
a.cc:45:3: note: in expansion of macro 'YesorNo'
   45 |   YesorNo();
      |   ^~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int, int> pii;

#define fi first
#define se second
#define mp make_pair
#define fastIO ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);

int main(){
  fastIO;
  strin s, t;
  cin >> s >> t;
  for(int i = 0 ; i < s.size(); i ++ ){
    if(s[i] != t[i]){
      cout << "No\n";
      return 0;
    }

  }
  cout << "Yes\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: 'strin' was not declared in this scope; did you mean 'stdin'?
   15 |   strin s, t;
      |   ^~~~~
      |   stdin
a.cc:16:10: error: 's' was not declared in this scope; did you mean 'se'?
   16 |   cin >> s >> t;
      |          ^
      |          se
a.cc:16:15: error: 't' was not declared in this scope; did you mean 'tm'?
   16 |   cin >> s >> t;
      |               ^
      |               tm
Language: C++

//abc169

#include <bits/stdc++.h>
#include <string>
using namespace std;

int main() {

  int a,b,c,k;
  ans = 0;
  cin >> a >> b >> c >> k;

  if(k <= a + b){
    ans = a;
  }else{
    ans = a - (k - (a + b));
  }

  cout << ans << endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
   10 |   ans = 0;
      |   ^~~
      |   abs