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

#include <iostream>
#include <string>

int main()
{
    std::string First, Second;

    std::cin >> First >> Second;

    if (First.length() + 1 != Second.length())
    {
        std::cout << "No" << std::endl;

        return;
    }

    std::string::size_type isPlusChar = Second.find(First);

    std::string judge = isPlusChar != std::string::npos ? "Yes" : "No";

    std::cout << judge << std::endl;
}

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

#include <bits/stdc++.h>
using namespace std;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
	*this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
// debug & operator << (debug & dd, P p) { dd << "(" << p.x << ", " << p.y << ")"; return dd; }

int n,k;
int noof(int l,int r)
{
    int p1,p2;
    p1=l+1;
    p2=r-k-1;

    return (r-l+1)/(k+1);

}

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

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

        test();

    return 0;

}


Compiler output:
a.cc:61:15: warning: missing terminating " character
   61 |         cout<<"No;
      |               ^
a.cc:61:15: error: missing terminating " character
   61 |         cout<<"No;
      |               ^~~~
a.cc: In function 'void test()':
a.cc:63:1: error: expected primary-expression before '}' token
   63 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename \
  enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; };
sim > rge<c> range(c i, c j) { return rge<c>{i, j}; }
sim > auto dud(c* x) -> decltype(cerr << *x, 0);
sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; }
eni(!=) cerr << boolalpha << i; ris; }
eni(==) ris << range(begin(i), end(i)); }
sim, class b dor(pair < b, c > d) {
  ris << "(" << d.first << ", " << d.second << ")";
}
sim dor(rge<c> d) {
  *this << "[";
  for (auto it = d.b; it != d.e; ++it)
	*this << ", " + 2 * (it == d.b) << *it;
  ris << "]";
}
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
// debug & operator << (debug & dd, P p) { dd << "(" << p.x << ", " << p.y << ")"; return dd; }

int n,k;
int noof(int l,int r)
{
    int p1,p2;
    p1=l+1;
    p2=r-k-1;

    return (r-l+1)/(k+1);

}

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

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


    int n;
    cin>>n;

    while(n--)
        test();

    return 0;

}


Compiler output:
a.cc:61:15: warning: missing terminating " character
   61 |         cout<<"No;
      |               ^
a.cc:61:15: error: missing terminating " character
   61 |         cout<<"No;
      |               ^~~~
a.cc: In function 'void test()':
a.cc:63:1: error: expected primary-expression before '}' token
   63 | }
      | ^
Language: Java

#include <bits/stdc++.h>
2 using namespace std;
3
4 string S, T;
5 void input() {
6 cin >> S >> T;
7 }
8
9 void solve() {
10 T.pop_back();
11 if(S == T) cout << "Yes" << endl;
12 else cout << "No" << endl;
13 }
14
15 int main() {
16 input();
17 solve();
18 return 0;
19 }

Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: class, interface, enum, or record expected
3
^
Main.java:5: error: class, interface, enum, or record expected
5 void input() {
^
Main.java:7: error: class, interface, enum, or record expected
7 }
^
Main.java:11: error: class, interface, enum, or record expected
11 if(S == T) cout << "Yes" << endl;
^
Main.java:12: error: class, interface, enum, or record expected
12 else cout << "No" << endl;
^
Main.java:13: error: class, interface, enum, or record expected
13 }
^
Main.java:17: error: class, interface, enum, or record expected
17 solve();
^
Main.java:18: error: class, interface, enum, or record expected
18 return 0;
^
Main.java:19: error: class, interface, enum, or record expected
19 }
^
11 errors
Language: C++

#include "stdc++.h"
using namespace std;

