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

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

int main(){

string a,b;
cin>>a;
  b="YAKI"
  for(int i=0;i<4;i++){
if(a[i]==b[i]){
  if(i=3){
  cout<<"Yes"<<endl;
  }
}
    else{
    cout<<"No"<<endl;
    break;
    }
  }
 

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'for'
    8 |   b="YAKI"
      |           ^
      |           ;
    9 |   for(int i=0;i<4;i++){
      |   ~~~      
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<4;i++){
      |               ^
Language: C++

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

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

#define FOR(i, n, m) for (ll(i) = (m); (i) < (n); ++(i))
#define REP(i, n) FOR(i, n, 0)
#define OF64 std::setprecision(10)

const ll MOD = 1000000007;
const ll INF = (ll)1e15;

char C[4] = {'Y', 'A', 'K', 'I'};
string solve(string s)
{
    if (s.length() < 4)
        return "No";
    REP(i, 4)
    {
        if (C[i] != S[i])
            return "No";
    }
    return "Yes";
}
int main()
{
    string S;
    cin >> S;
    cout << solve(S) << endl;
    return 0;
}

Compiler output:
a.cc: In function 'std::string solve(std::string)':
a.cc:21:21: error: 'S' was not declared in this scope
   21 |         if (C[i] != S[i])
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
const long long mod = pow(10, 9) + 7;
const long long INF = 1LL << 60;
template <class T> bool chmin(T& a, T b){if (a > b) {a = b; return true;} return false;}
template <class T> bool chmax(T& a, T b){if (a < b) {a = b; return true;} return false;}
int divCeil(int A, int B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, int B) {return (A + (B - 1)) / B;}
long long divCeil(int A, long long B) {return (A + (B - 1)) / B;}
long long divCeil(long long A, long long B) {return (A + (B - 1)) / B;}

int main()
{
  char y, a, k, i;
  cin >> y >> a >> k >> i;
  
  string ans = "No";
  if (y == 'Y' && a == 'A' && k == 'k' && I == 'i') ans = "Yes";
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:43: error: 'I' was not declared in this scope
   18 |   if (y == 'Y' && a == 'A' && k == 'k' && I == 'i') ans = "Yes";
      |                                           ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long unsigned int ll;
 
int main() {
 
  string a,b,c;
  cin >> a;
  
  if(a.length<4){
  	cout << "No" <<endl;
    return 0;
  }
  if(a.substr(0,4)=="YAKI"){
  	cout << "Yes" <<endl;  
  }else{

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


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

#include <bits/stdc++.h>

using namespace std;
using llong = long long;
using P = pair<llong, llong>;

#define BE(x) x.begin(), x.end()

const llong inf = llong(1e18)+7;
const llong mod = 1e9+7;

int main(){
	strintg s;
	cin >> s;
	if(s[0] == 'Y' && s[1] == 'A' && s[2] == 'K' && s[3] == 'I')
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'strintg' was not declared in this scope; did you mean 'sprintf'?
   13 |         strintg s;
      |         ^~~~~~~
      |         sprintf
a.cc:14:16: error: 's' was not declared in this scope
   14 |         cin >> s;
      |                ^
Language: C++

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
const int MX = 200005;
#define RET(ans) {cout<<ans<<endl;return 0;} 

    // 二次元ベクターの基本
    /*
    vector<vector<int>> dp; // 宣言
    dp.resize(n); // 1次元めの要素数決定
    dp[i].push_back(int); // プッシュバック
    rep(i,n){
        sort(dp[i].begin(),dp[i].end()); // 二次元めを昇順ソート
    }
    */

    // 整数スキャン（複数）
    /*
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);

    // n個の整数のスキャン
    /*
    ll a[n] = {};
    rep(i,n){
        scanf("%lld",&a[i]);
    }
    */

    // 文字列スキャン
    /*
    string s; cin >> s;
    */

    // n個の文字列スキャン
    /*
    vector<string> slist;
    rep(i,n){
        string s; cin >> s;
        slist.push_back(s);
    }
    */

int main() {
    string s; cin >> s;
    if(s.size()>=4&&s[0]=='Y'&&s[1]'A'&&s[2]=='K'&&s[3]=='I')yn;
    return 0;
}
 
 


Compiler output:
a.cc: In function 'int main()':
a.cc:94:36: error: expected ')' before 'A'
   94 |     if(s.size()>=4&&s[0]=='Y'&&s[1]'A'&&s[2]=='K'&&s[3]=='I')yn;
      |       ~                            ^~~
      |                                    )
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<string>
#include<vector>
#include<set>
#include<cctype>
#define ld long double
#define ll long long int
#define ull unsigned long long int
using namespace std;
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const long long INF=1LL<<60;


int main(void){
	ios::sync_with_stdio(false); cin.tie(0);
	
	string s;
	cin>>s;
	if(s.length()>=4&&s.substr(0,4)="YAKI")cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: no match for 'operator&&' (operand types are 'bool' and 'std::__cxx11::basic_string<char>')
   23 |         if(s.length()>=4&&s.substr(0,4)="YAKI")cout<<"Yes"<<endl;
      |            ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
      |                      |            |
      |                      bool         std::__cxx11::basic_string<char>
a.cc:23:25: note: candidate: 'operator&&(bool, bool)' (built-in)
   23 |         if(s.length()>=4&&s.substr(0,4)="YAKI")cout<<"Yes"<<endl;
      |            ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
a.cc:23:25: note:   no known conversion for argument 2 from 'std::__cxx11::basic_string<char>' to 'bool'
Language: C++

S=input()
  
if len(S)<4:
    print('No')
elif S[0:4]=='YAKI':
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('No')
      |           ^~~~
a.cc:5:14: warning: multi-character character constant [-Wmultichar]
    5 | elif S[0:4]=='YAKI':
      |              ^~~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('Yes')
      |           ^~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S=input()
      | ^
Language: C++

#include<ctsdio>
#include<cstring>
using namespace std;
int main(){
  char s[11];
  scanf("%s",s);
  int n=strlen(s);
  if(n>=4&&s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')
    printf("Yes\n");
  else
    printf("No\n");
}

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

#include <bits/stdc++.h>
#define rep(i, a, n) for(int i = a; i < n; i++)
#define repr(i, a, b) for(int i = a; i >= b; i--)
#define int long long
#define all(a) a.begin(), a.end()
#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
using namespace std;
typedef pair<int, int> P;
const int mod = 1000000007;
const int INF = 1e15;

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin >> s;
    if(s.substr(0, 4) == "YAKI") cout << "Yes" << endl;
    else cout << "No" << endl;TAKOYAKIYAK
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:31: error: 'TAKOYAKIYAK' was not declared in this scope
   19 |     else cout << "No" << endl;TAKOYAKIYAK
      |                               ^~~~~~~~~~~
Language: C

#include <cstdio>
char s[11];
int main()
{
    scanf("%s", s);
    if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') puts("Yes");
    else puts("No");
    return 0;
}


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

#pragma GCC optimize(3)
#include <bits/stdc++.h>
#include <cstring>
using namespace std;
char a[11];
int main()
{
    gets(a);
    if(a[0]=='Y'&&a[1]=='A'&&a[2]=='K'&&a[3]=='I') printf("Yes\n");
    else printf("No\n");
    return 0;
}


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

#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
char a[11];
int main()
{
    gets(a);
    if(a[0]=='Y'&&a[1]=='A'&&a[2]=='K'&&a[3]=='I') printf("Yes\n");
    else printf("No\n");
    return 0;
}


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

#pragma GCC optimize(3)
#include <bits/stdc++.h>
using namespace std;
char a[11];
int main()
{
    gets(a);
    puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(a);
      |     ^~~~
      |     getw
a.cc:8:11: error: 's' was not declared in this scope
    8 |     puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
      |           ^
Language: C++

#pragma GCC optimize(3)
#include <bits/stdc++.h>
char s[12];
using namespace std;
int main()
{
    gets(s);
    puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
}


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

#pragma GCC optimize(3)
#include <bits/stdc++.h>
char s[12];
int main()
{
    std::gets(s);
    puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'gets' is not a member of 'std'; did you mean 'getc'?
    6 |     std::gets(s);
      |          ^~~~
      |          getc
Language: C++

#pragma GCC optimize(3)
#include <bits/stdc++.h>
char s[12];
int main()
{
    gets(s);
    puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
}


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

#pragma GCC optimize(3)
#include <cstdio>
char s[12];
int main()
{
    gets(s);
    puts((s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')?"Yes":"No");
}


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

#include<iostream>
#include<cstdio>
using namespace std;
int main()
{
	int len;
	string s;
	cin>>s;
	len=s.size();
	if(len<=3)
	{
		cout<<"NO"<<endl;
		return 0;
	}
	if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&a[3]=='I')
	{
		cout<<"YES"<<endl;
		return 0;
	}
	else
		cout<<"NO"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:45: error: 'a' was not declared in this scope
   15 |         if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&a[3]=='I')
      |                                             ^
Language: C++

#include<cstdio>
#include<queue>
#include<utility>
#include<cstring>
#include<stack>
#include<algorithm>
#include<cmath>
#include<iostream>
#include<map>
#define MAX_N 100001
#define INF_INT 2147483647
#define INF_LL 9223372036854775807
#define REP(i,n) for(int i=0;i<(int)(n);i++)
using namespace std;
typedef long long int ll;
typedef pair<ll,ll> P;

int main()
{
  ll N,cnt=0,ma=0,sum;
  string S;
  cin >> S;
  if(S.size < 4){
    printf("No\n");
    return 0;
  }else{
    if(S.substr(0,4) == "YAKI"){
      printf("Yes\n");
    }else
      printf("No\n");
    return 0;
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:23:8: 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 '()' ?)
   23 |   if(S.size < 4){
      |      ~~^~~~
      |            ()
Language: C++

#include<bits/stdc++.h>
using namespace std；
char s[11];
int main(){
    gets(s);
    if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') printf("Yes\n");
    else  printf("No\n");
    return 0;
}

Compiler output:
a.cc:2:17: error: 'std\U0000ff1b' is not a namespace-name
    2 | using namespace std；
      |                 ^~~~~
a.cc:2:22: error: expected ';' before 'char'
    2 | using namespace std；
      |                      ^
      |                      ;
    3 | char s[11];
      | ~~~~                  
a.cc: In function 'int main()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     gets(s);
      |     ^~~~
      |     getw
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	string a;
	cin>>a;
	if(a[0]=='Y'&&a[1]='A'&&a[2]=='K'&&a[3]=='I')
		cout<<"Yes";
	else
		cout<<"No";
	cout<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: lvalue required as left operand of assignment
    7 |         if(a[0]=='Y'&&a[1]='A'&&a[2]=='K'&&a[3]=='I')
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
char s[101];
int main()
{
    cin>>s;
    if(s[0]='Y'&&s[1]='A'&&s[2]='K'&&s[3]='I') printf("Yes\n");
    else printf("No\n");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: lvalue required as left operand of assignment
    8 |     if(s[0]='Y'&&s[1]='A'&&s[2]='K'&&s[3]='I') printf("Yes\n");
      |                                 ~~~^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
using namespace std;
char s[101];
int main()
{
    cin>>s;
    if(s[0]='Y'&&s[1]='A'&&s[2]='K'&&s[3]='I') cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:36: error: lvalue required as left operand of assignment
    8 |     if(s[0]='Y'&&s[1]='A'&&s[2]='K'&&s[3]='I') cout<<"Yes"<<endl;
      |                                 ~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    char p[1000];
    gets(p);
    if(p[0]=='Y'&&p[1]=='A'&&p[2]=='K'&&p[3]=='I')
    else  pritf("No");
     
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    5 |     gets(p);
      |     ^~~~
      |     getw
a.cc:7:5: error: expected primary-expression before 'else'
    7 |     else  pritf("No");
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char s[11];
    gets(s);
    if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
    return 0;
}

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

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

int main() {
	string s, k = "YAKI";
	cin >> s;
	if(s[0] == 'Y' && s[1] == 'A' s[2] == 'K' && s[3] == 'I'){
		cout << "Yes" << endl;
		return 0;
	}
	cout << "No" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: expected ')' before 's'
    7 |         if(s[0] == 'Y' && s[1] == 'A' s[2] == 'K' && s[3] == 'I'){
      |           ~                          ^~
      |                                      )
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string s;
    cin>>s;
    if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') cout<<"Yes";
    else cout<<"No";
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before '}' token
   10 |     return 0
      |             ^
      |             ;
   11 | }
      | ~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string s;
    cin>>s;
    if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') cout<<"Yes";
    else cout<<"No"
    return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before 'return'
    9 |     else cout<<"No"
      |                    ^
      |                    ;
   10 |     return 0
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
//#include <Rem>

string st;

int main()
{
    cin>>st;
    if(st[0]=='Y' && st[1]=='A' && st[2]=='K' && st[3]=='I')
        puts("Yes");
    else 
        puts("No");
    return 0;
}

Compiler output:
a.cc:4:1: error: 'string' does not name a type; did you mean 'stdin'?
    4 | string st;
      | ^~~~~~
      | stdin
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     cin>>st;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:10: error: 'st' was not declared in this scope; did you mean 'std'?
    8 |     cin>>st;
      |          ^~
      |          std
Language: C++

#include<iostream>
#include<string>
#include<cstring>
using namespace std;
string S;
int main()
{
     cin>>s;
	 if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I') cout<<"YES";
	 else cout<<"NO";
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 's' was not declared in this scope
    8 |      cin>>s;
      |           ^
Language: C++

#include<iostream>
using namespace std;

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

    if(s.length() < 4){
        cout < "No" << endl;
    }else{
        if(s.substr(0,4) == "YAKI") cout << "Yes" << endl;
        else                        cout << "No" << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    9 |         cout < "No" << endl;
      |                ~~~~~^~~~~~~
Language: C++

 
#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
using namespace std;
typedef long long ll;
ll dx[] = { 1,1,0,-1,-1,-1,0,1 };
ll dy[] = { 0,1,1,1,0,-1,-1,-1 };
ll prime(ll x) {
	ll i;
	if (x < 2)return 0;
	else if (x == 2) return 1;
	if (x % 2 == 0) return 0;
	for (i = 3; i*i <= x; i += 2) {
		if (x%i == 0) return 0;
	}
	return 1;
}
ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}

ll MOD = 1000000007;
int main() {
	string S;
	cin >> S;
	if (S.substr(0, 4) == "YAKI")
		cout << "Yes" << endl;
	else 
		cout << "No" << endl;
}
#include"stdafx.h" 
#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
using namespace std;
typedef long long ll;
ll dx[] = { 1,1,0,-1,-1,-1,0,1 };
ll dy[] = { 0,1,1,1,0,-1,-1,-1 };
ll prime(ll x) {
	ll i;
	if (x < 2)return 0;
	else if (x == 2) return 1;
	if (x % 2 == 0) return 0;
	for (i = 3; i*i <= x; i += 2) {
		if (x%i == 0) return 0;
	}
	return 1;
}
ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}

ll MOD = 1000000007;
int main() {
	string S;
	cin >> S;
	if (S.substr(0, 4) == "YAKI")
		cout << "Yes" << endl;
	else 
		cout << "No" << endl;
}


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

#include"stdafx.h" 
#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstdio>
#include<ctype.h>
#include<stdio.h>
#include<set>
#include<vector>
#include<map>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<numeric>
#include<string>
using namespace std;
typedef long long ll;
ll dx[] = { 1,1,0,-1,-1,-1,0,1 };
ll dy[] = { 0,1,1,1,0,-1,-1,-1 };
ll prime(ll x) {
	ll i;
	if (x < 2)return 0;
	else if (x == 2) return 1;
	if (x % 2 == 0) return 0;
	for (i = 3; i*i <= x; i += 2) {
		if (x%i == 0) return 0;
	}
	return 1;
}
ll gcd(ll a, ll b) {
	if (a<b) { return gcd(b, a); }
	else if (a%b) { return gcd(b, a%b); }
	else { return b; }
}

ll MOD = 1000000007;
int main() {
	string S;
	cin >> S;
	if (S.substr(0, 4) == "YAKI")
		cout << "Yes" << endl;
	else 
		cout << "No" << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int s;
  cin >> s;
  if (s.substr(0, 4) == "YAKI") cout << "Yes" << endl;
  else cout << "NO" << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: request for member 'substr' in 's', which is of non-class type 'int'
    6 |   if (s.substr(0, 4) == "YAKI") cout << "Yes" << endl;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

#define EACH(i,a) for (auto& i : a)
#define FOR(i,a,b) for(int i=(int)a;i<(int)b;++i)
#define RFOR(i,a,b) for(int i=(int)b-1;i>=(int)a;--i)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define ALL(a) (a).begin(),(a).end()
#define debug(x) cerr << #x << ":" << x << endl;
#define OK(ok) cout << (ok ? "Yes" : "No") << endl;
typedef long long ll;

void CINT(){}
template <class Head,class... Tail>
void CINT(Head&& head,Tail&&... tail) {
  cin >> head; CINT(move(tail)...);
}
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)

const int INF = 1e9 + 1;
const int MOD = 1e9 + 7;
const int MAX_N = 1e5 + 1;


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

  stiring raw = "YAKI";
  SCIN(s);
  if (s.size() < 4) {
    OK(false);
    return 0;
  }
  bool ok = true;
  REP(i, 4) {
    if (s[i] != raw[i]) ok = false;
  }
  OK(ok);
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 'stiring' was not declared in this scope; did you mean 'stdin'?
   34 |   stiring raw = "YAKI";
      |   ^~~~~~~
      |   stdin
a.cc:42:17: error: 'raw' was not declared in this scope
   42 |     if (s[i] != raw[i]) ok = false;
      |                 ^~~
Language: C++

        #include <bits/stdc++.h>
            using namespace std;
         
        int main() {
          string S;
          cin >> S;
          
          if (S.at(0) =="Y") {
            if (S.at(1) =="A") {
              if (S.at(2) =="K") {
                if (S.at(3) =="I") {
                  cout << "Yes";
              }
            }
          }
        }
          else {
            cout << "No" << endl;
          }
          
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |           if (S.at(0) =="Y") {
      |               ~~~~~~~~^~~~~
a.cc:9:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |             if (S.at(1) =="A") {
      |                 ~~~~~~~~^~~~~
a.cc:10:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |               if (S.at(2) =="K") {
      |                   ~~~~~~~~^~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if (S.at(3) =="I") {
      |                     ~~~~~~~~^~~~~
Language: C++

        #include <bits/stdc++.h>
            using namespace std;
         
        int main() {
          string S;
          cin >> S;
          
          if (S.at(0) == "Y") {
            if (S.at(1) == "A") {
              if (S.at(2) == "K") {
                if (S.at(3) == "I") {
                  cout << "Yes";
              }
            }
          }
        }
          else {
            cout << "No" << endl;
          }
          
        }
              

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |           if (S.at(0) == "Y") {
      |               ~~~~~~~~^~~~~~
a.cc:9:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |             if (S.at(1) == "A") {
      |                 ~~~~~~~~^~~~~~
a.cc:10:27: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |               if (S.at(2) == "K") {
      |                   ~~~~~~~~^~~~~~
a.cc:11:29: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |                 if (S.at(3) == "I") {
      |                     ~~~~~~~~^~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <functional>
#include <queue>
#include <set>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)

using namespace std;
typedef long long int lli;

int main(){
	string S;
	cin>>S;
	int l=(int)S.length();
	if(l<4)cout<<"No";
	else if(S[0]=='Y'&&S[1]=='A'&&S[2]=='K'&&S[3]=='I')cout<<"Yes";
	else cout<<"No";

Compiler output:
a.cc: In function 'int main()':
a.cc:20:25: error: expected '}' at end of input
   20 |         else cout<<"No";
      |                         ^
a.cc:14:11: note: to match this '{'
   14 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int main ()
{
char s[100];
cin>>s;
if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’) 
cout<<” Yes \n ”;
else 
cout<<”No\n ”;
return 0;
}

Compiler output:
a.cc:7:10: error: extended character ’ is not valid in an identifier
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |          ^
a.cc:7:10: error: extended character ’ is not valid in an identifier
a.cc:7:21: error: extended character ’ is not valid in an identifier
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                     ^
a.cc:7:21: error: extended character ’ is not valid in an identifier
a.cc:7:32: error: extended character ’ is not valid in an identifier
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                                ^
a.cc:7:32: error: extended character ’ is not valid in an identifier
a.cc:7:43: error: extended character ’ is not valid in an identifier
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                                           ^
a.cc:7:43: error: extended character ’ is not valid in an identifier
a.cc:8:7: error: extended character ” is not valid in an identifier
    8 | cout<<” Yes \n ”;
      |       ^
a.cc:8:13: error: stray '\' in program
    8 | cout<<” Yes \n ”;
      |             ^
a.cc:8:16: error: extended character ” is not valid in an identifier
    8 | cout<<” Yes \n ”;
      |                ^
a.cc:10:7: error: extended character ” is not valid in an identifier
   10 | cout<<”No\n ”;
      |       ^
a.cc:10:10: error: stray '\' in program
   10 | cout<<”No\n ”;
      |          ^
a.cc:10:13: error: extended character ” is not valid in an identifier
   10 | cout<<”No\n ”;
      |             ^
a.cc: In function 'int main()':
a.cc:7:10: error: '\U00002019Y\U00002019' was not declared in this scope
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |          ^~~
a.cc:7:21: error: '\U00002019A\U00002019' was not declared in this scope
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                     ^~~
a.cc:7:32: error: '\U00002019K\U00002019' was not declared in this scope
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                                ^~~
a.cc:7:43: error: '\U00002019I\U00002019' was not declared in this scope
    7 | if(s[0]==’Y’&&s[1]==’A’&&s[2]==’K’&&s[3]==’I’)
      |                                           ^~~
a.cc:8:7: error: '\U0000201d' was not declared in this scope
    8 | cout<<” Yes \n ”;
      |       ^
a.cc:10:7: error: '\U0000201dNo' was not declared in this scope
   10 | cout<<”No\n ”;
      |       ^~~
Language: C++

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

string base = "YAKI";
string s;

int main()
{
    cin >> s;
    s = s.substr(s.begin(),4);
    if(base == s)
    {
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:25: error: cannot convert 'std::__cxx11::basic_string<char>::iterator' to 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'}
   11 |     s = s.substr(s.begin(),4);
      |                  ~~~~~~~^~
      |                         |
      |                         std::__cxx11::basic_string<char>::iterator
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3208:24: note:   initializing argument 1 of 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc> std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::substr(size_type, size_type) const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]'
 3208 |       substr(size_type __pos = 0, size_type __n = npos) const
      |              ~~~~~~~~~~^~~~~~~~~
Language: C++

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

#define SIZE 100005
typedef long long int ll;
typedef pair <int,int> P;

int main()
{
    string s;
    cin >> s;
    if(s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I")
    {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I")
a.cc:12:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I")
a.cc:12:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I")
a.cc:12:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I")
Language: C++

#define <stdio.h>

int main(void)
{

	char food [100];

	scanf("%s", food);

	if(food == YAKI){
		printf("Yes\n");
	}else{
		printf("No\n");

	return 0;
	}

Compiler output:
a.cc:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%s", food);
      |         ^~~~~
a.cc:10:20: error: 'YAKI' was not declared in this scope
   10 |         if(food == YAKI){
      |                    ^~~~
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("Yes\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define <stdio.h>
a.cc:13:17: error: 'printf' was not declared in this scope
   13 |                 printf("No\n");
      |                 ^~~~~~
a.cc:13:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:10: error: expected '}' at end of input
   16 |         }
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#define <stdio.h>

int main(void)
{

	char food [100];

	scanf("%s", food);

	if(food == YAKI){
		printf("Yes");
	}else{
		printf("No");

	return 0;
	}

Compiler output:
a.cc:1:9: error: macro names must be identifiers
    1 | #define <stdio.h>
      |         ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%s", food);
      |         ^~~~~
a.cc:10:20: error: 'YAKI' was not declared in this scope
   10 |         if(food == YAKI){
      |                    ^~~~
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("Yes");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #define <stdio.h>
a.cc:13:17: error: 'printf' was not declared in this scope
   13 |                 printf("No");
      |                 ^~~~~~
a.cc:13:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:16:10: error: expected '}' at end of input
   16 |         }
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<cstdio>
using namespace std;
char s[4];
int main()
{
  fread(s,1,sizeof s,stdin);
  if(!strcmp(s,"YAK1"))
    puts("Yes");
  else
    puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'strcmp' was not declared in this scope
    7 |   if(!strcmp(s,"YAK1"))
      |       ^~~~~~
a.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include<cstdio>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include<cstdio>
using namespace std;
char s[4];
int main()
{
  fread(s,1,sizeof s,stdin);
  if(s=="YAKI")
    put("Yes");
  else
    puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'put' was not declared in this scope; did you mean 'putw'?
    8 |     put("Yes");
      |     ^~~
      |     putw
Language: C++

#include<cstdio>
using namespace std;
char s[4];
int main()
{
  fread(s,1,sizeof s,stdin);
  if(s=="YAKI")
    putss("Yes");
  else
    puts("No");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'putss' was not declared in this scope; did you mean 'puts'?
    8 |     putss("Yes");
      |     ^~~~~
      |     puts
Language: C++

#include<cstdio>
#include<cstring>
char S[15];
int main(){gets(S);S[4]=0;puts(strcmp(S,"YAKI")?"No":"Yes");}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'gets' was not declared in this scope; did you mean 'getw'?
    4 | int main(){gets(S);S[4]=0;puts(strcmp(S,"YAKI")?"No":"Yes");}
      |            ^~~~
      |            getw
Language: C++

#include<bist/stdc++>
#include<iostream>
using namespace std;
int main(){
	string s;
	cin>>s;
	if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

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

#include <iostream>
#include <cstdio>
using namespace std;
int main()
{
	char s[100];
	cin >> s;
	if (s[0] == "Y"&&s[1] == "A"&&s[2] == "K"&&s[3] == "I")
		cout << "YES" << endl;
	else
		cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (s[0] == "Y"&&s[1] == "A"&&s[2] == "K"&&s[3] == "I")
      |             ~~~~~^~~~~~
a.cc:8:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (s[0] == "Y"&&s[1] == "A"&&s[2] == "K"&&s[3] == "I")
      |                          ~~~~~^~~~~~
a.cc:8:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (s[0] == "Y"&&s[1] == "A"&&s[2] == "K"&&s[3] == "I")
      |                                       ~~~~~^~~~~~
a.cc:8:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if (s[0] == "Y"&&s[1] == "A"&&s[2] == "K"&&s[3] == "I")
      |                                                    ~~~~~^~~~~~
Language: Java

import java.util.Scanner;

public class Flip {
  public static void main(String args[]) {
    Scanner cin = new Scanner(System.in);
    String numString = cin.nextLine();

    String s = cin.nextLine();
    if ("YAKI".equals(s.substring(0, 4))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}


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

import java.util.Scanner;

public class Yakiniku {
  public static void main(String args[]) {
    Scanner cin = new Scanner(System.in);
    String numString = cin.nextLine();

    String s = cin.nextLine();
    if ("YAKI".equals(s.substring(0, 4))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}



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

public class Yakiniku {
  public static void main(String args[]) {
    Scanner cin = new Scanner(System.in);
    String numString = cin.nextLine();

    String s = cin.nextLine();
    if ("YAKI".equals(s.substring(0, 4))) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }
  }
}


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

#include<iostream>
#include<algorithm>
#include<string.h>
using namespace std;

int main() {
	char str[51];
	cin >> str;
	int len = strlen(str)-8;
	for (int i = 0; i < len; i++) {
		printf("%c", str[i]);
	}
	
	cout << 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<iostream>
#include<algorithm>
#include<string>
using namespace std;

int main() {
	char str[51];
	cin >> str;
	int len = strlen(str)-8;
	for (int i = 0; i < len; i++) {
		printf("%c", str[i]);
	}
	
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: 'strlen' was not declared in this scope
    9 |         int len = strlen(str)-8;
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<algorithm>
  +++ |+#include <cstring>
    3 | #include<string>
Language: C++

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

int main() {
	char str[51];
	cin >> str;
	int len = strlen(str)-8;
	for (int i = 0; i < len; i++) {
		printf("%c", str[i]);
	}
	
	cout << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: 'strlen' was not declared in this scope
    8 |         int len = strlen(str)-8;
      |                   ^~~~~~
a.cc:3:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    2 | #include<algorithm>
  +++ |+#include <cstring>
    3 | using namespace std;
Language: Java

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

class Yakiniku{
    public String startsWithYaki(String s){
	String retStr = "No";
	if(s.substring(0,4).equals("YAKI")){
	    retStr = "Yes";
	}
	return retStr;
    }
    
    public static void main(String[] args){
       try{
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
	  String s = br.readLine();
	  Main yn = new Main();
	  String outStr = yn.startsWithYaki(s);
	  bw.write(outStr);
	  bw.newLine();
	  bw.flush();
       }catch(Exception e){
          e.printStackTrace();
       }
}

}


Compiler output:
Main.java:5: error: duplicate class: Yakiniku
class Yakiniku{
^
Main.java:19: error: cannot access Main
	  Main yn = new Main();
	  ^
  bad source file: ./Main.java
    file does not contain class Main
    Please remove or make sure it appears in the correct subdirectory of the sourcepath.
2 errors
Language: Java

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

public class Yakiniku{
    public String startsWithYaki(String s){
	String retStr = "No";
	if(s.substring(0,4).equals("YAKI")){
	    retStr = "Yes";
	}
	return retStr;
    }
    
    public static void main(String[] args){
       try{
          BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
	  String s = br.readLine();
	  Yakiniku yn = new Yakiniku();
	  String outStr = yn.startsWithYaki(s);
	  bw.write(outStr);
	  bw.newLine();
	  bw.flush();
       }catch(Exception e){
          e.printStackTrace();
       }
}

}


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

public class Main {
    public static void main(String[] args){
        final Scanner sc = new Scanner(System.in);
        final String s = sc.next();
        if (s.startsWith("YAKI")) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

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

//
// Created by Akifumi Ohata on 2017/09/28.
//

#include<iostream>
#include <vector>
#include <math.h>

using namespace std;

int main(){

    char prezent[10];

    cin.getline(prezent, sizeof(prezent));

    std::string ans ;

    char yaki[4];
    strncpy(yaki,prezent+0,4);
    ans = yaki;
    if (ans=="YAKI"){
    cout << "Yes" << endl;
    }else{
        cout << "No" << endl;

    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:5: error: 'strncpy' was not declared in this scope
   20 |     strncpy(yaki,prezent+0,4);
      |     ^~~~~~~
a.cc:8:1: note: 'strncpy' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    7 | #include <math.h>
  +++ |+#include <cstring>
    8 |
Language: C++

def main():
    s = input()
    if len(s) < 4 or "YAKI" != s[:4]:
        print("No")
    else:
        print("Yes")


if __name__ == "__main__":
    main()

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

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

int False(){
	cout<<"No";
	return 0;
}

int Ok(){
	cout<<"Yes";
	return 0;	
}

int main(){
	string str;
	cin>>str;

	if(str[0] != "Y") return False();
	if(str[1] != "A") return False();
	if(str[2] != "K") return False();
	if(str[3] != "I") return False();

	return Ok();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |         if(str[0] != "Y") return False();
a.cc:20:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         if(str[1] != "A") return False();
a.cc:21:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |         if(str[2] != "K") return False();
a.cc:22:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   22 |         if(str[3] != "I") return False();