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

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();

        System.out.println("str = " + str);
        if (str.length() == 1) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
        sc.close();
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
        System.out.println("str = " + str);
                                      ^
  symbol:   variable str
  location: class Main
Main.java:11: error: cannot find symbol
        if (str.length() == 1) {
            ^
  symbol:   variable str
  location: class Main
2 errors
Language: C++

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

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

Compiler output:
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
using Graph = vector<vector<int>>;
#define ll long long
#define all(x) (x).begin(),(x).end()
#define rep(i, n) for(ll i = 0; i < n; i++)
#define elif else if
const ll INF = 1LL << 60;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'pop_buck'; did you mean 'pop_back'?
   14 |   T.pop_buck;
      |     ^~~~~~~~
      |     pop_back
Language: C++

#include<bits/stdc++.h>
#include<unordered_map>
using namespace std;
using Graph = vector<vector<int>>;
#define ll long long
#define all(x) (x).begin(),(x).end()
#define rep(i, n) for(ll i = 0; i < n; i++)
#define elif else if
const ll INF = 1LL << 60;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'popbuck'; did you mean 'pop_back'?
   14 |   T.popbuck;
      |     ^~~~~~~
      |     pop_back
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: 'k' was not declared in this scope
    8 |     if(s1[i]!=s2[i]) k=k+1;
      |                      ^
a.cc:10:6: error: 'k' was not declared in this scope
   10 |   if(k>0) cout<<"No"<<endl;
      |      ^
Language: C

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

int main(){
char s[11],t[12];
scanf("%s",&s);
scanf("%s",&t);
int i;

for (i=0; s[i]!=0; i++){
   if(s[i]!=t[i]{
      printf("No");
      return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:13:17: error: expected ')' before '{' token
   13 |    if(s[i]!=t[i]{
      |      ~          ^
      |                 )
main.c:16:1: error: expected expression before '}' token
   16 | }
      | ^
main.c:16:1: error: expected declaration or statement at end of input
Language: Java

import java.util.*;
 
class Main {
	public static void main(String[]args) {
    	Scanner sc = new Scanner(System.in)
          String S = sc.next();
      	  String T = sc.next();
      if(S.epuals(T.substring(0, T.length() - 1))) {
        System.out.println("Yes");
      }
      else{
        System.out.println("No")
      }
    }
}

Compiler output:
Main.java:5: error: ';' expected
    	Scanner sc = new Scanner(System.in)
    	                                   ^
Main.java:12: error: ';' expected
        System.out.println("No")
                                ^
2 errors
Language: Java

import java.util.*;
 
class Main {
	public static void main(String[]args) {
    	Scanner sc = new Scanner(System.in)
          String S = sc.next();
      	  String T = sc.next();
      if(S.epuals(T.substring(0, T.length() - 1)))
        System.out.println("Yes");
      else
        System.out.println("No")
    
    }
}

Compiler output:
Main.java:5: error: ';' expected
    	Scanner sc = new Scanner(System.in)
    	                                   ^
Main.java:11: error: ';' expected
        System.out.println("No")
                                ^
2 errors
Language: Java

import java.util.*;

class Main {
	public static void main(String[]args) {
    	Scanner sc = new Scanner(System.in)
          String S = sc.next();
      	  String T = sc.next();
      if(S.epuals(T.substring(0, T.length(), +1)))
        System.out.println("Yes");
      else
        System.out.println("No")
    
    }
}

Compiler output:
Main.java:5: error: ';' expected
    	Scanner sc = new Scanner(System.in)
    	                                   ^
Main.java:11: error: ';' expected
        System.out.println("No")
                                ^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before 'for'
    7 |   n = size(s)
      |              ^
      |              ;
    8 |   for (i=0;i<n;i++){
      |   ~~~         
a.cc:8:19: error: expected ';' before ')' token
    8 |   for (i=0;i<n;i++){
      |                   ^
      |                   ;
Language: C++

#include <iostream>
using namespace std;
int main()
{
  string a,b;
  int i,c=0,A,B;
  cin >> a;
  cin >> b;
  A << a.size() << endl; 
  B << b.size() << endl; 

  

  if(A+1==B)
  {
    for(i=0;i<A+1;i++)
    {
      if(a[i]!=b[i])
      {
        printf("No");
          c++;
        break;
      }
    }
    if(c==0)
      printf("Yes");
  }
  else
    printf("No");
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |   A << a.size() << endl;
      |   ~~~~~~~~~~~~~~^~~~~~~
a.cc:10:17: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   B << b.size() << endl;
      |   ~~~~~~~~~~~~~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  string a,b;
  int i,c=0,A,B;
  cin >> a;
  cin >> b;
  A << str.size() << endl; 
  B << str.size() << endl; 

  

  if(A+1=B)
  {
    for(i=0;i<A+1;i++)
    {
      if(a[i]!=b[i])
      {
        printf("No")
          c++;
        break;
      }
    }
    if(c==0)
      printf("Yes");
  }
  else
    printf("No");
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   A << str.size() << endl;
      |        ^~~
      |        std
a.cc:14:7: error: lvalue required as left operand of assignment
   14 |   if(A+1=B)
      |      ~^~
a.cc:20:21: error: expected ';' before 'c'
   20 |         printf("No")
      |                     ^
      |                     ;
   21 |           c++;
      |           ~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  string a,b;
  int i,c=0;
  cin >> a;
  cin >> b;
  if(a.length+1=b.length)
  {
    for(i=0;i<a.length+1;i++)
    {
      if(a[i]!=b[i])
      {
        printf("No")
          c++;
        break;
      }
    }
    if(c==0)
      printf("Yes");
  }
  else
    printf("No");
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: 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(a.length+1=b.length)
      |      ~~^~~~~~
      |              ()
a.cc:11:17: 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 '()' ?)
   11 |     for(i=0;i<a.length+1;i++)
      |               ~~^~~~~~
      |                       ()
a.cc:15:21: error: expected ';' before 'c'
   15 |         printf("No")
      |                     ^
      |                     ;
   16 |           c++;
      |           ~
Language: C++

#include <iostream>
using namespcae std;
int main()
{
  string a,b;
  cin >> a;
  cin >> b;
  if(a.length+1=b.length)
  {
    for(i=0;i<a.length+1;i++)
    {
      if(a[i]!=b[i])
      {
        printf("No")
          c++;
        break;
      }
    }
    if(a==0)
      printf("Yes");
  }
  else
    printf("No");
}
  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string a,b;
      |   ^~~~~~
a.cc:5: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:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a;
      |          ^
a.cc:7:10: error: 'b' was not declared in this scope
    7 |   cin >> b;
      |          ^
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     for(i=0;i<a.length+1;i++)
      |         ^
a.cc:14:21: error: expected ';' before 'c'
   14 |         printf("No")
      |                     ^
      |                     ;
   15 |           c++;
      |           ~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'string' was not declared in this scope
    4 |     string s,t;
      |     ^~~~~~
a.cc:4:5: 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:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> s;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:12: error: 's' was not declared in this scope
    5 |     cin >> s;
      |            ^
a.cc:6:12: error: 't' was not declared in this scope; did you mean 'tm'?
    6 |     cin >> t;
      |            ^
      |            tm
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         cout>>"Yes">>endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         cout>>"Yes">>endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         cout>>"No">>endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cout>>"No">>endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc:3:1: error: 'main' does not name a type
    3 | main{
      | ^~~~
Language: C++

#include <iostraem>

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

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

import java.util.Scanner;
 
public class Main {
    public static void main(String[] args){
        Scanner in = new Scanner(System.in);
        String S = in.nextLine();
        String T = in.nextLine();
        
         if (S.equals(T.substring(0,(S.length()))){
          System.out.println("Yes");
         }
         else {System.out.println("No");
                }
        }
    }

Compiler output:
Main.java:9: error: ')' expected
         if (S.equals(T.substring(0,(S.length()))){
                                                  ^
1 error
Language: C

#include<stdio.h>
#include<string.h>
void main()
{
  char S[10],T[11];
  int i,a=0;
  gets(S);
  gets(T);
  if(Slen(S)<Tlen(T))
  {
   for(i=0;i<Slen(S);i++)
   {
     if(S[i]!=T[i])
     {
       printf("No");
       a++;
       break;
     }
   }
  }
  if(a==0)
    printf("Yes")
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(S);
      |   ^~~~
      |   fgets
main.c:9:6: error: implicit declaration of function 'Slen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    9 |   if(Slen(S)<Tlen(T))
      |      ^~~~
      |      strlen
main.c:9:14: error: implicit declaration of function 'Tlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    9 |   if(Slen(S)<Tlen(T))
      |              ^~~~
      |              strlen
main.c:22:18: error: expected ';' before '}' token
   22 |     printf("Yes")
      |                  ^
      |                  ;
   23 | }
      | ~
Language: C

#include<stdio.h>
#include<string.h>
void main()
{
  char S[10],T[11];
  int i,a=0;
  gets(S);
  gets(T);
  if(Slen(S)<Tlen(T))
  {
   for(i=0;i<Slen(s);i++)
   {
     if(S[i]!=T[i])
     {
       printf("No");
       a++;
       break;
     }
   }
  }
  if(a==0)
    printf("Yes")
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    7 |   gets(S);
      |   ^~~~
      |   fgets
main.c:9:6: error: implicit declaration of function 'Slen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    9 |   if(Slen(S)<Tlen(T))
      |      ^~~~
      |      strlen
main.c:9:14: error: implicit declaration of function 'Tlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    9 |   if(Slen(S)<Tlen(T))
      |              ^~~~
      |              strlen
main.c:11:19: error: 's' undeclared (first use in this function)
   11 |    for(i=0;i<Slen(s);i++)
      |                   ^
main.c:11:19: note: each undeclared identifier is reported only once for each function it appears in
main.c:22:18: error: expected ';' before '}' token
   22 |     printf("Yes")
      |                  ^
      |                  ;
   23 | }
      | ~
Language: C

#include<stdio.h>
#include<string.h>
void main()
{
  char S[10],T[11];
  gets(S);
  gets(T);
  if(Slen(S)<Tlen(T))
  {
   for(i=0;i<Slen(s);i++)
   {
     if(S[i]!=T[i])
     {
       printf("No");
       a++;
       break;
     }
   }
  }
  if(a==0)
    printf("Yes")
}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    6 |   gets(S);
      |   ^~~~
      |   fgets
main.c:8:6: error: implicit declaration of function 'Slen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    8 |   if(Slen(S)<Tlen(T))
      |      ^~~~
      |      strlen
main.c:8:14: error: implicit declaration of function 'Tlen'; did you mean 'strlen'? [-Wimplicit-function-declaration]
    8 |   if(Slen(S)<Tlen(T))
      |              ^~~~
      |              strlen
main.c:10:8: error: 'i' undeclared (first use in this function)
   10 |    for(i=0;i<Slen(s);i++)
      |        ^
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:19: error: 's' undeclared (first use in this function)
   10 |    for(i=0;i<Slen(s);i++)
      |                   ^
main.c:15:8: error: 'a' undeclared (first use in this function)
   15 |        a++;
      |        ^
main.c:21:18: error: expected ';' before '}' token
   21 |     printf("Yes")
      |                  ^
      |                  ;
   22 | }
      | ~
Language: C

#include<stdio.h>
#include<conio.h>
#include<string.h>
void main()
{
  char S[10],T[11];
  gets(S);
  gets(T);
  if(Slen(S)<Tlen(T))
  {
   for(i=0;i<Slen(s);i++)
   {
     if(S[i]!=T[i])
     {
       printf("No");
       a++;
       break;
     }
   }
  }
  if(a==0)
    printf("Yes")
}

Compiler output:
main.c:2:9: fatal error: conio.h: No such file or directory
    2 | #include<conio.h>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class test{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        String a="";
        String b="";
        a=sc.nextLine();
        b=sc.nextLine();

        if(a.equals(b.substring(0,a.length()))){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }

}
//||a.equals(b.substring(1,a.length()+1))

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

import java.util.Scanner;

public class test{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        String a="";
        String b="";
        a=sc.nextLine();
        b=sc.nextLine();

        if(a.equals(b.substring(0,a.length()))||a.equals(b.substring(1,a.length()+1))){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }


    }

}

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

import java.util.Scanner;

public class test{

    public static void main(String []args){
        Scanner sc = new Scanner(System.in);
        String a="";
        String b="";
        a=sc.nextLine();
        b=sc.nextLine();

        if(a.equals(b.substring(0,a.length()))||a.equals(b.substring(1,a.length()+1))){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
      

    }

}

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

#include <iostram>
using namespace std;
int main(){
  string s, t;
  cin >> s >> t;
  if(t.substr(0,s.length())==s){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};


int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
  
  string s;
  cin >> s;
  string t = s;
  t.pb();
  if(s==t)Yes
    No
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:54:7: error: no matching function for call to 'std::__cxx11::basic_string<char>::push_back()'
   54 |   t.pb();
      |   ~~~~^~
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:1572:7: note: candidate: 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::push_back(_CharT) [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
 1572 |       push_back(_CharT __c)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:1572:7: note:   candidate expects 1 argument, 0 provided
Language: C++

#include "bits/stdc++.h"
#define rep(i,n) for(int i = 0; i < (n); ++i)
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s, t;
    cin >> s >> t;
    s += t[t.size()-1];
    if(s == t) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}
#include "bits/stdc++.h"
#define rep(i,n) for(int i = 0; i < (n); ++i)
using namespace std;
typedef long long int ll;
typedef pair<int, int> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s, t;
    cin >> s >> t;
    s += t[t.size()-1];
    if(s == t) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc:24:31: error: redefinition of 'template<class T> bool chmax(T&, T)'
   24 | template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
      |                               ^~~~~
a.cc:6:31: note: 'template<class T> bool chmax(T&, T)' previously declared here
    6 | template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
      |                               ^~~~~
a.cc:25:31: error: redefinition of 'template<class T> bool chmin(T&, T)'
   25 | template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
      |                               ^~~~~
a.cc:7:31: note: 'template<class T> bool chmin(T&, T)' previously declared here
    7 | template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
      |                               ^~~~~
a.cc:27:5: error: redefinition of 'int main()'
   27 | int main(){
      |     ^~~~
a.cc:9:5: note: 'int main()' previously defined here
    9 | int main(){
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <windows.h>
typedef long long ll;
using namespace std;

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


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

#include<bits/stdc++.h>
#define ll long long int
#define pb push_back
using namespace std;


void solve()
{
    string a,b;
    cin>>a>>b;
    ll i,na=a.size(),nb=b.size();
    if(na+1==nb)
    {
        for(i=0;i<na;i++)
        {
            if(a[i]!=b[i])
            {
                cout<<"No";
                return ;
            }
        }
        cout<<"Yes";
        return;
    }
    else
    {
        cout<<"No";
    }
    return;
}


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){
	
  string s,t;
  bool f;
  cin>>s>>t;
  int len = s.size();
  for(int i=0;i<len;i++){
  	if(s[i] == t[i]){
    	f = true;
    }
    else{
    	f = false;break
    }
  }
  
  if(f){
   cout<<"Yes\n";
  }
  else{
   cout<<"No\n";
  }

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:24: error: expected ';' before '}' token
   16 |         f = false;break
      |                        ^
      |                        ;
   17 |     }
      |     ~
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		String b = sc.nextLine();
		
		System.out.println(b.startsWith(a) ? "Yes" : "No");
	}
}
import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String a = sc.nextLine();
		String b = sc.nextLine();
		
		System.out.println(b.startsWith(a) ? "Yes" : "No");
	}
}


Compiler output:
Main.java:13: error: class, interface, enum, or record expected
import java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

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

		Scanner input = new Scanner(System.in);

		String S = input.next();
		String T = input.next();

		input.close();

		if(S.length() + 1 == T.length() & T.startsWith(S)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}

	}

}

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



import java.util.*;
import java.io.*;


public class Solution {
        public static void main(String[] args) {
            MyScanner sc = new MyScanner();
            String s = sc.next();
            String t = sc.next();
            if (t.substring(0, t.length() - 1).equals(s)) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }



        }



        public static class MyScanner {
            BufferedReader br;
            StringTokenizer st;

            public MyScanner() {
                br = new BufferedReader(new InputStreamReader(System.in));
            }

            String next() {
                while (st == null || !st.hasMoreElements()) {
                    try {
                        st = new StringTokenizer(br.readLine());
                    } catch (IOException e) {
                        e.printStackTrace();
                    }
                }
                return st.nextToken();
            }

            int nextInt() {
                return Integer.parseInt(next());
            }

            long nextLong() {
                return Long.parseLong(next());
            }

            double nextDouble() {
                return Double.parseDouble(next());
            }

            String nextLine(){
                String str = "";
                try {
                    str = br.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                }
                return str;
            }

        }
    }

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

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

int f(string a, string b){
  int i;
  int sw=1;
  for(i=0;i<a.size();i++){
    if(a[i]!=b[i]) sw=0;
  }
  if(a.size()+1!=b.size()) sw=0;
  return sw;

int main(){
  string a, b;
  if(f(a, b)) cout << "Yes" << endl;
  else cout << "No" << endl;
}
  

Compiler output:
a.cc: In function 'int f(std::string, std::string)':
a.cc:14:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   14 | int main(){
      |         ^~
a.cc:14:9: note: remove parentheses to default-initialize a variable
   14 | int main(){
      |         ^~
      |         --
a.cc:14:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:14:11: error: a function-definition is not allowed here before '{' token
   14 | int main(){
      |           ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:5:26: note: to match this '{'
    5 | int f(string a, string b){
      |                          ^
Language: C

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

typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef unsigned int ui;
typedef string st;
typedef vector<int> vi;
typedef vector <ll> vll;
typedef pair<int, int> pii;
typedef set<int> seti;
#define all(v) ((v).begin()),((v).end())
#define allr(v) v.rbegin(),v.rend()
#define repi(n)  for(int i = 0; i < (int)(n); ++i)
#define repj(n)  for(int j = 0; j < (int)(n); ++j)
#define endl "\n"
#define sz(n) n.size()
#define RT(v) return cout<<v,0
#define watch(x) cout<<#x<<" = { "<<x<<" }\n"
ll gcd(ll a, ll b) { return !b ? abs(a) : gcd(b, a % b); }
ll lcm(ll a, ll b) { return abs(a / gcd(a, b)) * b; }
void run() {
#ifndef ONLINE_JUDGE
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
#else
#endif
}
void Ahmed_Meky()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
}


int main()
{

	Ahmed_Meky();  		   /*█▀▀▄░░░░░░░░░░░▄▀▀█
						   ░█░░░▀▄░▄▄▄▄▄░▄▀░░░█
						   ░░▀▄░░░▀░░░░░▀░░░▄▀
						   ░░░░▌░▄▄░░░▄▄░▐▀▀
						   ░░░▐░░█▄░░░▄█░░▌▄▄▀▀▀▀█
						   ░░░▌▄▄▀▀░▄░▀▀▄▄▐░░░░░░█
						   ▄▀▀▐▀▀░▄▄▄▄▄░▀▀▌▄▄▄░░░█
						   █░░░▀▄░█░░░█░▄▀░░░░█▀▀▀
						   ░▀▄░░▀░░▀▀▀░░▀░░░▄█▀
						   ░░░█░░░░░░░░░░░▄▀▄░▀▄
						   ░░░█░░░░░░░░░▄▀█░░█░░█
						   ░░░█░░░░░░░░░░░█▄█░░▄▀
						   ░░░█░░░░░░░░░░░████▀
						   ░░░▀█▄▄▄▀▀▀▀▄▄▄█▀*/
	
	st s, t;  cin >> s >> t;
	t.pop_back();
	if (s == t)cout << "Yes";
	else cout << "No";
    //system("pause");
    return 0;

}
				


Compiler output:
main.c: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;

typedef long long ll;
const ll INF = 1010000000000000017LL;
const ll MOD = 1000000007LL;

#define REP(i, n) for(ll i = 0 ; i < n; i++)

//#define DEBUG(fmt, ...)
#define DEBUG(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)

int main(){
    std::cout<<std::fixed<<std::setprecision(10);

    string S, T;

    cin >> S >> T;

    cout << (T.find(S) == 0 ? "Yes" : "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 <stdio.h>
int main (void){
    int i;
    char S[20], T[20];
    scanf("%s%s", S, T);
    for(i=0;S[i]!='\0';i++){
        if(S[i]==T[i]){
            printf("Yes\n");
            
        }else printf("No\n");
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:12:5: error: expected declaration or statement at end of input
   12 |     }
      |     ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main() {
  string S, T;
  cin >> S >> T;
  string checkT = T.substr(0, T.size()-1);
  if (checkT == S) {
   if (S.size() =< 10 && S.size() >= 1) {
    cout << "Yes" << endl;
     return 0;
   }
    cout << "No" << endl;
    
  }
  cout << "No" << endl;
  
  
 	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected primary-expression before '<' token
    9 |    if (S.size() =< 10 && S.size() >= 1) {
      |                  ^
Language: C++

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

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

import java.util.*;
public class comp {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String a=sc.next();
        String b=sc.next();
        if (a.equalsIgnoreCase(b.substring(0,b.length()-1))){
            System.out.println("Yes");
        }else {
            System.out.println("No");
        }


    }
}


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

import java.util.Scanner;

public class sample {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);

		String pass1 = scan.nextLine();
		String pass2 = scan.nextLine();
		String passCheck = "0K";

		int length = pass2.length();

		if(length == 2) {
			passCheck = pass2.substring(0 , 1);
		}else {
			passCheck = pass2.substring(0 , length - 1);
		}

		if(pass1.equals(passCheck)) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}


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

int main()
{
	std::string S, T;
	std::cin >> S >> T;
	if ((S.length() + 1 == T.length()) && (T.find(S) != string::npos) && (T[T.length() - 1] >= 'a' && T[T.length() - 1] <= 'z')) {
		cout << "Yes";
	}
	else {
		cout << "No";
	}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:3:14: error: 'string' is not a member of 'std'
    3 |         std::string S, T;
      |              ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | int main()
a.cc:4:14: error: 'cin' is not a member of 'std'
    4 |         std::cin >> S >> T;
      |              ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:4:21: error: 'S' was not declared in this scope
    4 |         std::cin >> S >> T;
      |                     ^
a.cc:4:26: error: 'T' was not declared in this scope
    4 |         std::cin >> S >> T;
      |                          ^
a.cc:5:61: error: 'string' has not been declared
    5 |         if ((S.length() + 1 == T.length()) && (T.find(S) != string::npos) && (T[T.length() - 1] >= 'a' && T[T.length() - 1] <= 'z')) {
      |                                                             ^~~~~~
a.cc:6:17: error: 'cout' was not declared in this scope
    6 |                 cout << "Yes";
      |                 ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "No";
      |                 ^~~~
Language: Java

import java.util.Scanner;

public class test {
    public static void main (String args[]){
        Scanner scan = new Scanner(System.in);
        String str = scan.nextLine();
        String str2 = scan.nextLine();
        
        String c = str2.substring(0, str.length());
        

        if(str.equals(c) ){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

        scan.close();

    }
}

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

#include <stdio.h>

int main(void) {
  /* ローカル変数 */ 
  int l_i_one_cards;  /* 1が書かれたカード枚数 */ 
  int l_i_zero_cards;  /* 0が書かれたカード枚数 */ 
  int l_i_minus_one_cards;  /* -1が書かれたカード枚数 */ 
  int l_i_get_cards;  /* 選ぶカード枚数 */ 
  int l_i_remaining_get_cards;  /* 残りの選ぶカード枚数 */ 
  int l_i_get_one_cards;  /* 1を選んだ枚数 */ 
  int l_i_get_zero_cards;  /* 0を選んだ枚数 */ 
  int l_i_get_minus_one_cards;  /* -1を選んだ枚数 */ 
  int l_i_max;  /* 最大値 */ 
  
  /* 各値を入力 */ 
  scanf("%d %d %d %d", &l_i_one_cards, &l_i_zero_cards, &l_i_minus_one_cards, &l_i_get_cards)
  
  /* 残りの選ぶカード枚数を取得 */ 
  l_i_remaining_get_cards = l_i_get_cards;
  
  /* 1のカードを選ぶ */ 
  if (l_i_remaining_get_cards < l_i_one_cards) {
    l_i_get_one_cards = l_i_remaining_get_cards;
  }
  else {
    l_i_get_one_cards = l_i_one_cards;
  }
  l_i_remaining_get_cards -= l_i_get_one_cards;
  
  /* 0のカードを選ぶ */ 
  if (l_i_remaining_get_cards < l_i_zezro_cards) {
    l_i_get_zero_cards = l_i_remaining_get_cards;
  }
  else {
    l_i_get_zero_cards = l_i_zero_cards;
  }
  l_i_remaining_get_cards -= l_i_get_zero_cards;
  
  /* -1のカードを選ぶ */ 
  if (l_i_remaining_get_cards < l_i_minus_one_cards) {
    l_i_get_minus_one_cards = l_i_remaining_get_cards;
  }
  else {
    l_i_get_minus_one_cards = l_i_minus_one_cards;
  }
  l_i_remaining_get_cards -= l_i_get_minus_one_cards;
  
  /* 最大値を算出 */ 
  l_i_max = l_i_get_one_cards - l_i_get_minus_one_cards;
  
  /* 表示 */ 
  printf("%d", l_i_max);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:16:94: error: expected ';' before 'l_i_remaining_get_cards'
   16 |   scanf("%d %d %d %d", &l_i_one_cards, &l_i_zero_cards, &l_i_minus_one_cards, &l_i_get_cards)
      |                                                                                              ^
      |                                                                                              ;
......
   19 |   l_i_remaining_get_cards = l_i_get_cards;
      |   ~~~~~~~~~~~~~~~~~~~~~~~                                                                     
main.c:31:33: error: 'l_i_zezro_cards' undeclared (first use in this function); did you mean 'l_i_zero_cards'?
   31 |   if (l_i_remaining_get_cards < l_i_zezro_cards) {
      |                                 ^~~~~~~~~~~~~~~
      |                                 l_i_zero_cards
main.c:31:33: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main()
{
    string s,t;
    cin>>s>>t;
    if(t.size()==s.size()+1)
    {
        int i,c=0;
        for(i=0;i<s.size();i++)
        {
            if(s[i]==t[i]) c++;
        }
        if(c==s.size()) cout<<"Yes"<<endl;
        else cout<<"No"<<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>
#include <iostream>
using namespace std;
#define rep(i, n) for (int i = 0; i < n; i++)


int main()
{
 stirng 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:9:2: error: 'stirng' was not declared in this scope
    9 |  stirng S,T;
      |  ^~~~~~
a.cc:10:7: error: 'S' was not declared in this scope
   10 |  cin>>S>>T;
      |       ^
a.cc:10:10: error: 'T' was not declared in this scope
   10 |  cin>>S>>T;
      |          ^
Language: C

#include<stdio.h>
int main(){
	char S[11],T[12]; 
    scanf("%s %s",S,T);
    
    int cou,ans;
    for(cou=0;S[cou]!=\0;cou++){
        if(S[cou]==T[cou]){ans=0;}
        else{ans=1;}
    }
    if(ans==0){
        printf("Yes");
    }else{
        printf("No");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: stray '\' in program
    7 |     for(cou=0;S[cou]!=\0;cou++){
      |                       ^
Language: C

include<stdio.h>
int main(){
	char S[9],T[10]; 
    scanf("%s\n%s",&S,&T);
    
    int cou,ans;
    for(cou=0;ans==1;cou++){
        if(S[cou]==T[cou]){ans=0;}
        else{ans=1;}
    }
    if(ans==0){
        printf("Yes");
    }else{
        printf("No");
    }

    return 0;
}

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

#include<stdio.h>
int main(){
	char s[105],t[105];
	scanf("%s%s",s,t);
	bool f=1;
	for(int i=0;s[i]!='\0';i++) {
		if(s[i]!=t[i]){
			f=0;
			break;
		}
	}
	if(f) printf("Yes");
	else printf("No");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool f=1;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
Language: C

#include <bits/stdc++.h>

using namespace std;

int main(){
  string s, t; cin >> s >> t;
  string res = "Yes";
  for(int i=0; i<s.size(); ++i){
    if(s[i] != t[i]) res = "No";
  }
  cout << res << "\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

public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String s1 = sc.nextLine();
        if(s.equals(s1.substring(0,s1.length()-1))){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

package com.test;

import java.util.Scanner;

/**
 * @Author: nxw
 * @Date: 2020/5/16 14:55
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String s1 = sc.nextLine();
        if(s.equals(s1.substring(0,s1.length()-1))){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}


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

public class Test {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
        String s1 = sc.nextLine();
        if(s.equals(s1.substring(0,s1.length()-1))){
            System.out.println("Yes");
        }
        else {
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:1: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Test
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Test
3 errors
Language: C

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define fi first
#define se second
using namespace std;


typedef long long ll;
const int INF = 1001001001;



int main() {
#ifndef ONLINE_JUDGE
	freopen("in.txt", "r", stdin);
	freopen("out.txt", "w", stdout);
#endif
	// int t;
	// cin >> t;
	// while (t--) {
	int n, m, x; cin >> n >> m >> x;
	vector<int> c(n);
	int a[12][12];

	rep(i, n) {
		cin >> c[i];
		rep(j, m) cin >> a[i][j];
	}

	int yen = INF;

	rep(p, 1 << n) {
		int cost = 0;
		vector<int> v(m);
		rep(i, n) {
			if ( p >> i & 1 ) {
				cost += c[i];
				rep(j, m) v[j] += a[i][j];
			}
		}
		bool ok = true;
		rep(i, m) ok &= v[i] >= x;
		if (ok) yen = min(yen, cost);
	}
	if (yen == INF) cout << -1 << endl;
	else cout << yen << endl;
	// 	return 0;
	// }
	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

import java.util.*;

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

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

#include<stdio.h>
 
int main(){
  int A,B,C,K,i,sum=0;
  
  scanf("%d%d%d%d",&A,&B,&C,&K);
  #include<stdio.h>
 
int main(){
  int A,B,C,K,i,sum=0,tmp;
  
  scanf("%d%d%d%d",&A,&B,&C,&K);
  tmp=K;
  if((K-A) > 0){
  	sum = 1*A;
    K -= A;
  }
  if((K-B) > 0){
  	K -= B;
  }
  for(i=0; i<K; i++){
    
  	if(A>0){
    	sum++;
      A -=1;
    }
    else if(B>0){
    	B -=1;
    }
    else{
      sum--;
    C -=1;
    }
  }
  printf("%d", sum);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:37:1: error: expected declaration or statement at end of input
   37 | }
      | ^