int main() {
	string s;
	cin >> s;
	string t;
	cin >> t;
	int c = 0;
	c = t.size();
	t.erase(c);

	if (s == t) {
		cout << "Yes" << endl;
	}else {
		cout << "No" << endl;
	}

	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    string a,b;
    cin >>a >>b;
    b.pop_back();
    if(a==b){
      cout<<"yes";
      else{
        cout<<"no";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected '}' before 'else'
    9 |       else{
      |       ^~~~
a.cc:7:13: note: to match this '{'
    7 |     if(a==b){
      |             ^
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <iostream>

#define rep(i, n) for (int i=0; i<(n); ++i)

int main() {
    std::string s, t;
    bool f = true;
    std::cin >> s >> t;
    rep(i, s.size()) f &= s[i] == t[i];

    std::cout << (f ? "Yes" : "No") << std::endl;
    return 0;
}


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

#include<stdio.h>
#include<string.h>
int main(){
  char s[20];
  char t[21];
  int i;
  
  scanf("%s",s);
  scanf("%s",t);
  
  t[s.length-1]='\0';
  
  if(strcmp(s,t)==0){
   printf("Yes\n");
    return 0;
  }
  printf("No\n");
  
  
 return 0; 
}

Compiler output:
main.c: In function 'main':
main.c:11:6: error: request for member 'length' in something not a structure or union
   11 |   t[s.length-1]='\0';
      |      ^
Language: C

#include<iostream>
#include<iostream>
#include<string>
int main(){
    std::string s1, s2;
    std::cin >> s1 >> s2;
    int result;
    result = s2.compare(0, s1.length(), s1);
    if(result == 0){
        std::cout << "Yes"<< "\n";
    }else{
        std::cout << "No"<< "\n";
    }
    return 0;
}

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

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

int main() {
  string S, T;
  cin >> S >> T;
  
  T.pop_back();
  if(T = S) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: could not convert 'T.std::__cxx11::basic_string<char>::operator=(S)' from 'std::__cxx11::basic_string<char>' to 'bool'
    9 |   if(T = S) cout << "Yes";
      |      ~~^~~
      |        |
      |        std::__cxx11::basic_string<char>
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    string A,B;
    cin >> A >>B;
    if(B==A+'z'){
        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: Java

import java.util.*;
public class Main {
 
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		String s=in.next();
		String str=in.next();
		if(s.compareToIgnoreCase(str.substring(0,str.length()-1))==0)
		{
			System.out.println("yes");
		}
		else
		{
			System.out.println("no");
		}
	}
}
import java.util.*;
public class Atcoder {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner in = new Scanner(System.in);
		String s=in.next();
		String str=in.next();
		if(s.compareToIgnoreCase(str.substring(0,str.length()-1))==0)
		{
			System.out.println("yes");
		}
		else
		{
			System.out.println("no");
		}
	}
}
Submission Info

Compiler output:
Main.java:19: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:37: error: class, interface, enum, or record expected
Submission Info
^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in initialization
    7 |     int l=s,length();
      |           ^
      |           |
      |           std::string {aka std::__cxx11::basic_string<char>}
a.cc:7:19: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    7 |     int l=s,length();
      |                   ^~
a.cc:7:19: note: remove parentheses to default-initialize a variable
    7 |     int l=s,length();
      |                   ^~
      |                   --
a.cc:7:19: note: or replace parentheses with braces to value-initialize a variable
a.cc:8:9: error: 'i' was not declared in this scope
    8 |     for(i=0;i<l;i++)
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before ':' token
   10 |       return 0:
      |               ^
      |               ;
a.cc:10:15: error: expected primary-expression before ':' token
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before ':' token
   10 |       return 0:
      |               ^
      |               ;
a.cc:10:15: error: expected primary-expression before ':' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'S' was not declared in this scope
    8 |     if(S[i] != t[i]){
      |        ^
a.cc:10:15: error: expected ';' before ':' token
   10 |       return 0:
      |               ^
      |               ;
a.cc:10:15: error: expected primary-expression before ':' token
Language: C++

#include<vector>
#include<algorithm>
#define lli long long int
#define mod 998244353
using namespace std;
int main(){
	
string s;
getline(cin,s);


int l1=s.size();

string t;

getline(cin,t);
int l2=t.size();
if(l2==l1+1){
t.resize(l1);
	if(t==s)
	cout<<"Yes";
	else 
	cout<<"No";
	
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: 'string' was not declared in this scope
    8 | string s;
      | ^~~~~~
a.cc:3:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    2 | #include<algorithm>
  +++ |+#include <string>
    3 | #define lli long long int
a.cc:9:9: error: 'cin' was not declared in this scope
    9 | getline(cin,s);
      |         ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<algorithm>
  +++ |+#include <iostream>
    3 | #define lli long long int
a.cc:9:13: error: 's' was not declared in this scope
    9 | getline(cin,s);
      |             ^
a.cc:9:1: error: 'getline' was not declared in this scope
    9 | getline(cin,s);
      | ^~~~~~~
a.cc:14:7: error: expected ';' before 't'
   14 | string t;
      |       ^~
      |       ;
a.cc:16:13: error: 't' was not declared in this scope
   16 | getline(cin,t);
      |             ^
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout<<"Yes";
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout<<"No";
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

/**

author:	©LoneWolfDON
Git: MahinHossainMunna

**/
/*

*/

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

int main()
{
    char S[1001], T[1001], c[1001];

    gets(S);
    gets(T);

    T[strlen(T)-1] = 0;

    //puts(temp);
    if(strcmp(S,T) == 0)
        printf("Yes\n");
    else
        printf("No\n");

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   18 |     gets(S);
      |     ^~~~
      |     getw
Language: Java

package Beg_167;
import java.util.*;

public class A{
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		String s1 = a.nextLine();
		String s2=a.nextLine();
		
		boolean e = s1.contains(s2);
		boolean f = s2.contains(s1);
		boolean g = e||f;
		
		if (g) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}
}

Compiler output:
Main.java:4: error: class A is public, should be declared in a file named A.java
public class A{
       ^
1 error
Language: Java

import java.util.*;

public class A{
	public static void main(String[] args) {
		Scanner a = new Scanner(System.in);
		String s1 = a.nextLine();
		String s2=a.nextLine();
		
		boolean e = s1.contains(s2);
		boolean f = s2.contains(s1);
		boolean g = e||f;
		
		if (g) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}

	}
}

Compiler output:
Main.java:3: error: class A is public, should be declared in a file named A.java
public class A{
       ^
1 error
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[11],b[11];
	int i,x,y;
	gets(a);
	gets(b);
	x=strlen(a);
	y=strlen(b);
	for(i=1;i<y;i++)
	{
		b[i];
	}
	b[i-1]='\0';
	if (strcmp(a,b)==0)
          {
                    printf("Yes\n");
          }
          else
                    printf("No\n");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[11],b[11];
	int i,x=strlen(a),y=strlen(b);
	gets(a);
	gets(b);
	for(i=1;i<y;i++)
	{
		b[i];
	}
	b[i-1]='\0';
	if (strcmp(a,b)==0)
          {
                    printf("Yes\n");
          }
          else
                    printf("No\n");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[11],b[11];
	gets(a);
	gets(b);
	int i,x=strlen(a),y=strlen(b);
	for(i=1;i<y;i++)
	{
		b[i];
	}
	b[i-1]='\0';
	if (strcmp(a,b)==0)
          {
                    printf("Yes\n");
          }
          else
                    printf("No\n");
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
Language: C++

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

int main() {
  string S, T;
  cin >> S >> T;
  int N, M;
  N = S.size();
  M = T.size();
  int P = 1;
  if (N != M - 1)
    cout << "No" << endl;
  for (int i = 0; i < N; i++) {
    if (S.at(i) != T.at(i))
      P *= 0
    else if (S.at(i) == T.at(i)) 
      P *= 1
  }
    if (P == 1)
      cout << "Yes" << endl;
    else if (P == 0)
      cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: expected ';' before 'else'
   15 |       P *= 0
      |             ^
      |             ;
   16 |     else if (S.at(i) == T.at(i))
      |     ~~~~
Language: C++

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

int main() {
  string S, T;
  cin >> S >> T;
  int N, M;
  N = S.size();
  M = T.size();
  if (N != M - 1)
    cout << "No" << endl;
  for (i = 0; i < N; i++) {
    if (S.at(i) != T.at(i)) {
      cout << "No" << endl;
      break;
    }
    else if (S.at(i) == T.at(i)) 
      continue;
    cout << "Yes" << endl;
  }
}


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

#!/bin/bash

if [ ! -e $1 ]; then
  echo "usage : $1 <compile file>"
  exit
fi

INPUT="$1"
if [[ ${INPUT} =~ .*.cc$ ]]; then
　
  OUTPUT=`echo $1 | sed -e "s/\.cc//"`
  g++ $1 -I/home/hatchi/workspace/AtCoder/include -lm -std=c++11 -o ${OUTPUT} && \
  echo "compile is ok" && \
  echo "./${OUTPUT}" && \
  ./${OUTPUT}
else
  # .hh
  g++ ${INPUT}
fi


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/bin/bash
      |  ^
a.cc:10:1: error: extended character 　 is not valid in an identifier
   10 | 　
      | ^
a.cc:11:10: error: stray '`' in program
   11 |   OUTPUT=`echo $1 | sed -e "s/\.cc//"`
      |          ^
a.cc:11:38: error: stray '`' in program
   11 |   OUTPUT=`echo $1 | sed -e "s/\.cc//"`
      |                                      ^
a.cc:17:5: error: invalid preprocessing directive #.
   17 |   # .hh
      |     ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if [ ! -e $1 ]; then
      | ^~
a.cc:3:17: error: 'then' does not name a type
    3 | if [ ! -e $1 ]; then
      |                 ^~~~
a.cc:9:16: error: expected unqualified-id before '=' token
    9 | if [[ ${INPUT} =~ .*.cc$ ]]; then
      |                ^
a.cc:9:30: error: 'then' does not name a type
    9 | if [[ ${INPUT} =~ .*.cc$ ]]; then
      |                              ^~~~
a.cc:13:8: error: expected constructor, destructor, or type conversion before string constant
   13 |   echo "compile is ok" && \
      |        ^~~~~~~~~~~~~~~
a.cc:16:1: error: expected unqualified-id before 'else'
   16 | else
      | ^~~~
a.cc:19:1: error: 'fi' does not name a type
   19 | fi
      | ^~
Language: C++

s = str(input())
t = str(input())

if s==t[:-1]:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('Yes')
      |           ^~~~~
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = str(input())
      | ^
Language: C++

#include <bits/std++.h>
using namespace std;
string S,T;
void input()
{
cin >> S;
cin >> T;
}
void solve()
{
T.pop_back();
if(S==T)
{
cout << "yes";
}
else
{
cout << "No";
}
}
int main()
{
input();
solve();
return 0;
}


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

import java.util.*; 
 
class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
		String k=sc.next();
        String l=sc.next();
		String[] a=s.split("");
  		String[] b=s.split("");
  		int c=0;
  
		for(int c=0;c<k.length();c++){
    		if(!a[c].equals(b[c])){
             c=1;
              break;
            }
    	}
    
 	if(c==1){
    		System.out.println("No");
    	}else{
     		System.out.println("Yes");
   	 }
 
    	System.out.println();
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
		String[] a=s.split("");
		           ^
  symbol:   variable s
  location: class Main
Main.java:9: error: cannot find symbol
  		String[] b=s.split("");
  		           ^
  symbol:   variable s
  location: class Main
Main.java:12: error: variable c is already defined in method main(String[])
		for(int c=0;c<k.length();c++){
		        ^
3 errors
Language: Java

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
		String k=sc.next();
        String l=sc.next();
		String[] a=s.split("");
  		String[] b=s.split("");
  		int c=0;
  
		for(int c=0;c<k.length();c++){
    		if(!a[c].equals(b[c])){
             int=1;
              break;
            }
    	}
    
 	if(c==1){
    		System.out.println("No");
    	}else{
     		System.out.println("Yes");
   	 }

    	System.out.println();
    }
}

Compiler output:
Main.java:14: error: not a statement
             int=1;
             ^
Main.java:14: error: ';' expected
             int=1;
                ^
2 errors
Language: C

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

int main(void){
  char s[10],t[10];
  int j;
  scanf("%d",s);
  scanf("%d",t);
  if(strlen(s)+1==strlen(t)){
    for(int i==0;i<strlen(s);i++){
      if(strcmp(s[i],t[i])){
        j=1;
        break;
      }
      if(i==strlen(s)-1){
        printf("Yes");
      }
     }
  }
  	  if(j==1){
		printf("No");}
         }
  else{
    printf("No\n");
  }
   return 0;}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
   10 |     for(int i==0;i<strlen(s);i++){
      |              ^~
main.c:10:18: error: 'i' undeclared (first use in this function)
   10 |     for(int i==0;i<strlen(s);i++){
      |                  ^
main.c:10:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:29: error: expected ')' before ';' token
   10 |     for(int i==0;i<strlen(s);i++){
      |        ~                    ^
      |                             )
main.c: At top level:
main.c:23:3: error: expected identifier or '(' before 'else'
   23 |   else{
      |   ^~~~
main.c:26:4: error: expected identifier or '(' before 'return'
   26 |    return 0;}
      |    ^~~~~~
main.c:26:13: error: expected identifier or '(' before '}' token
   26 |    return 0;}
      |             ^
Language: C++

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

#define ll long long
#define sz 1000

void solve()
{
    string s, t;
    cin >> s >> t;
    int len = s.size();

    bool flag = 1;

    for(int i=0; i<len; i++)
    {
        if(s[i] ! = t[i])
            flag = 0;
    }
    if(flag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

int main()
{
    int tc = 1;
    //cin >> tc;
    while(tc--)
    {
        solve();
    }

    return 0;
}




Compiler output:
a.cc: In function 'void solve()':
a.cc:17:16: error: expected ')' before '!' token
   17 |         if(s[i] ! = t[i])
      |           ~    ^~
      |                )
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
#define vll vector<long long>
#define mll map<long long,long long>
#define pb push_back
typedef  long long ll;
typedef long double ld;
long double pi=3.14159265358979323846;

vll al[500005];
ll vis[500005],color[500005],I[101][101];

ll gcd(ll a,ll b)
{
    if (b==0) return a;
    return gcd(b,a%b);
}

bool isPrime(int n)
{
    if (n<=1) return false; 
    if (n<=3) return true; 
    if (n%2==0||n%3==0) return false; 
    for (int i=5;i*i<=n;i=i+6) if (n%i==0||n%(i+2)==0) return false; 
    return true; 
}

ll bpow(ll n, ll po)
{
	ll res=1;
	while(po>0)
	{
		if(po%2)
		{
			res*=n;
			po--;
		}
		else
		{
			n*=n;
			po/=2;
		}
	}
	return res;
}

ll binpow(ll n, ll po, ll mod)
{
	ll res=1;
	while(po>0)
	{
		if(po%2)
		{
			res=(res*n)%mod;
			po--;
		}
		else
		{
			n=(n*n)%mod;
			po/=2;
		}
	}
	return res;
}

ll swap(ll a, ll b)
{
	a=a+b;
	b=a-b;
	a=a-b;
}

ll fact(ll n) { 
   if ((n==0)||(n==1))
      return 1;
   else
      return n*fact(n-1);
}

ll C(ll n, ll r) {
    if(r > n - r) r = n - r; 
    ll ans = 1;
    ll i;

    for(i = 1; i <= r; i++) {
        ans *= n - r + i;
        ans /= i;
        ans=ans%1000000007;
    }

    return ans;
}

//bool bipartite_dfs(ll node, ll flag)
//{
//	vis[node]=1;
//	ll cflag=flag;
//	color[node]=cflag;
//	for(ll child : al[node])
//	{
//		if(!vis[child])
//		{
//			bool n=bipartite_dfs(child,1-cflag);
//			if(n==false) return false;
//		}
//		else if(color[child]==color[node]) return false;
//	}
//	return true;
//}

void mmul(ll A[][101], ll B[][101], ll dim)
{
	ll res[dim][dim];
	for(ll i=0;i<dim;i++) for(ll j=0;j<dim;j++)
	{
		res[i][j]=0;
		for(ll k=0;k<dim;k++) res[i][j]=(res[i][j]+A[i][k]*B[k][j])%1000000007;
	}
	for(ll i=0;i<dim;i++) for(ll j=0;j<dim;j++) A[i][j]=res[i][j];
}

void mpow(ll A[][101],ll dim, ll po)
{
	for(ll i=0;i<dim;i++) for(ll j=0;j<dim;j++)
	{
		if(i==j) I[i][j]=1;
		else I[i][j]=0;
	}
	while(po>0)
	{
		if(po%2==1)
		{
			mmul(I,A,dim);
			po--;
		}
		else
		{
			mmul(A,A,dim);
			po/=2;
		}
	}
	for(ll i=0;i<dim;i++) for(ll j=0;j<dim;j++) A[i][j]=I[i][j];
}


int main()
{
	string a,b;
	cin>>a>>b;
	ll flag=0;
	for(ll i=0;i<a.aize();i++)
	{
		if(a[i]!=b[i]) flag=1;
	}
	if(flag) cout<<"No";
	else cout<<"Yes";
}

Compiler output:
a.cc: In function 'll swap(ll, ll)':
a.cc:71:1: warning: no return statement in function returning non-void [-Wreturn-type]
   71 | }
      | ^
a.cc: In function 'int main()':
a.cc:151:24: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'aize'; did you mean 'size'?
  151 |         for(ll i=0;i<a.aize();i++)
      |                        ^~~~
      |                        size
Language: C++

v#include <bits/stdc++.h>
using namespace std;
int main()
{
	
	
string s,t;
getline(cin,s);
getline(cin,t);
if(s==t)cout<<"Yes"<<endl;
else cout<<"No"<<endl;
return 0;
}


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | v#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'v' does not name a type
    1 | v#include <bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: 'string' was not declared in this scope
    7 | string s,t;
      | ^~~~~~
a.cc:8:9: error: 'cin' was not declared in this scope
    8 | getline(cin,s);
      |         ^~~
a.cc:8:13: error: 's' was not declared in this scope
    8 | getline(cin,s);
      |             ^
a.cc:8:1: error: 'getline' was not declared in this scope
    8 | getline(cin,s);
      | ^~~~~~~
a.cc:9:13: error: 't' was not declared in this scope
    9 | getline(cin,t);
      |             ^
a.cc:10:9: error: 'cout' was not declared in this scope
   10 | if(s==t)cout<<"Yes"<<endl;
      |         ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 | if(s==t)cout<<"Yes"<<endl;
      |                      ^~~~
a.cc:11:6: error: 'cout' was not declared in this scope
   11 | else cout<<"No"<<endl;
      |      ^~~~
a.cc:11:18: error: 'endl' was not declared in this scope
   11 | else cout<<"No"<<endl;
      |                  ^~~~
Language: C++

////////////////////////////////////////////////
//  ********  *      *    *******    * *      //                 :
//  *         *      *   *       *   *   *    //     64 BITS     C     64 BITS
//  *****     *      *  *         *  *     *  //                 +
//  *         *      *  ***********  *     *  //:  7 - 6 - 2020  +   7 - 6 - 2020 :
//  *         *      *  *         *  *   *    //                 1
//  *         ********  *         *  * *      //     64 BITS     7     64 BITS
////////////////////////////////////////////////                 :
                                                                                                                                                                                                                #define scan cin
#define ll long long
#define ui unsigned int
#define ud unsigned double
#define mp make_pair
#define pii pair<int, int>
#define pb push_back
#define pi acos(-1.0)
#define eps 1e-12
#include <bits/stdc++.h>
#include <iostream>
#include <stdio.h>
#include <string.h>
#include <errno.h>
#include <conio.h>
using namespace std;
int main()
{
    string e;
    string g;
    scan>>e>>g;
    g.pop_back();
    if (e == g){
        puts("YES\n");
    }
    else{
        puts("NO\n");
    }
    return 0;
}

Compiler output:
a.cc:23:10: fatal error: conio.h: No such file or directory
   23 | #include <conio.h>
      |          ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

class Main {
    private static Scanner sc;

    public static void main(final String[] args) {
        sc = new Scanner(System.in);
        String a = sc.next(),b = sc.next();
        if(a.equals(b.substring(0,a.length())) System.out.println("Yes");
        else System.out.println("No");
    }
}








Compiler output:
Main.java:9: error: ')' expected
        if(a.equals(b.substring(0,a.length())) System.out.println("Yes");
                                              ^
1 error
Language: C

include<stdio.h>
include<string.h>
int main(){
  char S[10];
  char T[10];
  int a;
  int x;x=0;
  scanf("%s%s",S,T);
  a=strlem(S);
  for(int i=0;i<ai++){
    if(S[i]!=T[i]){
    printf("No");
    x=1;
    }
    }
    if(x==0){
    printf("Yes");
    }
    return 0;
    }
    

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
Language: C


#include <iostream>
#include <iomanip>
#include <string>
using namespace std;

void Main() {
    // input
    string S, T;
    cin >> S;
    cin >> T;


    // translate


    // output
    if (!(S.length() >= 1 && S.length() <= 10)) {
        cout << "No" << endl;
        return;
    }

    cout << T.substr(0, S.length()) << endl;
    if (T.substr(0, S.length()) != S) {
        cout << "No" << endl;
        return ;
    }

    cout << "Yes" << endl;

}

int main() {
    std::cout << std::fixed << std::setprecision(15);
    Main();
    return 0;
}


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

import re

S = input()
T = input()

if(re.match(S+"[a-z]", T)):
    print("Yes")
else:
    print("No")

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import re
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: Java

import java.util;
class Main{
public static void main(String[]args){
Scanner sc=new Scanner(System.in);
  String po=sc.next();
  String s=sc.next();
  boolean b=false;
  for(char c='a';c<='z';c++){
  if((po+c).equals(s)){
  b=true;
  }
  }
  System.out.println(b?"Yes":"No");
}
}

Compiler output:
Main.java:1: error: cannot find symbol
import java.util;
           ^
  symbol:   class util
  location: package java
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(System.in);
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner sc=new Scanner(System.in);
               ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.*;
public class A {
    public static void main(String[] args ){
        Scanner o = new Scanner(System.in);
        String s1 = o.nextLine();
        String s2 = o.nextLine();
        boolean ok = true;
        for ( int i = 0 ; i < s1.length() ; i++ )
        {
            if ( s1.charAt(i) != s2.charAt(i) )
            {
                ok = false;
                break;
            }
        }

        if(!ok){
            System.out.println("No");
        }
        else{
            System.out.println("Yes");
        }
        
    }
}

Compiler output:
Main.java:2: error: class A is public, should be declared in a file named A.java
public class A {
       ^
1 error
Language: C++

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


int main(){
	int N,M,X;
	int C[12],A[12][12];
	cin >> N >> M >> X;
	for(int i=0;i<N;i++){
		cin>>C[i];
		for(int j=0;j<M;j++)cin>>A[i][j];
	}
	int ans = 1e8;
	for (int i=0;i<1<<N;i++){
		int now[12] = {}
		int sum=0;
		for (int j=0;j<N;j++)if(i>>j&1)
		{
			sum +=C[j];
			for(int k=0;k<M;k++)now[k]+=A[j][k];
		}
		bool flag = true;
		for(int j=0;j<M;j++)if(now[j]<X)flag=False;
		if(flag&&ans>sum)ans=sum;
	}
	cout<<(ans>1e7?-1:ans)<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected ',' or ';' before 'int'
   16 |                 int sum=0;
      |                 ^~~
a.cc:19:25: error: 'sum' was not declared in this scope
   19 |                         sum +=C[j];
      |                         ^~~
a.cc:23:54: error: 'False' was not declared in this scope
   23 |                 for(int j=0;j<M;j++)if(now[j]<X)flag=False;
      |                                                      ^~~~~
a.cc:24:30: error: 'sum' was not declared in this scope
   24 |                 if(flag&&ans>sum)ans=sum;
      |                              ^~~
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    std::string out = "No";
    std::string s, t;
    cin >> s >> t;

    int size = s.size() ;
  
    if (s ==　t.substr(0,size)){
      out = "Yes";
    }
    cout << out << "\n";

}


Compiler output:
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 |     if (s ==　t.substr(0,size)){
      |             ^
a.cc: In function 'int main()':
a.cc:11:13: error: '\U00003000t' was not declared in this scope
   11 |     if (s ==　t.substr(0,size)){
      |             ^~~
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    std::string out = "No";
    std::string s, t;
    cin >> s >> t;

    int size = s.size() - 1;
  
    if (s ==　t.substr(0,size)){
      out = "Yes";
    }
    cout << out << "\n";

}


Compiler output:
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 |     if (s ==　t.substr(0,size)){
      |             ^
a.cc: In function 'int main()':
a.cc:11:13: error: '\U00003000t' was not declared in this scope
   11 |     if (s ==　t.substr(0,size)){
      |             ^~~
Language: C++

#include <iostream>
#include <string.h>
using namespace std;
int main() {
    std::string out = "No";
    std::string s, t;
    cin >> s >> t;

    int size = s.size() - 1;
  
    if (s ==　t.substr(size)){
      out = "Yes";
    }
    cout << out << "\n";

}


Compiler output:
a.cc:11:13: error: extended character 　 is not valid in an identifier
   11 |     if (s ==　t.substr(size)){
      |             ^
a.cc: In function 'int main()':
a.cc:11:13: error: '\U00003000t' was not declared in this scope
   11 |     if (s ==　t.substr(size)){
      |             ^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main() {
    string s;
    string t;

    cin >> s;
    cin >> t;
    
    string poped_t = t.pop_back();

    if (s == poped_t) {
        cout << "Yes";
    } else {
        cout << "No";
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:32: error: conversion from 'void' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
   12 |     string poped_t = t.pop_back();
      |                      ~~~~~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'a' was not declared in this scope
   10 |   if(a){cout<<"No"<<endl;}
      |      ^
Language: Java

[16:14] 中嶋莉子
    

import java.util.Scanner;



public class Main {
        public static void main(String[] args) {
         
          Scanner sc = new Scanner(System.in);
         
          String s = sc.next(); 
          String t = sc.next(); 
         
         String T1 = t.substring(s.length() - 0); //ｔの末尾一文字だけを取り出せる


           if(t.equals(s+T1)) 
           {
             System.out.println("Yes");
           }
        else{
           System.out.println("No");
            }
         }
      }





Compiler output:
Main.java:1: error: class, interface, enum, or record expected
[16:14] ????
^
1 error
Language: Java

	public class Main{
	  public static void main(String[] args) {
		  
		  Scanner scanner = new Scanner(System.in);
		  
		    String S = scanner.next();
	 		String T = scanner.next();
	 		
		  if (T.length() == S.length()+1 && T.indexOf(S) != -1) {
			  System.out.println("Yes");
		  }
		  else{
			  System.out.println("No");
		  }
		  scanner.close();
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
		  Scanner scanner = new Scanner(System.in);
		  ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		  Scanner scanner = new Scanner(System.in);
		                        ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

public class Registration {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc=new Scanner(System.in);
		String S=sc.next();
		String T=sc.next();
		char toridasi=T.charAt(T.length()-1);
		String tasi=S+toridasi;
		
		
		if(T.equals(tasi)) {
			System.out.println("Yes");
		}else {
				System.out.println("No");
			}
		}

	
  }




Compiler output:
Main.java:3: error: class Registration is public, should be declared in a file named Registration.java
public class Registration {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args) {
     
      Scanner t = new Scanner(System.in);
     Scanner s = new Scanner(System.in);
     
      String = t;
      String s=t-1;
     
       if(s.equals(t))
       {
         System.out.println("Yes");
       }
    else{
       System.out.println("No");
        }
     }
  }

Compiler output:
Main.java:8: error: cannot find symbol
      String = t;
      ^
  symbol:   variable String
  location: class Main
Main.java:9: error: variable s is already defined in method main(String[])
      String s=t-1;
             ^
Main.java:9: error: bad operand types for binary operator '-'
      String s=t-1;
                ^
  first type:  Scanner
  second type: int
3 errors
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
      
      Scanner t = new Scanner(System.in);
     Scanner s = new Scanner(System.in);
      
      String = t;
      String s=t-1;
      
       if(s.equals(t))
       {
         System.out.println("Yes");
       }
    else{
       System.out.println("No");
        }
     }
  }

Compiler output:
Main.java:8: error: cannot find symbol
      String = t;
      ^
  symbol:   variable String
  location: class Main
Main.java:9: error: variable s is already defined in method main(String[])
      String s=t-1;
             ^
Main.java:9: error: bad operand types for binary operator '-'
      String s=t-1;
                ^
  first type:  Scanner
  second type: int
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {

 StringBuilder s = new StringBuilder();
 StringBuilder t = new StringBuilder();
      
// Tの末尾から1文字削除でSとなる
      if (s.setLength==(t.length()-1)) {
        
          System.out.println("No");
}
     else{
           System.out.println("No");
	}

    }
}

Compiler output:
Main.java:8: error: cannot find symbol
      if (s.setLength==(t.length()-1)) {
           ^
  symbol:   variable setLength
  location: variable s of type StringBuilder
1 error
Language: Java

import java.util.Scanner;
public class EasyLinner_167B {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

Scanner scan = new Scanner(System.in);

		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int k = scan.nextInt();

int re = 0;


		if(k <= a+b+c && a+b+c <= 2*Math.pow(10, 9)) {
		for(int i=1;i<=a;i++) {
for(int j= 1;j<=b;j++) {
			re = i*1+j*0+(k-i-j)*(-1);
		}
		}
		System.out.println(re);
		}
	}

}


Compiler output:
Main.java:2: error: class EasyLinner_167B is public, should be declared in a file named EasyLinner_167B.java
public class EasyLinner_167B {
       ^
1 error
Language: Java

public class Main {
	public static void main(String[] args) {
      string s = "No";
      string t = "Yes";
      t = t+1;
      System.out.println("s:"+s.ToString());
       System.out.println("t:"+t.ToString());
      if(t.equals(s)){
        System.out.println("[equals]条件一致");
      }
      else{
      System.out.println("[equals]条件不一致");
      }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
      string s = "No";
      ^
  symbol:   class string
  location: class Main
Main.java:4: error: cannot find symbol
      string t = "Yes";
      ^
  symbol:   class string
  location: class Main
2 errors
Language: C

#include<stdio>

int main(){
  char*c1;
  char*c2;
  scanf("%s%s",c1,c2);
  int n = sizeof(c1)/sizeof(char);
  for(int i = 0; i < n; ++i){
    if(c1[i] != c2[i]){
      printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
 string a, b;
 cin >> a >> b;
 int c = a.size();
  int cou = 0;
  for(int i=0;i<c;i++){
   if(a.at(i)==b.at(i)){
     cou++;
   }
  }
  if(cou==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" <<endl;
}


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

#include "iostream"
#include "string"
using namespace std;
int main()
{
    string s,t;
    cin>>s>>t;
    
    s= s+ t[t.size()-1];
    
    if(s==t)
    { cout<<"Yes"<<endl;
    
    }
    else
        cout<<"NO"<<endl;
    
    
}


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

#include <bits/stdc++.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s, t;
    cin >> s >> t;
    if (s == t.substr(0, t.length - 1))
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
}


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

#include <bits/stdc++.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s, t;
    cin >> s >> t;
    if (s == t.substr(0, len(t) - 1))
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:9:26: error: 'len' was not declared in this scope
    9 |     if (s == t.substr(0, len(t) - 1))
      |                          ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 2e5 + 10;
#define fi first
#define se second
#define pb push_back
#define mp make_pair
char a[N],b[N];
int main() {
  ios::sync_with_stdio(false);
  cin>>a+1>>b+1;
  int l=strlen(a+1),r=strlen(b+1);
  if(l<=r){
  	for(int i=1;i<=l;i++){
  		if(a[i]!=b[i])return cout<<"No\n",0;
  	}
  	cout<<"Yes\n";
  }else cout<<"No\n";
 	return 0;
}
————————————————
版权声明：本文为CSDN博主「pubgoso」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
原文链接：https://blog.csdn.net/qq_40655981/java/article/details/106051379

Compiler output:
a.cc:22:1: error: extended character — is not valid in an identifier
   22 | ————————————————
      | ^
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:22:1: error: extended character — is not valid in an identifier
a.cc:23:1: error: extended character 「 is not valid in an identifier
   23 | 版权声明：本文为CSDN博主「pubgoso」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
      | ^
a.cc:23:1: error: extended character 」 is not valid in an identifier
a.cc:23:62: error: extended character 。 is not valid in an identifier
   23 | 版权声明：本文为CSDN博主「pubgoso」的原创文章，遵循CC 4.0 BY-SA版权协议，转载请附上原文出处链接及本声明。
      |                                                              ^
a.cc:22:1: error: '\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014\U00002014' does not name a type
   22 | ————————————————
      | ^~~~~~~~~~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: found ':' in nested-name-specifier, expected '::'
    5 |   int a,b: cin >> a >> b;
      |          ^
      |          ::
a.cc:5:9: error: 'b' has not been declared
    5 |   int a,b: cin >> a >> b;
      |         ^
a.cc:5:16: error: qualified-id in declaration before '>>' token
    5 |   int a,b: cin >> a >> b;
      |                ^~
a.cc:7:21: error: request for member 'size' in 'a', which is of non-class type 'int'
    7 |   for (int i; i < a.size(); i++)
      |                     ^~~~
a.cc:8:10: error: invalid types 'int[int]' for array subscript
    8 |     if (a[i] != b[i]) x = false;
      |          ^
a.cc:8:17: error: 'b' was not declared in this scope
    8 |     if (a[i] != b[i]) x = false;
      |                 ^
Language: C

#include <stdio.h>
int main(void)
{
  char S[10],T[11];
  int count = 0;
  scanf("%s %s",S,T);
  for(i=0;i<10;i++)
  {
    if(S[i] == T[i])
    {
      count += 1;
    }
  }
  if(count == 10)
  {
    printf("Yes\n");
  }
  else
  {
    printf("No\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=0;i<10;i++)
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in