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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
    7 |   for(int i=0;i<S.size;i++){
      |                 ~~^~~~
      |                       ()
a.cc:9:14: error: expected ';' before '}' token
    9 |       count++
      |              ^
      |              ;
   10 |     }
      |     ~         
a.cc:12:20: error: 'i' was not declared in this scope
   12 |   if(count==S.size(i))cout<<"Yes"<<endl;
      |                    ^
Language: C++

#include<iostream>
#include<math.h>
#include<algorithm>
#include<stdint.h>
#include<vector>
#include<deque>
#include<stack>
#include<string>
#include<cstring>
#include<time.h>
#include<array>
#include<iomanip>
#include<list>
#include<set>
#include<unordered_map>
#include<unordered_set>
#include<random>
#include<bitset>
#include <queue>
#include <map>


using namespace std;
using ll = long long;
using ull = unsigned long long;
using uint = unsigned int;
using ldouble = long double;


//BDD,ZDD,kdtree, bdtree,bicalc, bolonoy, doloney,chinesemod,segmenttree,daikusutora, saidairyuu, 2bugurahu, heirokenshutu, topologicalsort, kyourenketuseibun


#define PRI(s) cout << s << endl
#define PRIY PRI("Yes")
#define PRIN PRI("No")

int main() {
	
	string s, t;
	cin >> s >> t;
	if (s.length() + 1 != t.length()) {
		PRIN;
		return;
	}
	for (int i = 0; i < s.length(); ++i) {
		if (s[i] != t[i]) {
			PRIN;
			return;
		}
	}
	PRIY;
	
	return 0;
}

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 't' was not declared in this scope
    7 |   t.pop_buck();
      |   ^
Language: C

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

string S,T;

void input(){
  cin >> S >> T;
}

void solve(){
  T.pop_back();
  if(S == T) cout << "Yes" << endl;
  else cout << "No" << endl;
}

int main(){
  input();
  solve();
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected unqualified-id before 'sizeof'
    6 |   for(i=0; i<s.sizeof(); ++i) if(s[i]==t[i]) ++cnt;
      |                ^~~~~~
a.cc:6:16: error: expected ';' before 'sizeof'
    6 |   for(i=0; i<s.sizeof(); ++i) if(s[i]==t[i]) ++cnt;
      |                ^~~~~~
      |                ;
a.cc:6:23: error: expected primary-expression before ')' token
    6 |   for(i=0; i<s.sizeof(); ++i) if(s[i]==t[i]) ++cnt;
      |                       ^
a.cc:6:24: error: expected ')' before ';' token
    6 |   for(i=0; i<s.sizeof(); ++i) if(s[i]==t[i]) ++cnt;
      |      ~                 ^
      |                        )
a.cc:6:29: error: expected ';' before ')' token
    6 |   for(i=0; i<s.sizeof(); ++i) if(s[i]==t[i]) ++cnt;
      |                             ^
      |                             ;
a.cc:7:13: error: expected unqualified-id before 'sizeof'
    7 |   if(cnt==s.sizeof()) cout<<"Yes"<<endl; else cout<<"No"<<endl;
      |             ^~~~~~
a.cc:7:13: error: expected ')' before 'sizeof'
    7 |   if(cnt==s.sizeof()) cout<<"Yes"<<endl; else cout<<"No"<<endl;
      |     ~       ^~~~~~
      |             )
Language: Java

