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

#include <iostream>
#include <string>
using namespace std;
int main() {
  string a, b, c;
  cin >> a;
  cin >> b;
  c = c.append(a, 0, a.length() - 1);
  d = c.append(a, 1, a.length());
  if (c == b || d==b)
    cout << "Yes";
  else
    cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d = c.append(a, 1, a.length());
      |   ^
Language: C

#include<stdio.h>
 
int main(void){
 char s[11];
  char t[11];
 scanf("%s",s);
 scanf("%s",t);
  int sizes =sizeof(s)/sizeof(int);
  int sizet = sizeof(t)/sizeof(int);
if(sizes==sizet){
printf("YES\n");
}else{"NO\n"};
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before '}' token
   12 | }else{"NO\n"};
      |             ^
      |             ;
Language: C++

#include <iostream>
using namespace std;

int main() {
	char name1[10], name2[11];
	int x;

	cin >> name1 >> name2;

	if (strlen(name1) >= strlen(name2)) {
		cout << "No";
		exit(0);
	}

	for (int i = 0; i < 11; i++) {
		if (name1[i]!='\0' && name1[i] != name2[i]) {
			cout << "No";
			exit(0);
		}
		else if (name1[i] == '\0') {
			x = i;
			break;
		}
	}

	if (name1[x] == '\0' && name2[x] != '\0' && name2[x+1] == '\0') cout << "Yes";
	else cout << "No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'strlen' was not declared in this scope
   10 |         if (strlen(name1) >= strlen(name2)) {
      |             ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

#include<stdio.h>
 
int main(void){
 char s[11];
  char t[11];
 scanf("%s",s);
 scanf("%s",t);
  int sizes =sizeof(s)/sizeof(int);
  int sizet = sizeof(t)/sizeof(int);
if(sizes==sizet){
printf("YES\n");
}else{"NO\n"}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:13: error: expected ';' before '}' token
   12 | }else{"NO\n"}
      |             ^
      |             ;
Language: Java

import java.util.Scanner;

public class Resisration{
    public static void main(String[] args){
        
        Scanner sc = new Scanner(System.in);
        String str11 = sc.nextLine();
        String[] str1 = str11.split("");

        String str21 = sc.nextLine();
        String[] str2 = str21.split("");

        String ans = "";
        if(str1.length>10){
            ans = "No";
        }else if((str1.length+1) != str2.length){
            ans="No";
        }else if(str1[str1.length-1].equals(str2[str1.length-1])){
            for(int i=0; i<(str1.length-1); i++){
                if(!(str1[i].equals(str2[i]))){
                    ans = "No";
                    break;
                }
            }
            if(ans.equals("")){
                ans="Yes";
            }
        }
        System.out.println(ans);
    }
}

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

import java.util.Scanner;

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


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

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

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


#include<bits/stdc++.h>
#include<iostream>
#include<string.h>
using namespace  std;
int main(){


   string s1,s2;
   cin>>s1;
   cin>>s2;

int l=s2.size();
char m=s2.at(l-1);


//char ch = s2[s2.size()-1];
//strcat(s1, s2[s2.size()-1]);

s1.append(1,m);
cout<<s1<<endl;

if(s1!=s2){
cout<<"No"<<endl;
}
else{
cout<<"Yes"<<endl;
}
}



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

#include <stdio.h>
void solve();
int main(){
  char str_s[256];
  char str_t[256];
  scanf("%s%s/n",str_s,str_t);
  solve(){
  bool f = true;
  for(int i=0;str_s[i]!='/0';i++){
    if(str_s[i]!=str_s[i]){
      f = false;
    }
  }
  if(f) puts("Yes");
  else puts("No");
  }
  return 0;}


Compiler output:
a.cc:9:25: warning: multi-character character constant [-Wmultichar]
    9 |   for(int i=0;str_s[i]!='/0';i++){
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before '{' token
    7 |   solve(){
      |          ^
      |          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   T.at(i - 1) = " ";
      |                 ^~~
      |                 |
      |                 const char*
Language: C++

#include <stdio.h>
int main(){
  char str_s[256];
  char str_t[256];
  scanf("%s%s/n",str_s,str_t);
  void solve(){
  bool f = true;
  for(int i=0;str_s[i]!='/0';i++){
    if(str_s[i]!=str_s[i]){
      f = false;
    }
  }
  if(f) puts("Yes");
  else puts("No");
  }
  return 0;}

Compiler output:
a.cc:8:25: warning: multi-character character constant [-Wmultichar]
    8 |   for(int i=0;str_s[i]!='/0';i++){
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |   void solve(){
      |               ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
    7 |   T.at(i - 1) = ""
      |                 ^~
      |                 |
      |                 const char*
a.cc:7:19: error: expected ';' before 'if'
    7 |   T.at(i - 1) = ""
      |                   ^
      |                   ;
    8 |   if (S == T)
      |   ~~               
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n); i++)
#define FOR(i,x,n) for(int i=x; i<(n); i++)
#define ALL(n) begin(n),end(n)
#define MOD 1000000007
 
typedef long long ll;
typedef unsigned int ui;
typedef unsigned long long ull;
template <class T>
// void print(T& x){printf("%d\n", x);}
// void printvec(vector<int> a){
//     rep(i, a.size()-1){
//         printf("%d ", a[i]);
//     }
//     printf("%d\n", a[a.size()-1]);
// }
 
int main()
{
    char s[10], t[10];
    scanf("%s", s);
    scanf("%s", t);

    int i = 0;
    bool flag = true;
    while(s[i]!='\0'){
        if(s[i]!=t[i]){
            flag = false;
            break;
        }
        i++;
    }
    if(flag) printf("Yes\n");
    else printf("No\n");
    return 0;
}

Compiler output:
a.cc:20:5: error: cannot declare '::main' to be a template
   20 | int main()
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#include <string.h>
#include <iostream>
using namespace std;
int main(int argc, char const *argv[])
{
	string s,t;
	cin>>s>>t;
	int x=t.size();
	t[x-1]='\0';
	if(strcmp(s,t)==0){
		cout<<"Yes"<<endl;
	}
	else
		cout<<"No"<<endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:19: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   11 |         if(strcmp(s,t)==0){
      |                   ^
      |                   |
      |                   std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C

#include <stdio.h>
#include <limits.h>
#include <string.h>
int main() {
    char S[10], T[127];
    int i;

    scanf("%s %s", S, T);
    for (i = 0; S[10] != '\0';++i){}

    switch (i%10) {
        case 1 :if(srncmp(S,T,1)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 2 :if(srncmp(S,T,2)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 3 :if(srncmp(S,T,3)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 4 :if(srncmp(S,T,4)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 5 :if(srncmp(S,T,5)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 6 :if(srncmp(S,T,6)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 7 :if(srncmp(S,T,7)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 8 :if(srncmp(S,T,8)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 9 :if(srncmp(S,T,9)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 0 :if(srncmp(S,T,10)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: implicit declaration of function 'srncmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   12 |         case 1 :if(srncmp(S,T,1)==0)
      |                    ^~~~~~
      |                    strncmp
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(){
int i;
char a[100];
char b[100];
fgets(a,sizeof(a),stdin)
printf("%s",a);
gets(b,sizeof(b),stdin)
printf("%s",b);
for(i=0;i<strlen(a);i++){
a[i]==b[i];
}
if(i==strlen(a)){
printf("Yes");
}
else{
printf("No");
}

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:8:25: error: expected ';' before 'printf'
    8 | fgets(a,sizeof(a),stdin)
      |                         ^
      |                         ;
    9 | printf("%s",a);
      | ~~~~~~                   
main.c:10:1: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
   10 | gets(b,sizeof(b),stdin)
      | ^~~~
      | fgets
main.c:10:24: error: expected ';' before 'printf'
   10 | gets(b,sizeof(b),stdin)
      |                        ^
      |                        ;
   11 | printf("%s",b);
      | ~~~~~~
Language: C

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

int main()
{
    char S[16], T[16];
    int i, n = 0;

    scanf_s("%s", &S, 10);
    scanf_s("%s", &T, 10);

    for (i = 0; i < strlen(S); i++)
    {
        if (S[i] == T[i])
            n++;
    }

    if (n + 1 == strlen(T))
    {
        puts("Yes");
    }
    else
    {
        puts("No");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |     scanf_s("%s", &S, 10);
      |     ^~~~~~~
      |     scanf
Language: C

#include <stdio.h>
#include <limits.h>
#include <string.h>
int main() {
    char S[10], T[127];
    int i;

    scanf("%s %s", &S, &T);
    for (i = 0; S[10] != '\0';++i){}

    switch (i%10) {
        case 1 :if(srncmp(S,T,1)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 2 :if(srncmp(S,T,2)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 3 :if(srncmp(S,T,3)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 4 :if(srncmp(S,T,4)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 5 :if(srncmp(S,T,5)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 6 :if(srncmp(S,T,6)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 7 :if(srncmp(S,T,7)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 8 :if(srncmp(S,T,8)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 9 :if(srncmp(S,T,9)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 0 :if(srncmp(S,T,10)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:20: error: implicit declaration of function 'srncmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   12 |         case 1 :if(srncmp(S,T,1)==0)
      |                    ^~~~~~
      |                    strncmp
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:31: error: expected ')' before '\U0000ff09'
    6 |     for(int i=0;i<s.size();i++）
      |        ~                      ^~
      |                               )
a.cc:6:31: error: '\U0000ff09' was not declared in this scope
    6 |     for(int i=0;i<s.size();i++）
      |                               ^~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(){
  int i,n = 0,k = 0;
  char s[10] = {};
  char t[10] = {};
  for(i = 0;i < 10 ;i++){
    scanf("%c", &s[i]);
    ++n;
    if(s[i]=='\n')break;}

  for(i = 0;i < 10;i++){
    scanf("%c", &t[i]);
    ++k;
    if(t[i]=='\n')break;}
 
  for(i=0;i<n;i++){
	if(n==k+1){
		if(s[i] == t[i] )
			continue;
  		else  
			printf("No");
			break;
		}
 
	else printf("No");
	     break;
}
  

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

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

long long main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    long long S;
    cin >> S;

    pair<string,long long> brackets;
    std::vector<pair<long long,long long>> offsets;
    bool opening = false;
    for(long long i = 0; i < S; ++i){
        string s;
        cin >> s;
        pair<long long,long long> eff(0,0);
        for(long long j = 0; j < s.size(); ++j) {
            if(s[j]==')'){
                if(eff.second == 0){
                    eff.first++;
                }else{
                    eff.second--;
                }
            }else{
                eff.second++;
            }
        }
        if(eff.first == 0){
            opening = true;
        }
        if(eff.first!=0||eff.second!=0){
            offsets.push_back(eff);
        }
    }

    if(!opening){
        cout << "No";
        return 0;
    }
    sort(&offsets[0],&offsets[offsets.size()-1] ,[](const pair<long long,long long> &p1 ,const pair<long long,long long> &p2){
        return p2.second<p1.second;
    });

    long openBrackets = 0;
    for(long long i = 0; i < offsets.size(); ++i){
        openBrackets += offsets[i].second-offsets[i].first;
    }
    if(!openBrackets){
        cout << "Yes";
    }else{
        cout << "No";
    }
    return 0;
}

Compiler output:
cc1plus: error: '::main' must return 'int'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator=' (operand types are 'std::__cxx11::basic_string<char>::iterator' and 'const char [1]')
    6 |   T.end() = "";
      |             ^~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note: candidate: 'constexpr __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >& __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >::operator=(const __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&)'
 1038 |     class __normal_iterator
      |           ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note:   no known conversion for argument 1 from 'const char [1]' to 'const __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&'
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note: candidate: 'constexpr __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >& __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >::operator=(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&&)'
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note:   no known conversion for argument 1 from 'const char [1]' to '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&&'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: no match for 'operator=' (operand types are 'std::__cxx11::basic_string<char>::iterator' and 'const char [2]')
    6 |   T.end() = " ";
      |             ^~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:67,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note: candidate: 'constexpr __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >& __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >::operator=(const __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&)'
 1038 |     class __normal_iterator
      |           ^~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note:   no known conversion for argument 1 from 'const char [2]' to 'const __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&'
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note: candidate: 'constexpr __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >& __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >::operator=(__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&&)'
/usr/include/c++/14/bits/stl_iterator.h:1038:11: note:   no known conversion for argument 1 from 'const char [2]' to '__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >&&'
Language: C

#include <stdio.h>
#include <limits.h>
#include <string.h>
int main() {
    char S[10], T[127];
    int i;

    scanf("%s %s", &S[10], &T[127]);
    for (i = 0; S[10] != '\0';++i){}

    switch (i%10) {
        case 1 :if(srncmp(S,T,1)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 2 :if(srncmp(S,T,2)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 3 :if(srncmp(S,T,3)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 4 :if(srncmp(S,T,4)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 5 :if(srncmp(S,T,5)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 6 :if(srncmp(S,T,6)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 7 :if(srncmp(S,T,7)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 8 :if(srncmp(S,T,8)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 9 :if(srncmp(S,T,9)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
        case 0 :if(srncmp(S,T,10)==0)
                printf("Yes"); 
                else
                    printf("No");
                break;
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:20: error: implicit declaration of function 'srncmp'; did you mean 'strncmp'? [-Wimplicit-function-declaration]
   12 |         case 1 :if(srncmp(S,T,1)==0)
      |                    ^~~~~~
      |                    strncmp
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'erace'; did you mean 'erase'?
    6 |   T.erace( --.end());
      |     ^~~~~
      |     erase
a.cc:6:14: error: expected primary-expression before '.' token
    6 |   T.erace( --.end());
      |              ^
Language: Java

import java.util.*;
	public class Solution{
 		public static Scanner scanner = new Scanner(System.in);
		public static void main(String[] args)
        {
          String S = scanner.nextLine();
          String T = scanner.nextLine();
          if(res(S,T)){
            System.out.println("Yes");
          }
          else{
            System.out.println("No");
          }
          
          
        }
    public static boolean res(String S , String T){
      if(S.eqauls(""))
          {
            return true;
          }
          if(S.length() > T.length()){
            return false;
          }
          
            String res = "";
            int arr[] = new int[128];
            
            for(char t : T.toCharArray()){
              ++arr[t];
            }
            
            for(char s : S.toCharArray()){
              --arr[s];
                if(arr[s] < 0)
                {
                 return false; 
                }
            }
            
           return true;
    }
}

Compiler output:
Main.java:2: error: class Solution is public, should be declared in a file named Solution.java
	public class Solution{
	       ^
Main.java:18: error: cannot find symbol
      if(S.eqauls(""))
          ^
  symbol:   method eqauls(String)
  location: variable S of type String
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'T'
    7 |   T.at(i) = " ";
      |   ^
Language: C++

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

int main() {
	// your code goes here
	int s,t;
	cin>>s>>t;
	for(int i=0;i<s.length();i++){
		if(s[i]!=t[i]){
			cout"No"<<endl;
			return 0;
		}
	}
	cout<<"Yes"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: request for member 'length' in 's', which is of non-class type 'int'
    8 |         for(int i=0;i<s.length();i++){
      |                         ^~~~~~
a.cc:9:21: error: invalid types 'int[int]' for array subscript
    9 |                 if(s[i]!=t[i]){
      |                     ^
a.cc:9:27: error: invalid types 'int[int]' for array subscript
    9 |                 if(s[i]!=t[i]){
      |                           ^
a.cc:10:29: error: expected ';' before string constant
   10 |                         cout"No"<<endl;
      |                             ^~~~
      |                             ;
Language: C++

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

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

#include <stdio.h>
int main(){
  char str_s[256];
  char str_t[256];
  scanf("%s%s/n",str_s,str_t);
  void solve(){
  for(int i=0;str_s[i]!='/0';i++){
    if(str_s[i]==str_t[i]);
    else{
      puts(No);
      return 0;}
  }
    puts(Yes);return 0;
  }
      


Compiler output:
a.cc:7:25: warning: multi-character character constant [-Wmultichar]
    7 |   for(int i=0;str_s[i]!='/0';i++){
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:6:15: error: a function-definition is not allowed here before '{' token
    6 |   void solve(){
      |               ^
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:2:11: note: to match this '{'
    2 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
  string s,s1;
  cin >> s >> s1;
  
  t.erase(t,length()-1,1);
  
  if(t == s)
    cout << "Yes" << endl;
  else 
    cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 't' was not declared in this scope
   10 |   t.erase(t,length()-1,1);
      |   ^
a.cc:10:13: error: 'length' was not declared in this scope
   10 |   t.erase(t,length()-1,1);
      |             ^~~~~~
Language: C++

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

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

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

Compiler output:
a.cc: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;
char s[15], t[15];
int main() {
	scanf("%s", s);
	scanf("%s", t);
	/*cin >> s;
	cin >> t;*/
	int lens = strlen(s);
	int lent = strlen(t);
	t[lens] = 0;
	t[lens - 1] = 0;
#if lent - lens != 1
		cout << "No";
		return 0;
#endif
	else {
		if (strcmp(s, t) != 0) {
			cout << "No";
			return 0;
		}
	}
	cout << "Yes";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else {
      |         ^~~~
Language: Java

import java.util.*;

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

Compiler output:
Main.java:3: 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: C++

#include <bits/stdc++.h>
using namespace std;
char s[15], t[15];
int main() {
	scanf("%s", s);
	scanf("%s", t);
	/*cin >> s;
	cin >> t;*/
	int lens = strlen(s);
	int lent = strlen(t);
	t[lens] = 0;
	t[lens - 1] = 0;
#if (lent - lens != 1)
		cout << "No";
		return 0;
#endif
	else {
		if (strcmp(s, t) != 0) {
			cout << "No";
			return 0;
		}
	}
	cout << "Yes";
	return 0;
}

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

#include <stdio.h>
#include <string.h>
int main(){
int i;
char a[100];
char b[100];
if(fgets(a,sizeof(a),stdin)!=NULL){
if(fgets(b,sizeof(b),stdin)!=NULL){
for(i=0;i<strlen(a);i++){
a[i]==b[i];
}
if(i==strlen(a)){
printf("Yes");
}
else{
printf("No");
}

}
}



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

import java.util.*;
public class sol
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    String x=sc.next();
    String y=sc.next();
    x+=y.charAt(y.length()-1);
    if(x.equals(y))
      System.out.println("Yes");
    else
      System.out.println("No");
  }
}

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

#include <bits/stdc++.h>
using namespace std;
string s, t;
string a, x;
int main() {
	cin >> s;
	cin >> t;
	for (int i = 1; i <= s.length(); i++) a[i] = s[i];
	for (int i = 1; i < t.length(); i++) x[i] = t[i];
	if (strcmp(a, x) == 0) printf("Yes");
	else printf("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
   10 |         if (strcmp(a, x) == 0) printf("Yes");
      |                    ^
      |                    |
      |                    std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
Language: C++

#include<iostream>
using namespace std;
int main(){
  string a,b;
  cin>>a;
  cin>>b;
  int i=0;
  bool flag=false;
  while(a[i]!='\0')
  {
    if(a[i]!=b[i])
    {flag=true;
    break;}
    i++;
  }
  if(flag)
    cout<<"No"<<"\n";
  else
      cout<<"Yes"<<"\n";}}
       


Compiler output:
a.cc:19:26: error: expected declaration before '}' token
   19 |       cout<<"Yes"<<"\n";}}
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
inline int read()
{
	int n=0;bool b=0;char c=getchar();
	while(c<'0'||c>'9'){if(c=='-')b=1;c=getchar();}
	while(c>='0'&&c<='9')n=(n<<3)+(n<<1)+(c^48),c=getchar();
	return b?-n:n;
}
string s,t;
int n;
main()
{
	cin>>s>>t;
	n=s.size();
	for(int i=0;i<n;++i)
	{
		if(s[i]!=t[i]){puts("No");return 0;
	}
	puts("Yes");
	return 0;
}


Compiler output:
a.cc:12:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   12 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:13:1: note: to match this '{'
   13 | {
      | ^
Language: C

#include <stdio.h>

typedef ll long long;

int main(void) {
  int n, m, x;
  scanf("%d%d%d", &n, &m, &x);
  ll c[13] = {0};
  ll a[13][13] = {0};
  //ll dp[13][13] = {0};
  for(int i = 1;i <= n;i++) {
    scanf("%lld", c + i);
    for(int j = 1;j <= m;j++) {
      scanf("%lld", &a[i][j]);
      a[i][j] += a[i-1][j];
    }
  }
  ll ret = 0;
  for(int i = 1;i <= n;i++) {
    for(int j = i;j <= n;j++) {
      int flag = 1;
      for(int k = 1;i <= m;k++) {
        if(a[j][k] - a[i][k] < x) {
          flag = 0;
        }
      }
      if(flag) {
        if(ret > c[j] - c[i]) {
          ret = c[j] - c[i];
        }
      }
    }
  }
  printf("%lld\n", ret);
  return 0;
}

Compiler output:
main.c:3:11: error: expected ';' before 'long'
    3 | typedef ll long long;
      |           ^~~~~
      |           ;
main.c:3:1: warning: useless type name in empty declaration
    3 | typedef ll long long;
      | ^~~~~~~
main.c: In function 'main':
main.c:8:3: error: unknown type name 'll'
    8 |   ll c[13] = {0};
      |   ^~
main.c:9:3: error: unknown type name 'll'
    9 |   ll a[13][13] = {0};
      |   ^~
main.c:18:3: error: unknown type name 'll'
   18 |   ll ret = 0;
      |   ^~
Language: C++

#include<bits/stdc++.h>
using namespace std ;
int main()
{
    int l1,l2,res;
    char s1[100];
    char s2[100];
    while(gets(s1))
    {
        gets(s2);
        l1=strlen(s1) ;
        l2=strlen(s2) ;
        s2[strlen(s2)-1]='\0';
        res=strcmp(s1,s2);
        if(res==0)
        {
            cout<<"Yes"<<endl;
        }
        else
        {
            cout<<"No"<<endl;
        }
    }
    return 0 ;
}


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

import java.util.*;
public class a{
	public static void main(String[] args)
	{
		Scanner in=new Scanner(System.in);
		String s=in.nextLine();
		String t=in.nextLine();
		boolean flag=true;
		for(int i=0;i<s.length();i++)
		{
			if(s.charAt(i)!=t.charAt(i))
				flag=false;
		}
		System.out.println((flag?("Yes"):("No")));
	}
}

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

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

int main(){
    string s;
    cin >> s;
    string t;
    cin >> t;

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

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

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

int main(){
  char s[10], t[11];
  int tn, sn;

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

  /*tn = strlen(t);
  sn = strlen(s);
  printf("%d, %d", tn, sn);*/
  if(strlen(s)<1||strlen(s)>10){
    printf("No\n");
    return 0;
  }
  for(tn = 0; tn<=10; tn++){
    if(t[tn]<97||t[tn]>123){
      printf("No\n");
      return 0;
  }

  if(strlen(s) != (strlen(t)-1)){
    printf("No\n");
    return 0;
  }else if(strstr(t, s) == NULL){
    printf("No\n");
    return 0;
  }else if(s[0] != t[0]){
    printf("No\n");
    return 0;
  }else{
    printf("Yes\n");
  }

  return 0;
}


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

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'string' was not declared in this scope
    4 |   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 | using namespace std;
a.cc:7:22: error: 's' was not declared in this scope
    7 |   for(int i = 0; i < s.size(); i++) {
      |                      ^
a.cc:8:11: error: expected ';' before 's'
    8 |     string s, t;
      |           ^~
      |           ;
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     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 | using namespace std;
a.cc:9:17: error: 't' was not declared in this scope
    9 |     cin >> s >> t;
      |                 ^
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:12:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:24: error: 'endl' was not declared in this scope
   12 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout << "No" << endl;
      |       ^~~~
a.cc:14:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:23: error: 'endl' was not declared in this scope
   14 |       cout << "No" << endl;
      |                       ^~~~
a.cc:14:23: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>

int main(void){
 char s[12];
  char t[14];
  int a=0;
  int b=0;
 scanf("%s",s);
 scanf("%s",t);
if(s==t+"%c"){
printf("YES\n");
}else{"NO\n"}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: invalid operands to binary + (have 'char *' and 'char *')
   10 | if(s==t+"%c"){
      |     ~~ ^
      |     |  |
      |     |  char *
      |     char *
main.c:12:13: error: expected ';' before '}' token
   12 | }else{"NO\n"}
      |             ^
      |             ;
Language: C

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


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

#include <stdio.h>
int main(){
  int i,n=0;
  int s[10]=0;
  int t[10]=0;
  for(i=0;i<10;i++){
    scanf("%c",&s[i]);
    n++;}
  for(i=0;i<10;i++)
    scanf("%c",&t[i]);
  for(i=0;i<10;i++){
	if(s[i] == t[i] && t[n+2]==0)
		printf("Yes");
  	else  
		printf("No");
	}
}
  

Compiler output:
main.c: In function 'main':
main.c:4:13: error: invalid initializer
    4 |   int s[10]=0;
      |             ^
main.c:5:13: error: invalid initializer
    5 |   int t[10]=0;
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: invalid initializer
    4 |   char s[10]=0;
      |              ^
main.c:5:14: error: invalid initializer
    5 |   char t[10]=0;
      |              ^
Language: C++

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

int main()
{
  string s,t;
  cin >> s >> t;
  bool check = true;
  for (int i=0; i<s.size(); i++) check &= (s[i] == t[i]);
  if (check) cout << "Yes";
  else cout << "No";
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   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 | #incude<bits/stdc++.h>
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   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 | #incude<bits/stdc++.h>
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s >> t;
      |          ^
a.cc:7:15: error: 't' was not declared in this scope
    7 |   cin >> s >> t;
      |               ^
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |   if (check) cout << "Yes";
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:8: error: 'cout' was not declared in this scope
   11 |   else cout << "No";
      |        ^~~~
a.cc:11:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner scanner = new Scanner(System.in);
        
        String id = scanner.nextLine();
        StringBuilder addOneId = new StringBuilder(scanner.nextLine());

        StringBuilder aoi = new StringBuilder(addOneId.deleteCharAt(addOneId.length()-1));

        
        if(id.equals(aoi.toString())) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

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

#include <stdio.h>

int main(){
  char str_s[];
  char str_t[];
  scanf("%s%s/n",str_s,str_t);
  void solve(){
  int i=0;
  int n;
  n = sizeof(str_t);
  while(0=<i<n-2){
    if(str_s[i]==str_s[i]){
      i++;}
    else if{
      puts(No);
      return 0;}
  }}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: storage size of 'str_s' isn't known
    4 |   char str_s[];
      |        ^~~~~
a.cc:5:8: error: storage size of 'str_t' isn't known
    5 |   char str_t[];
      |        ^~~~~
a.cc:7:15: error: a function-definition is not allowed here before '{' token
    7 |   void solve(){
      |               ^
a.cc:17:5: error: expected '}' at end of input
   17 |   }}
      |     ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
Int cnt=0;
string c,d;
cin>>c>>d;
for(int i=0;i<c.size();i++)
{
if(c[i]==d[i]) cnt++;}
if(cnt==c.size())cout<<"YES"<<endl; 
else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:1: error: 'Int' was not declared in this scope; did you mean 'int'?
    5 | Int cnt=0;
      | ^~~
      | int
a.cc:10:16: error: 'cnt' was not declared in this scope; did you mean 'int'?
   10 | if(c[i]==d[i]) cnt++;}
      |                ^~~
      |                int
a.cc:11:4: error: 'cnt' was not declared in this scope; did you mean 'int'?
   11 | if(cnt==c.size())cout<<"YES"<<endl;
      |    ^~~
      |    int
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:14: error: invalid initializer
    4 |   char s[10]=0;
      |              ^
main.c:5:14: error: invalid initializer
    5 |   char t[10]=0;
      |              ^
main.c:12:9: error: expected expression before 'for'
   12 |         for(i=0;i<10;i++)(s[i] == t[i] && t[n+2]==0)
      |         ^~~
Language: C++

#include<iostream>
#include<cstring>
using namespace std ;
int main(){
  char s1[] ="";
  cin>>s1 
  char s2[] ="";
   cin>>s2;
  int i = 0;
  for(; i < strlen(s1) ; i++){
    if(s1[i] != s2[i]){
      cout<<"No";
      break;
    }
  }
  cout<<"Yes";
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected ';' before 'char'
    6 |   cin>>s1
      |          ^
      |          ;
    7 |   char s2[] ="";
      |   ~~~~    
a.cc:8:9: error: 's2' was not declared in this scope; did you mean 's1'?
    8 |    cin>>s2;
      |         ^~
      |         s1
Language: C

#include<stdio.h>
#include<string.h>
int main()
{
    char s1[12],s2[12];
    int i,flag=0;
    scanf("%s",&s1);
    scanf("%s",&s2);
    //int l=strlen(s1);
    printf("%d\n",l);
    for(i=0; i<strlen(s2)-1; i++)
    {
        if(s1[i]==s2[i])
            flag++;
    }
    //printf("%d\n",flag);
    if(flag==l)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:19: error: 'l' undeclared (first use in this function)
   10 |     printf("%d\n",l);
      |                   ^
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


int main()
{
char a[],b[];
  
  gets(a);
  gets(b);
  int* z;
  z=strstr(b,a);
  if(*z==NULL)
    printf("No\n");
  else
    printf("yes\n");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:6: error: array size missing in 'a'
    7 | char a[],b[];
      |      ^
main.c:7:10: error: array size missing in 'b'
    7 | char a[],b[];
      |          ^
main.c:9:3: error: implicit declaration of function 'gets'; did you mean 'fgets'? [-Wimplicit-function-declaration]
    9 |   gets(a);
      |   ^~~~
      |   fgets
main.c:12:5: error: implicit declaration of function 'strstr' [-Wimplicit-function-declaration]
   12 |   z=strstr(b,a);
      |     ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'strstr'
    2 | #include<stdio.h>
  +++ |+#include <string.h>
    3 | 
main.c:12:5: warning: incompatible implicit declaration of built-in function 'strstr' [-Wbuiltin-declaration-mismatch]
   12 |   z=strstr(b,a);
      |     ^~~~~~
main.c:12:5: note: include '<string.h>' or provide a declaration of 'strstr'
main.c:12:4: error: assignment to 'int *' from incompatible pointer type 'char *' [-Wincompatible-pointer-types]
   12 |   z=strstr(b,a);
      |    ^
main.c:13:8: warning: comparison between pointer and integer
   13 |   if(*z==NULL)
      |        ^~
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
    char s1[12],s2[12];
    int i,flag=0;
    scanf("%s",&s1);
    scanf("%s",&s2);
    //int l=strlen(s1);
    printf("%d\n",l);
    for(i=0; i<strlen(s2)-1; i++)
    {
        if(s1[i]==s2[i])
            flag++;
    }
    //printf("%d\n",flag);
    if(flag==l)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: 'l' was not declared in this scope
   10 |     printf("%d\n",l);
      |                   ^
Language: C

#include<bstdlib.h>
#include<stdio.h>


int main()
{
char a[],b[];
  
  gets(a);
  gets(b);
  int* z;
  z=strstr(b,a);
  if(*z==NULL)
    printf("No\n");
  else
    printf("yes\n");
  return 0;
}


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