public class Main {
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String s = sc.next();
        String t = sc.next();
        sc.close();
        String[] arr1 =  s.split("");
        String[] arr2 =  t.split("");
//        List<String> list1 = Arrays.asList(s.split(""));
        List list1 = new LinkedList(Arrays.asList(s.split("")));
//        List<String> list2 = Arrays.asList(t.split(""));
        List list2 = new LinkedList(Arrays.asList(t.split("")));
//        int num = Integer.parseInt(arr[arr.length - 1]);
        list2.remove(arr2.length - 1);
//        System.out.println(list1);
//        System.out.println(list2);
         if(list1.toString().contentEquals(list2.toString())){
             System.out.println("Yes");
         }else{
             System.out.println("No");
         }
//        switch(num){
//            case 3:
//                System.out.println("bon");
//                break;
//            case 0:
//            case 1:
//            case 6:
//            case 8:
//                System.out.println("pon");
//                break;
//            default:
//                System.out.println("hon");
//                break;
//        }
//        String[] array = str.split(" ");
//        int sum = 0;
//        for(int i=0; i<array.length; i++) {
//            int num = Integer.parseInt(array[i]);
//            sum += num;
//        }
//        System.out.println(15-sum);
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
        List list1 = new LinkedList(Arrays.asList(s.split("")));
        ^
  symbol:   class List
  location: class Main
Main.java:10: error: cannot find symbol
        List list1 = new LinkedList(Arrays.asList(s.split("")));
                         ^
  symbol:   class LinkedList
  location: class Main
Main.java:10: error: cannot find symbol
        List list1 = new LinkedList(Arrays.asList(s.split("")));
                                    ^
  symbol:   variable Arrays
  location: class Main
Main.java:12: error: cannot find symbol
        List list2 = new LinkedList(Arrays.asList(t.split("")));
        ^
  symbol:   class List
  location: class Main
Main.java:12: error: cannot find symbol
        List list2 = new LinkedList(Arrays.asList(t.split("")));
                         ^
  symbol:   class LinkedList
  location: class Main
Main.java:12: error: cannot find symbol
        List list2 = new LinkedList(Arrays.asList(t.split("")));
                                    ^
  symbol:   variable Arrays
  location: class Main
8 errors
Language: C++

/*
      author : nishi5451
      created: 11.08.2020 23:14:55
*/

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


int main(){
    string s,t;
    cin >> s >> t;
    for(int i=0; i<s.size(); i++){
        if(s[i]!=t[i]){
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
    return 0;
}/*
      author : nishi5451
      created: 11.08.2020 23:14:55
*/

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


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

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

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

int main()
{
  char s[11];
  char t[12];

  scanf("%s %s", &s,&t);
  t[strlen(s)] = '\0'
  if(strcmp(s,t) == 0)
    printf("Yes");
  else
   ("No")
   
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before 'if'
   10 |   t[strlen(s)] = '\0'
      |                      ^
      |                      ;
   11 |   if(strcmp(s,t) == 0)
      |   ~~                  
main.c:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
main.c:14:10: error: expected ';' before 'return'
   14 |    ("No")
      |          ^
      |          ;
   15 | 
   16 |   return 0;
      |   ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string A, B;
  cin >> A >> B;
  int X = B.size();
  B.at(X - 1) = ' ';
  A = A + ' '
  if(A == B) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'if'
    8 |   A = A + ' '
      |              ^
      |              ;
    9 |   if(A == B) {
      |   ~~          
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char a,b;
  int k;
  scanf("%s %s",a,b);
  b[strlen(a)]='\0';
  if(a==b)puts("yes");
  else puts("No") ;
  
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    7 |   b[strlen(a)]='\0';
      |            ^
      |            |
      |            char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:7:4: error: subscripted value is neither array nor pointer nor vector
    7 |   b[strlen(a)]='\0';
      |    ^
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char a,b;
  int k;
  scanf("%s %s",a,b);
  b[strlen(a)]='\0'
  if(a==b)puts("yes");
  else puts("No") ;
  
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:7:12: error: passing argument 1 of 'strlen' makes pointer from integer without a cast [-Wint-conversion]
    7 |   b[strlen(a)]='\0'
      |            ^
      |            |
      |            char
In file included from main.c:2:
/usr/include/string.h:407:35: note: expected 'const char *' but argument is of type 'char'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
main.c:7:4: error: subscripted value is neither array nor pointer nor vector
    7 |   b[strlen(a)]='\0'
      |    ^
main.c:7:20: error: expected ';' before 'if'
    7 |   b[strlen(a)]='\0'
      |                    ^
      |                    ;
    8 |   if(a==b)puts("yes");
      |   ~~                
main.c:9:3: error: 'else' without a previous 'if'
    9 |   else puts("No") ;
      |   ^~~~
Language: C

#inclide<stdio.h>
#include<strlen.h>
int main(void){
  char a,b;
  int k;
  scanf("%s %s",a,b);
  b[strlen(a)]='\0'
  if(a==b)puts("yes");
  else puts("No") ;
  
 return 0; 
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<stdio.h>
      |  ^~~~~~~
      |  include
main.c:2:9: fatal error: strlen.h: No such file or directory
    2 | #include<strlen.h>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
int main() {
  string S , T ;
  cin >> S >> T;
  if ( S.pop_back != T ){
    cout << "No" << endl;
    return 0;
  }
  
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: invalid use of non-static member function 'void std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::pop_back() [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>]'
    6 |   if ( S.pop_back != T ){
      |        ~~~~~~~~~~~^~~~
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:2174:7: note: declared here
 2174 |       pop_back() noexcept
      |       ^~~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected primary-expression before ';' token
   11 |      cout << "No" << ;
      |                      ^
a.cc:17:18: error: expected primary-expression before ';' token
   17 |   cout <<"Yes"<< ;
      |                  ^
Language: C++

#include <iostream>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <sstream>
#include <string>
#include <climits>
#include <set>
#include <array>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <numeric>
#include <map>
#include <utility>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:25:22: error: expected primary-expression before ';' token
   25 |      cout << "No" << ;
      |                      ^
a.cc:31:18: error: expected primary-expression before ';' token
   31 |   cout <<"Yes"<< ;
      |                  ^
Language: C++

#include <iostream>
#include <unordered_set>
#include <cstdint>
#include <vector>
#include <sstream>
#include <string>
#include <climits>
#include <set>
#include <array>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <numeric>
#include <map>
#include <utility>
using namespace std;

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

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

#include <bits/stdc++.h>

using namespace std;

int main() {
    str s, t;
    cin >> s >> t;
    int flag = 0;
    if (s.size() + 1 == t.size()) {
        if (s[s.size() - 1] == t[t.size() - 1]) {
            flag = 1;
        }
    }

    flag == 1 ? cout << "Yes" : cout << "No";

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'str' was not declared in this scope; did you mean 'std'?
    6 |     str s, t;
      |     ^~~
      |     std
a.cc:7:12: error: 's' was not declared in this scope
    7 |     cin >> s >> t;
      |            ^
a.cc:7:17: error: 't' was not declared in this scope; did you mean 'tm'?
    7 |     cin >> s >> t;
      |                 ^
      |                 tm
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected ';' before 'printf'
    7 |         else(A<K&&K<=A+B)
      |                          ^
      |                          ;
    8 |         printf("%d",A);
      |         ~~~~~~            
main.c:9:9: error: 'else' without a previous 'if'
    9 |         else
      |         ^~~~
Language: C

#include <stdio.h>

int main(void) {
	int a,b,c,k;
	scanf("%d%d%d%d",&a,&b,&c,&k);
	if(k<a);
	printf("%d",k);
	else(a<K&&k<=a+b);
	printf("%d",a);
	else
	printf("%d",a+b-{k-(a+b)});
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:9: error: 'else' without a previous 'if'
    8 |         else(a<K&&k<=a+b);
      |         ^~~~
main.c:8:16: error: 'K' undeclared (first use in this function)
    8 |         else(a<K&&k<=a+b);
      |                ^
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:9: error: 'else' without a previous 'if'
   10 |         else
      |         ^~~~
main.c:11:25: error: expected expression before '{' token
   11 |         printf("%d",a+b-{k-(a+b)});
      |                         ^
Language: C++

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

int main () {
  int cnt == 0;
  string A, B;
  cin >> A;
  cin >> B;
  int size = sizeof(A) / sizeof(char);
  for(int i = 0;i < size;i++){
    if(A[i] == B[i]) {
      cnt ++;
    }
  }
  if(cnt == size) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected initializer before '==' token
    5 |   int cnt == 0;
      |           ^~
a.cc:12:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |       cnt ++;
      |       ^~~
      |       int
a.cc:15:6: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |   if(cnt == size) {
      |      ^~~
      |      int
Language: C++

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

int main () {
  bool ans = false;
  string A, B;
  cin >> A;
  cin >> B;
  int size = sizeof(A) / sizeof(char);
  for(int i = 0;i < size;i++){
    if(A[i] == B[i];) {
      ans = true;
    }
  }
  if(ans == true) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:21: error: expected primary-expression before ')' token
   11 |     if(A[i] == B[i];) {
      |                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected ';' before ')' token
    9 |   for (int i = 0; i < s, i++) {
      |                             ^
      |                             ;
a.cc:10:11: error: request for member 'at' in 's', which is of non-class type 'int'
   10 |     if (s.at(i) != t.at(i)) {
      |           ^~
a.cc:10:22: error: request for member 'at' in 't', which is of non-class type 'int'
   10 |     if (s.at(i) != t.at(i)) {
      |                      ^~
Language: C++

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

int main(){
  string a;
  string b;
  cin >> a;
  cin >> b:
  if (a == b[:-1]){
    cout << "Yes" << endl;
  }else{
    cout << "Yes" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected ';' before ':' token
   11 |   cin >> b:
      |           ^
      |           ;
a.cc:14:4: error: 'else' without a previous 'if'
   14 |   }else{
      |    ^~~~
Language: C++

#define _USE_NATH_DEFINES
#include <cstdio>
#include <iostream>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <complex>
#include <string>
#include <vector>
#include <list>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <bitset>
#include <numeric>
#include <limits>
#include <climits>
#include <cfloat>
#include <functional>
#include <iterator>
#include <random>
#include <tuple>


using namespace std;
#define REP (i,m,n) for(int i=( int)m ; i < (int ) n ; ++i )
#define rep (i,n) REP(i,0,n)
using ll = long long;
#define EPS 1e-9
const int INF = 1050000000;
const long long LINF = 1LL << 60;
const ll MOD = 1e9 + 7;
const int MINF = -1050000000;

template<class T> inline bool chmax(T & a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T & a, T b) { if (a > b) { a = b; return true; } return false; }



int main() {
	string s, t;
	int n = s.size();
	rep(i, n) {
		if (s[i] != t[i]) {
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:14: error: 'i' was not declared in this scope
   30 | #define rep (i,n) REP(i,0,n)
      |              ^
a.cc:46:9: note: in expansion of macro 'rep'
   46 |         rep(i, n) {
      |         ^~~
a.cc:29:16: error: 'm' was not declared in this scope
   29 | #define REP (i,m,n) for(int i=( int)m ; i < (int ) n ; ++i )
      |                ^
a.cc:30:19: note: in expansion of macro 'REP'
   30 | #define rep (i,n) REP(i,0,n)
      |                   ^~~
a.cc:46:9: note: in expansion of macro 'rep'
   46 |         rep(i, n) {
      |         ^~~
Language: C++

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

int main() {
  string S,T;
  cin >> S >> T;
  bool ans=true;
  
  for(i=0; i<S.size(), i++){
    if(S.at(i) != T.at(i)){
      ans = false;
      break;
    }
  }
  if(ans)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=0; i<S.size(), i++){
      |       ^
a.cc:9:27: error: expected ';' before ')' token
    9 |   for(i=0; i<S.size(), i++){
      |                           ^
      |                           ;
Language: C

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

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

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

#include <iostream>
#include <string>
 
using namespace std;
 
int main()
{
  int S, T,;
  cin >> S;
  cin >> T;
  int nagasa = T.size()
  int cut = T.erase(nagasa)
  
    if (S = cut) {
     cout << "Yes\n";
    }
    else {
      cout << "No\n";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected unqualified-id before ';' token
    8 |   int S, T,;
      |            ^
a.cc:11:18: error: request for member 'size' in 'T', which is of non-class type 'int'
   11 |   int nagasa = T.size()
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>
 
using namespace std;
 
int main()
{
  int S, T;
  cin >> S;
  cin >> T;
  char nagasa = T.size()
  char cut = T.erase(nagasa)
  
    if (S = cut) {
     cout << "Yes\n";
    }
    else {
      cout << "No\n";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: request for member 'size' in 'T', which is of non-class type 'int'
   11 |   char nagasa = T.size()
      |                   ^~~~
Language: C++

#include <iostream>
#include <string>

using namespace std;

int main()
{
  int S, T, nagasa, cut;
  cin >> S;
  cin >> T;
  int nagasa = T.size()
  int cut = T.erase(nagasa)
  
    if (S = cut) {
     cout << "Yes\n";
    }
    else {
      cout << "No\n";
    }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: redeclaration of 'int nagasa'
   11 |   int nagasa = T.size()
      |       ^~~~~~
a.cc:8:13: note: 'int nagasa' previously declared here
    8 |   int S, T, nagasa, cut;
      |             ^~~~~~
a.cc:11:18: error: request for member 'size' in 'T', which is of non-class type 'int'
   11 |   int nagasa = T.size()
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
string S;
  siring T;
  cin>>S>>T;
  if(T==S+"a"||T==S+"b"||T==S+"c"||T==S+"d"||T==S+"e"||T==S+"f"||T==S+"g"||T==S+"h"||T==S+"i"||T==S+"j"||T==S+"k"||T==S+"l"||T==S+"m"||T==S+"n"||T==S+"o"||T==S+"p"||T==S+"q"||T==S+"r"||T==S+"s"||T==S+"t"||T==S+"u"||T==S+"v"||T==S+"w"||T==S+"x"||T==S+"y"||T==S+"z"){
  cout<<"Yes";
  }
  else{
  cout<<"No";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'siring' was not declared in this scope
    6 |   siring T;
      |   ^~~~~~
a.cc:7:11: error: 'T' was not declared in this scope
    7 |   cin>>S>>T;
      |           ^
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
	int i;
	string S, T;
	cin >> S >> T;
	int x = S.length();
	int y = T.length();
	int a = 0;
	if (y = x + 1)
		for (i = 0; i < x; i++) {
			if (S[i] != T[i])
				a += 1;
		}
		if (a == 0)
			cout << "Yes" << "\n";
		else
			cout << "No" << "\n";
	else
		cout << "No" << "\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:9: error: 'else' without a previous 'if'
   21 |         else
      |         ^~~~
Language: C++

#include<string>
#include<iostream>
using namespace std;
int main(){
  string R;
  string T;
  cin>>R>>T;
  size_t sizeR=R.length();
  size_t sizeT=T.length();
  if(sizeR==sizeT-1)cout<<"Yes";
  else cout<<"No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '}' token
   11 |   else cout<<"No"
      |                  ^
      |                  ;
   12 | }
      | ~
Language: C++

#include<string>
#include<iostream>
using namespace std;
int main(){
  string R;
  string T;
  cin>>R>>T;
  size_t sizeR=R.length();
  size_t sizeT=T.length();
  if(sizeR=sizeT-1)cout<<"Yes";
  else cout<<"No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: expected ';' before '}' token
   11 |   else cout<<"No"
      |                  ^
      |                  ;
   12 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
	char s[10];
	char t[11];
	int m=0;
	int n=0;
	int x=0;
	scanf("%s",&s);
	scanf("%s",&t);
		
	while(s[n])
	n++; 
	while(t[m])
	m++;
	
	for(int i=0; i<n; i++){
		if(s[i] == t[i])
		 x++;
	}
	
	if(n==m)
	printf("No");
	
	
	else if(n==x&&n!=m)
	printf("Yes");
	
	else
	printf("No");
	


Compiler output:
main.c: In function 'main':
main.c:30:9: error: expected declaration or statement at end of input
   30 |         printf("No");
      |         ^~~~~~
Language: Java

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

Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define IOS ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep1(i,n) for(ll i=1;i<=n;i++)
#define rep_start(a,i,n) for(ll i=a;i<=n;i++)
#define rev(i,n) for(ll i=n-1;i>=0;i--)
#define rev1(i,n) for(ll i=n;i>0;i--)
#define sz(a) int((a).size())
#define all(c) c.begin(),c.end()
#define tr(c,i) for(typeof(c).begin() i+=c.begin; i!=c.end(); i++)
#define present(c,x) (c.find(x)!=c.end())
#define cpresent(c,x) (find(all(c),x)!=c.end())
#define pb push_back
#define F first
#define S second
#define INF INT_MAX
#define mod 1000000007
#define print1(a) cout<<a<<"\n";
#define print2(a,b) cout<<a<<" "<<b<<"\n";
#define print3(a,b,c) cout<<a<<" "<<b<<" "<<c<<"\n";
#define mt make_tuple
#define eb emplace_back

typedef unsigned long long int ll;
typedef vector<ll> vi;
typedef vector<bool> vb;
typedef vector<vb> vvb;
typedef vector<vi> vvi;
typedef pair<ll,ll> ii;
typedef vector<ii> vii;
typedef tuple<int,int,int> State;

void solve(){
    string s,t;cin>>s>>t;
    int l==s.length();
    if(t.length()>=l && s==t.substr(0,l)) cout<<"Yes";
    else cout<<"No";
}

signed main() {
    // your code goes here
    IOS
    ll t=1;
    //cin>>t;
    rep1(i,t){
        solve(); 
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:36:10: error: expected initializer before '==' token
   36 |     int l==s.length();
      |          ^~
a.cc:37:20: error: 'l' was not declared in this scope
   37 |     if(t.length()>=l && s==t.substr(0,l)) cout<<"Yes";
      |                    ^
Language: C++

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

int main(){
	string s1,s2;
	cin>>s1>>s2;
	if (s2.size() = s1.size() + 1){
		for (int i = 0; i<s1.size(); i++){
			if (s1[i] != s2[i]){
				cout<<"NO";
				return 0;
			}
		}
		cout<<"YES";
	}
	else{
		cout<<"NO";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: lvalue required as left operand of assignment
    7 |         if (s2.size() = s1.size() + 1){
      |             ~~~~~~~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string s, t;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 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/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> s >> t;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:10: error: 's' was not declared in this scope
    4 |   cin >> s >> t;
      |          ^
a.cc:4:15: error: 't' was not declared in this scope; did you mean 'tm'?
    4 |   cin >> s >> t;
      |               ^
      |               tm
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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:7:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:9:5: 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)
      |     ^~~~
Language: C

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

int main (){
  char S[10],T[11];
  int count = 0;
  scanf("%s",S);
  scanf("%s",T);
  
  int S_length = sizeof S/sizeof S[0]
  for(int i = 0 ;i < S_length;i++){
     if(S[i] == T[i]){
        count++;
     }
  }

  if(count == S_length){
     printf("Yes");
  }else{
     printf("Nn");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i = 0 ;i < S_length;i++){
      |   ^~~
main.c:11:18: error: 'i' undeclared (first use in this function)
   11 |   for(int i = 0 ;i < S_length;i++){
      |                  ^
main.c:11:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:34: error: expected ';' before ')' token
   11 |   for(int i = 0 ;i < S_length;i++){
      |                                  ^
      |                                  ;
main.c:11:34: error: expected statement before ')' token
Language: C

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

int main (){
  char S[10],T[11];
  int count = 0;
  scanf("%s",S);
  scanf("%s",T);
  
  int S_length = sizeof S/sizeof S[0]
  for(int i = ;i < S_length;i++){
     if(S[i] == T[i]){
        count++;
     }
  }

  if(count == S_length){
     printf("Yes");
  }else{
     printf("Nn");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:3: error: expected ',' or ';' before 'for'
   11 |   for(int i = ;i < S_length;i++){
      |   ^~~
main.c:11:16: error: 'i' undeclared (first use in this function)
   11 |   for(int i = ;i < S_length;i++){
      |                ^
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:32: error: expected ';' before ')' token
   11 |   for(int i = ;i < S_length;i++){
      |                                ^
      |                                ;
main.c:11:32: error: expected statement before ')' token
Language: C

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

int main(void){
   int i;
   char S[11];//10
   char T[12];//11

  scanf("%s",S);
  scanf("%s",T);
  
  int lenS = strlen(S);
  int lenT=strlen(T);

  for(i=0;S[i]!='\0';i++){
     if(S[i]!=T[i]){
        printf("No\n");
        return 0;
     }
  }
  if(T[i+1]=='\0'){
     printf("Yes\n");
  }else{
     printf("No\n");
     return 0;
}


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

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

int main(void){
   int i,len;
   char S[11];//10
   char T[11];//11

  scanf("%s",S);
  scanf("%s",T);
  
  int lenS = strlen(S);
  int lenT=strlen(T);

    for (i = 0; i < lenS; i++) {
       if (S[i]!=T[i]) {
          printf("NO\n");
    }
  }
  if (len == lenS) {
    printf("Yes\n");
  return 0;
}

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

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

int main(void){
   char s[256];
   char t[256];
   boolean yes = true;

   scanf("%s %s",s,t);
   
   for(int i=0;i<strlen(s);i++){
      if(s[i]!=t[i]){
         yes = false;
      }
   }
   if(yes){
      printf("YES\n");
   } else {
      printf("NO\n");
   }
   return 0;
}
      


Compiler output:
main.c: In function 'main':
main.c:7:4: error: unknown type name 'boolean'
    7 |    boolean yes = true;
      |    ^~~~~~~
main.c:7:18: error: 'true' undeclared (first use in this function)
    7 |    boolean yes = true;
      |                  ^~~~
main.c:3:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<string.h>
  +++ |+#include <stdbool.h>
    3 | 
main.c:7:18: note: each undeclared identifier is reported only once for each function it appears in
    7 |    boolean yes = true;
      |                  ^~~~
main.c:13:16: error: 'false' undeclared (first use in this function)
   13 |          yes = false;
      |                ^~~~~
main.c:13:16: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

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

int main(void){
   int n = 10;
   int count = 0;
   char s[n];
   char t[n+1];

   scanf("%s %s",s,t);

   for(int i=0;i<n;i++){
      if(s[i] == t[i]){
         count++;
      }
      if(count == strlen(s)){
         printf("YES\n");
      } else {
         printf("NO\n");
      }
   return 0;
}
      


Compiler output:
main.c: In function 'main':
main.c:22:1: error: expected declaration or statement at end of input
   22 | }
      | ^
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();
      if(t.substring(0,T.length()-1).equals(s)){
         System.out.println("Yes");
      }else{
         System.out.println("No");
      }
   }
}


Compiler output:
Main.java:7: error: cannot find symbol
      if(t.substring(0,T.length()-1).equals(s)){
                                            ^
  symbol:   variable s
  location: class Main
Main.java:7: error: cannot find symbol
      if(t.substring(0,T.length()-1).equals(s)){
         ^
  symbol:   variable t
  location: class Main
2 errors
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();
      if(t.substring(0,T.length()-1).equals(s)){
         System.out.println("Yes");
      }else{
         System.out.println("No");
      }
   }
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner*;
                        ^
1 error
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();
      boolean U=false;
      for(char v='a';c<='z';v++){
         if((S+c).equals(T)){
            U=true;
         }
      }
      System.out.println(b?"Yes":"No");
   }
}


Compiler output:
Main.java:8: error: cannot find symbol
      for(char v='a';c<='z';v++){
                     ^
  symbol:   variable c
  location: class Main
Main.java:9: error: cannot find symbol
         if((S+c).equals(T)){
               ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
      System.out.println(b?"Yes":"No");
                         ^
  symbol:   variable b
  location: class Main
3 errors
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();
      boolean U=false;
      for(char v='a';c<='z';v++){
         if((S+c).equals(T)){
            U=true;
         }
      }
      System.out.println(b?"Yes":"No");
   }
}


Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner*;
                        ^
1 error
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();
      boolean U=false;
      for(char v='a';c<='z';v++){
         if((S+c).equals(T)){
            U=true;
         }
      }
      System.out.println(b?"Yes":"No");
   }
}


Compiler output:
Main.java:8: error: cannot find symbol
      for(char v='a';c<='z';v++){
                     ^
  symbol:   variable c
  location: class Main
Main.java:9: error: cannot find symbol
         if((S+c).equals(T)){
               ^
  symbol:   variable c
  location: class Main
Main.java:13: error: cannot find symbol
      System.out.println(b?"Yes":"No");
                         ^
  symbol:   variable b
  location: class Main
3 errors
Language: Java

import java.util.*;

class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    String[] S = sc.next().split("");
    String[] T = sc.next().split("");
    String ret = "Yes";
    for (int i = 0; i < S.length(); i++) {
      if (S[i].equals(T[i])) {
        ret = "No";
        break;
      }
    }
    System.out.println(ret);
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    for (int i = 0; i < S.length(); i++) {
                         ^
  symbol:   method length()
  location: variable S of type String[]
1 error
Language: C

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

int main() {
    char s[15], t[15];
    scanf("%s %s", s, t);
    bool ok = 1;
    for (int i = 0; i < strlen(s); i++) {
        if (s[i] != t[i]) ok = 0;
    }
    if (ok) printf("Yes\n");
    else printf("No\n");
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: unknown type name 'bool'
    7 |     bool ok = 1;
      |     ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include <string.h>
  +++ |+#include <stdbool.h>
    3 |
Language: C++

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

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

void solve() {
T.pop_back();
  if(S == T) cout << "Yes" << endl;
  else cout << "No" << endl;
}

int main() {
  input()
    solve()
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected ';' before 'solve'
   16 |   input()
      |          ^
      |          ;
   17 |     solve()
      |     ~~~~~
Language: C++

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

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

void solve() {
T.pop_back();
  if(S == T) cout << "Yes" << endl;
  else cout << "No" << endl;
}

int main() {
  input()
    solve()
    return 0;
}

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

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

int main(void){
    char S[256];
    char T[256];

    fgets(S);
    fgets(T);

    int len = strlen(S);
    int len2 = strlen(T);
    len = len + 1;
    if(strcmp(S, T) == 0){
        if(len == len2){
            printf("Yes");
        }else{
            printf("No");
        }
    }else{
        printf("No");
    }

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: too few arguments to function 'fgets'
    8 |     fgets(S);
      |     ^~~~~
In file included from main.c:1:
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
main.c:9:5: error: too few arguments to function 'fgets'
    9 |     fgets(T);
      |     ^~~~~
/usr/include/stdio.h:654:14: note: declared here
  654 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
      |              ^~~~~
Language: Java

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

}


Compiler output:
Main.java:18: error: illegal start of type
 import java.util.*;
 ^
Main.java:18: error: <identifier> expected
 import java.util.*;
                  ^
2 errors
Language: Java

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


Compiler output:
Main.java:18: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:18: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors
Language: Java

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


Compiler output:
Main.java:18: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:18: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors
Language: Java

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


Compiler output:
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors
Language: Java

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


Compiler output:
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors
Language: Java

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


Compiler output:
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors
Language: Java

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


Compiler output:
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                    ^
Main.java:14: error: <identifier> expected
  System.out.println(b?"Yes""No");
                      ^
2 errors