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

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

#define rep(i,n) for (int i=0;i<(int)n;++i)
#define fs first
#define sc second
#define mp make_pair
#define pb push_back
#define ALL(x) x.begin(),x.end()

typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
inline void chmin(int &x, int y) { if (x > y) x = y; }


int main() {
    /*
    vi vec;
    rep(i, 10) vec.pb(rand() % 1000);
    sort(ALL(vec));
    rep(i,vec.size) cout<<vec[i]<<endl;
    */
    unsigned long long N, K, a, b, i;
    cin >> N >> K;
    vector< pair<unsigned long long, unsigned long long>> A(N);
    for(i=0; i<N; i++){
        cin >> a >> b;
        A.pb(mp(a, b));
    }
    sort(ALL(A));
    unsigned long long sum, j;

    for(i=0; i<N; i++){
        sum = 0;
        for(j = i; j <= A.size(); j++){
            sum = sum | A[j].first;
        }
        if(sum < K){
            count << accumulate(A.begin() + i,A.end());
            return 0;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:32: error: no matching function for call to 'accumulate(__gnu_cxx::__normal_iterator<std::pair<long long unsigned int, long long unsigned int>*, std::vector<std::pair<long long unsigned int, long long unsigned int> > >, std::vector<std::pair<long long unsigned int, long long unsigned int> >::iterator)'
   40 |             count << accumulate(A.begin() + i,A.end());
      |                      ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/numeric:62,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:58,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_numeric.h:134:5: note: candidate: 'template<class _InputIterator, class _Tp> _Tp std::accumulate(_InputIterator, _InputIterator, _Tp)'
  134 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init)
      |     ^~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:134:5: note:   candidate expects 3 arguments, 2 provided
/usr/include/c++/14/bits/stl_numeric.h:161:5: note: candidate: 'template<class _InputIterator, class _Tp, class _BinaryOperation> _Tp std::accumulate(_InputIterator, _InputIterator, _Tp, _BinaryOperation)'
  161 |     accumulate(_InputIterator __first, _InputIterator __last, _Tp __init,
      |     ^~~~~~~~~~
/usr/include/c++/14/bits/stl_numeric.h:161:5: note:   candidate expects 4 arguments, 2 provided
Language: Java

import java.util.*;

public class Main {
    public static void main(String args[]) {
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        int K = sc.nextInt();
        int[][] table = new int[N][2];
        ArrayList<int[]> data = new ArrayList<>();
        data.add(new int[] {0, 0});
        HashMap<Integer, Integer> map = new HashMap<>();
        for (int i  = 0; i < N; i++) {
            int a = sc.nextInt();
            int b = sc.nextInt();
            table[i][0] = a;
            table[i][1] = b;
        }
        int max = Integer.MIN_VALUE;
        for (int[] arr : table) {
            ArrayList<int[]> temp = new ArrayList<>();
            for (int[] d : data) {
                if ((d[0] | arr[0]) <= K) {
                    max = Math.max(max, d[1] + arr[1])
                    temp.add(new int[] {d[0] | arr[0], d[1] + arr[1]});
                }
            }
            data.addAll(temp);
        }
        System.out.println(max);
    }
}

Compiler output:
Main.java:23: error: ';' expected
                    max = Math.max(max, d[1] + arr[1])
                                                      ^
1 error
Language: C++

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

// 総数を1000000007（素数）で割った余り
const long long mod = 1e9 + 7;

using ll = long long;
using pii  = pair<int, int>;
using pll = pair<ll, ll>;
#define ull unsigned long long
#define ld long double
#define vi vector<int>
#define vll vector<ll>
#define vc vector<char>
#define vs vector<string>
#define vpii vector<pii>
#define vpll vector<pll>

#define rep(i, n) for (int i = 0, i##_len = (n); i < i##_len; i++)
#define rep1(i, n) for (int i = 1, i##_len = (n); i <= i##_len; i++)
#define repr(i, n) for (int i = ((int)(n)-1); i >= 0; i--)
#define rep1r(i, n) for (int i = ((int)(n)); i >= 1; i--)

#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

#define SORT(v, n) sort(v, v + n);
#define VSORT(v) sort(v.begin(), v.end());
#define RSORT(x) sort(rall(x));
#define pb push_back
#define mp make_pair

#define INF (1e9)
#define PI (acos(-1))
#define EPS (1e-7)

ull gcd(ull a, ull b) { return b ? gcd(b, a % b) : a; }
ull lcm(ull a, ull b) { return a / gcd(a, b) * b; }

vi dx = {0, 0, -1, 1};
vi dy = {-1, 1, 0, 0};

int solve(string S) {
    string ans = (S.substr(0, 4) == "YAKI") ? "Yes" : "No";
    cout << ans << endl;
    return 0;
}


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

    solve(S);

    return 0;
}

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

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

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const intll INF = 100000000000000000;
const int MOD = 1e9 + 7;

int main() {
  string s;
  cin >> s ;
  strig t = "YAKI" ;
  
  if(s.size() < 4){
    cout << "No" <<endl;
    return 0 ;
  }
  rep(i,4){
    if(s.at(i) != t.at(i)){
      cout << "No" << endl  ;
      return 0 ;
    }
  }
  
  cout <<"Yes" <<endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'strig' was not declared in this scope
   13 |   strig t = "YAKI" ;
      |   ^~~~~
a.cc:20:19: error: 't' was not declared in this scope
   20 |     if(s.at(i) != t.at(i)){
      |                   ^
Language: C++

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

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const intll INF = 100000000000000000;
const int MOD = 1e9 + 7;

int main() {
  string s;
  cin >> s ;
  strig t = "YAKI" ;
  rep(i,4){
    if(s.at(i) != t.at(i)){
      cout << "No" << endl  ;
      return 0 ;
    }
  }
  
  cout <<"Yes" <<endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'strig' was not declared in this scope
   13 |   strig t = "YAKI" ;
      |   ^~~~~
a.cc:15:19: error: 't' was not declared in this scope
   15 |     if(s.at(i) != t.at(i)){
      |                   ^
Language: C++

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


#include "boost/multiprecision/cpp_int.hpp"
#include "boost/multiprecision/cpp_dec_float.hpp"
namespace mp = boost::multiprecision;
typedef mp::cpp_int LL;
typedef mp::number<mp::cpp_dec_float<1024>> DD;// 仮数部が1024ビットの浮動小数点数型(TLEしたら小さくする)

 
typedef long double dd;
#define i_7 (ll)(1E9+7)
//#define i_7 998244353
#define i_5 i_7-2
ll mod(ll a){
    ll c=a%i_7;
    if(c>=0)return c;
    return c+i_7;
}
typedef pair<ll,ll> l_l;
typedef pair<dd,dd> d_d;
ll inf=(ll)1E16;
#define rep(i,l,r) for(ll i=l;i<=r;i++)
#define rrep(i,r,l) for(ll i=r;i>=l;i--)
#define pb push_back
ll max(ll a,ll b){if(a<b)return b;else return a;}
ll min(ll a,ll b){if(a>b)return b;else return a;}
void Max(ll &pos,ll val){pos=max(pos,val);}//Max(dp[n],dp[n-1]);
void Min(ll &pos,ll val){pos=min(pos,val);}
void Add(ll &pos,ll val){pos=mod(pos+val);}
dd EPS=1E-9;
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define fi first
#define se second
#define endl "\n"
#define SORT(v) sort(v.begin(),v.end())
#define ERASE(v) v.erase(unique(v.begin(),v.end()),v.end())
#define POSL(v,x) (lower_bound(v.begin(),v.end(),x)-v.begin())
#define POSU(v,x) (upper_bound(v.begin(),v.end(),x)-v.begin())
template<class T,class S>
inline bool chmax(T &a, S b) {
    if(a < b) {
        a = b;
        return true;
    }
    return false;
}
template<class T,class S>
inline bool chmin(T &a, S b) {
    if(a > b) {
        a = b;
        return true;
    }
    return false;
}

void mod_print(ll k){
    ll P=1000;
    rep(y,1,P){
        ll x=mod(y*k);
        if(x+P>=i_7){
            x-=i_7;
        }
        if(abs(x)<=P){
            cout<<x<<"/"<<y<<endl;
            return;
        }
    }
    cout<<"nun"<<endl;
}
#define all(c) c.begin(),c.end()
//////////////////////////


int main(){fastio
    string s;cin>>s;
    if(s.substr(0,4)=='YAKI')cout<<"Yes";
    else cout<<"No";
    
    return 0;
}


Compiler output:
a.cc:7:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    7 | #include "boost/multiprecision/cpp_int.hpp"
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main(void)
{
  int s[100];
  
  scanf("%s",s);
  
  if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I')
    printf("Yes");
  else
    printf("No")
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: expected ';' before 'return'
   11 |     printf("No")
      |                 ^
      |                 ;
   12 |     return 0;
      |     ~~~~~~
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define uni(e) e.erase(unique(e.begin(),e.end()),e.end())
#define double long double
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
int INF=1e10;
int MOD=1e9+7;
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void yesno(T b){if(b)out("yes");else out("no");}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
template<class T> void YESNO(T b){if(b)out("YES");else out("NO");}
template<class T> void noyes(T b){if(b)out("no");else out("yes");}
template<class T> void NoYes(T b){if(b)out("No");else out("Yes");}
template<class T> void NOYES(T b){if(b)out("NO");else out("YES");}
signed main(){
  string s;
  cin>>s;
  YesNo(substr(0,4)=="YAKI");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:9: error: 'substr' was not declared in this scope; did you mean 'strstr'?
   27 |   YesNo(substr(0,4)=="YAKI");
      |         ^~~~~~
      |         strstr
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define FOR(i,a,b) for(int i=a; i<(int)(b); i++)
#define ALL(x) (x).begin(),(x).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define CLR(a) memset((a), 0 ,sizeof(a))
#define PB push_back
#define MP make_pair
#define SP << " " <<
const int INF = 1001001001;
const ll LINF = 100100100100100100;
#define EPS (1e-10)
const long double PI  = acos(-1.0L);
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
typedef pair<double,double> PDD;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
#define chmax(a,b) a = (((a)<(b))?(b):(a))
#define chmin(a,b) a = (((a)>(b))?(b):(a))

__attribute__((constructor))
void initial(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(15);
}

signed main(){
	string s; cin>>s;
	string t="YAKI";
	if(s.size()>=4){
		bool flg=true;
		rep(i,4) if(s[i]!=t[i]) flg=false;
		if(flg) return cout<<"Yes"<<endl;
	}
	cout<<"No"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:43: error: cannot convert 'std::basic_ostream<char>::__ostream_type' {aka 'std::basic_ostream<char>'} to 'int' in return
   42 |                 if(flg) return cout<<"Yes"<<endl;
      |                                ~~~~~~~~~~~^~~~~~
      |                                           |
      |                                           std::basic_ostream<char>::__ostream_type {aka std::basic_ostream<char>}
Language: C++

#include<iostream>
#include<sstring>

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;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s; cin >> s;
  cout << ((s.sustr(0, 4) == "YAKI") ? "Yes" : "No") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sustr'; did you mean 'substr'?
    5 |   cout << ((s.sustr(0, 4) == "YAKI") ? "Yes" : "No") << endl;
      |               ^~~~~
      |               substr
Language: C++

#include <bits/stdc++.h>
int main() {
  string s; cin >> s;
  cout << ((s.sustr(0, 4) == "YAKI") ? "Yes" : "No") << endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char  s]102];
    cin>>s;
    if(s[0]=='Y' and s[1]=='A' and s[2]=='K' and s[3]=='I')
        cout<<"YES\n";
    else
        cout<<"NO\n";
   return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before ']' token
    5 |     char  s]102];
      |            ^
a.cc:6:10: error: 's' was not declared in this scope
    6 |     cin>>s;
      |          ^
Language: C++

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

int main(){
  string s;
  cin >> s;
  if (s.size()>3){
    if ((s.at(0)=='Y' && s.at(1)=='A') && (a.at(2)=='K' && a.at(3)=='I')){
      cout << "Yes" << endl;}
    else cout << "No" << endl;
  }
  else cout << "No" << endl;
}

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

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

int main() {
	string s;
    cin >> s;
    if(s.size()>=4 && s.at(0)=='Y' && s.at(1)=='A' && s.at(2)=='K' && s.at(3)=='I'){
      count << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}



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

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

int main() {
	string s;
    cin >> s;
    if(s.at(0)=='Y' && s.at(1)=='A' && s.at(2)=='K' && s.at(3)=='I'){
      count << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
}



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

#include <bits/stdc++.h>
using namespace std;
#define pp pair<int,int>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(),(a).end()
#define mk make_pair
ll MOD=1000000007;
ll mod=998244353;
int inf=1000001000;
ll INF=1e18+5;


int main() {
  string s,t="YAKI";
  cin >> s;
  bool t=true;
  rep(i,4){
    if (s[i]!=t[i]) t=false;
  }
  if (t) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: conflicting declaration 'bool t'
   18 |   bool t=true;
      |        ^
a.cc:16:12: note: previous declaration as 'std::string t'
   16 |   string s,t="YAKI";
      |            ^
a.cc:22:7: error: could not convert 't' from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
   22 |   if (t) cout << "Yes" << endl;
      |       ^
      |       |
      |       std::string {aka std::__cxx11::basic_string<char>}
Language: C++

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

int main() {
    string s;
    cin >> s;
    int count=0;
    string a="YAKI";
    int k=min(s.size(),4);
    for(int i=0;i<k;i++){
        if(s.at(i)==a.at(i)) count++;
    }
    if(count == 4) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'min(std::__cxx11::basic_string<char>::size_type, int)'
    9 |     int k=min(s.size(),4);
      |           ~~~^~~~~~~~~~~~
In file included 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_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
    9 |     int k=min(s.size(),4);
      |           ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
    9 |     int k=min(s.size(),4);
      |           ~~~^~~~~~~~~~~~
Language: C++

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

int main() {
    string s;
    cin >> s;
    int count=0;
    string a="YAKI";
    int k=min(s.size(),4)
    for(int i=0;i<k;i++){
        if(s.at(i)==a.at(i)) count++;
    }
    if(count == 4) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: no matching function for call to 'min(std::__cxx11::basic_string<char>::size_type, int)'
    9 |     int k=min(s.size(),4)
      |           ~~~^~~~~~~~~~~~
In file included 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_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
    9 |     int k=min(s.size(),4)
      |           ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:9:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
    9 |     int k=min(s.size(),4)
      |           ~~~^~~~~~~~~~~~
a.cc:10:17: error: 'i' was not declared in this scope
   10 |     for(int i=0;i<k;i++){
      |                 ^
Language: C++

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

int main() {
    string s;
    cin >> s;
    int count=0;
    string a="YAKI";
    for(int i=0;i<min(s.size(),4);i++){
        if(s.at(i)==a.at(i)) count++;
    }
    if(count == 4) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: no matching function for call to 'min(std::__cxx11::basic_string<char>::size_type, int)'
    9 |     for(int i=0;i<min(s.size(),4);i++){
      |                   ~~~^~~~~~~~~~~~
In file included 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_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:9:22: note:   deduced conflicting types for parameter 'const _Tp' ('long unsigned int' and 'int')
    9 |     for(int i=0;i<min(s.size(),4);i++){
      |                   ~~~^~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:9:22: note:   mismatched types 'std::initializer_list<_Tp>' and 'long unsigned int'
    9 |     for(int i=0;i<min(s.size(),4);i++){
      |                   ~~~^~~~~~~~~~~~
Language: C++

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

int main() {
    string s;
    cin >> s;
    int count=0;
    string a="YAKI";
    for(int i=0;i<min(s.size,4);i++){
        if(s.at(i)==a.at(i)) count++;
    }
    if(count == 4) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: invalid use of non-static 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]'
    9 |     for(int i=0;i<min(s.size,4);i++){
      |                       ~~^~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:1076:7: note: declared here
 1076 |       size() const _GLIBCXX_NOEXCEPT
      |       ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define || &&
int main()
{
    string s;
    cin>>s;
    printf(s[0]=='Y'||s[1]=='A'||s[2]=='K'||s[3]=='I'?"Yes":"No");
    return 0;
}

Compiler output:
a.cc:3:9: error: macro names must be identifiers
    3 | #define || &&
      |         ^~
Language: C++

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

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

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

int main() {
  string str;
  cin >> str;
  string ans = "No";
  if (str.size() >= 4) {
    if (str.at(0) == 'Y') {
      if (str.at(1) == 'A') {
        if (str.at(2) == 'K') {
          if (str.at(3) == 'I') {
          ans = "Yes";
        }
      }
    }
  }
  cout << ans << endl;
}


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

#include <iostream>
#include <string>

using namespace std;

int main(void)
{
  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: In function 'int main()':
a.cc:12:12: error: expected primary-expression before '=' token
   12 |   if(s[0]==='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I'){
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(n) ;i++)
#define pb push_back
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define sz(x) ((int)(x).size())
using ll=long long;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
#define MOD  1000000007
const ll INF=1e18;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b){ a = b; return 1; } return 0; }



int main(int argc, char const *argv[]) {
  string s,t="YAKI";
  cin >> s;
  
  if(s[0]==t[0] && s[1]==t[1] s[2]==t[2] && s[3]==t[3]) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:23:30: error: expected ')' before 's'
   23 |   if(s[0]==t[0] && s[1]==t[1] s[2]==t[2] && s[3]==t[3]) cout << "Yes" << endl;
      |     ~                        ^~
      |                              )
Language: C++

#include <iostream>
#include <string>
using namespace std;
typedef long long ll;

int main()
{
    string s;
    cin >> s;
    if (s.size() >= 4 && 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:10:31: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s.size() >= 4 && s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I") cout << "Yes";
a.cc:10:46: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s.size() >= 4 && s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I") cout << "Yes";
a.cc:10:61: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s.size() >= 4 && s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I") cout << "Yes";
a.cc:10:76: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |     if (s.size() >= 4 && s[0] == "Y" && s[1] == "A" && s[2] == "K" && s[3] == "I") cout << "Yes";
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
     
    int main(){
      //int w,h,tmp;
      string s,t;
      cin >> s;
      int ans = 0;
      t = "YAKI";
      //for(int i=0; i<s.size(); i++)
      if(s.substr(0,4)==t.substr(0,4) cout << "Yes" << endl;
     
      //cout << ans << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: expected ';' before 'cout'
   11 |       if(s.substr(0,4)==t.substr(0,4) cout << "Yes" << endl;
      |                                      ^~~~~
      |                                      ;
a.cc:11:23: warning: ignoring return value of 'bool std::operator==(const __cxx11::basic_string<_CharT, _Traits, _Allocator>&, const __cxx11::basic_string<_CharT, _Traits, _Allocator>&) [with _CharT = char; _Traits = char_traits<char>; _Alloc = allocator<char>]', declared with attribute 'nodiscard' [-Wunused-result]
   11 |       if(s.substr(0,4)==t.substr(0,4) cout << "Yes" << endl;
      |          ~~~~~~~~~~~~~^~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:3755:5: note: declared here
 3755 |     operator==(const basic_string<_CharT, _Traits, _Alloc>& __lhs,
      |     ^~~~~~~~
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
a.cc:11:61: error: expected ')' before '}' token
   11 |       if(s.substr(0,4)==t.substr(0,4) cout << "Yes" << endl;
      |         ~                                                   ^
      |                                                             )
......
   14 |     }
      |     ~                                                        
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
Language: C++

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

int main(){
    string S;
    cin >> S;
    S += "000";
    cout << (S.substr(0, 4) == "YAKI") ? "Yes" : "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:55: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |     cout << (S.substr(0, 4) == "YAKI") ? "Yes" : "No" << endl;
      |                                                  ~~~~~^~~~~~~
Language: C++

#include <stdio.h>
#include <string.h>
char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}


Compiler output:
a.cc:3:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |         ^~~~
a.cc: In function 'int main()':
a.cc:3:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    3 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                         ^~~~~~
      |                         |
      |                         const char*
a.cc:3:71: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    3 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                                                                       ^
      |                                                                       |
      |                                                                       char
In file included from a.cc:2:
/usr/include/string.h:159:51: note:   initializing argument 2 of 'int strncmp(const char*, const char*, size_t)'
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |                                       ~~~~~~~~~~~~^~~~
Language: C++

#include <string.h>
char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}


Compiler output:
a.cc:2:9: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |         ^~~~
a.cc: In function 'int main()':
a.cc:2:25: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                         ^~~~~~
      |                         |
      |                         const char*
a.cc:2:32: error: 'scanf' was not declared in this scope
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                                ^~~~~
a.cc:2:71: error: invalid conversion from 'char' to 'const char*' [-fpermissive]
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                                                                       ^
      |                                                                       |
      |                                                                       char
In file included from a.cc:1:
/usr/include/string.h:159:51: note:   initializing argument 2 of 'int strncmp(const char*, const char*, size_t)'
  159 | extern int strncmp (const char *__s1, const char *__s2, size_t __n)
      |                                       ~~~~~~~~~~~~^~~~
a.cc:2:47: error: 'printf' was not declared in this scope
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |                                               ^~~~~~
a.cc:2:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
    1 | #include <string.h>
  +++ |+#include <cstdio>
    2 | char* s;main(){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
Language: C++

#include <string.h>
main(s){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}

Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(s){char t = "YAKI";scanf("%s",&s);printf("%s", (strncmp(s,t,4)==0)?"Yes":"No");}
      |     ^
Language: C++

#include <iostream>
#include <fstream>
#include <vector>
#include <cstring>
#include <algorithm> // sort
#include <iomanip>

#define REP(i, n) for (long long i = 0; i < (n); i++) 
typedef long long ll;
static const ll MOD = 1000000007;
static const ll INF = 1000000000000000000LL;
using namespace std;

int main(){
//    std::ifstream in("input.txt");
//    std::cin.rdbuf(in.rdbuf());
    string s
    cin >> s;
    string res = "Yes";
    string yaki = "YAKI";
    REP(i,yaki.size())
    {
        if(s[i] != yaki[i])res = "No";
    }
    cout << res << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected initializer before 'cin'
   18 |     cin >> s;
      |     ^~~
a.cc:23:12: error: 's' was not declared in this scope
   23 |         if(s[i] != yaki[i])res = "No";
      |            ^
Language: C++

#Int clude<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<<"\n";
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Int
    1 | #Int clude<bits/stdc++.h>
      |  ^~~
a.cc: In function 'int main()':
a.cc:4:1: error: 'string' was not declared in this scope
    4 | string a;
      | ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #Int clude<bits/stdc++.h>
a.cc:5:1: error: 'cin' was not declared in this scope
    5 | cin>>a;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Int clude<bits/stdc++.h>
a.cc:5:6: error: 'a' was not declared in this scope
    5 | cin>>a;
      |      ^
a.cc:6:48: error: 'cout' was not declared in this scope
    6 | if(a[0]=='Y'&&a[1]=='A'&&a[2]=='K'&&a[3]=='I') cout<<"Yes";
      |                                                ^~~~
a.cc:6:48: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:6: error: 'cout' was not declared in this scope
    7 | else cout<<"No";
      |      ^~~~
a.cc:7:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout<<"\n";
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main()
{
    string 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:10:13: error: expected ';' before string constant
   10 |         cout "Yes" << endl;
      |             ^~~~~~
      |             ;
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
    
		// 文字列の入力
		String s = sc.next();
    
		// 出力
		System.out.println(s.length() >= 4 
                           && s.substring(0, 4).equlas("YAKI") 
                           ? "Yes" : "No");
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
                           && s.substring(0, 4).equlas("YAKI") 
                                               ^
  symbol:   method equlas(String)
  location: class String
1 error
Language: C

#include<stdio .h>
int main() { char s [100];
scanf(”%s ” , s ); 
            
     if ( s [0] == ’Y’&&s [1] == ’A’&&s [2] == ’K’&&s [3] == ’I ’) printf (”Yes\n”);
            
            else printf (”No\n”);
}

  
  

 


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

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

int main() {
 string  S;
   cin >> S;
  vector<char> data(S.size());
  for (int i = 0; i < S.size() ; i++) {
    cin >> data.at(i);
  }

    if ((data.at(0) == "Y") && (data.at(1) == "A") && (data.at(2) == "K") && (data.at(3) == "I")) {
      
     cout << "Yes" << endl;
  }
    else {
      cout << "No" << endl;
    }
  }
  

 


Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if ((data.at(0) == "Y") && (data.at(1) == "A") && (data.at(2) == "K") && (data.at(3) == "I")) {
      |          ~~~~~~~~~~~^~~~~~
a.cc:12:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if ((data.at(0) == "Y") && (data.at(1) == "A") && (data.at(2) == "K") && (data.at(3) == "I")) {
      |                                 ~~~~~~~~~~~^~~~~~
a.cc:12:67: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if ((data.at(0) == "Y") && (data.at(1) == "A") && (data.at(2) == "K") && (data.at(3) == "I")) {
      |                                                        ~~~~~~~~~~~^~~~~~
a.cc:12:90: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if ((data.at(0) == "Y") && (data.at(1) == "A") && (data.at(2) == "K") && (data.at(3) == "I")) {
      |                                                                               ~~~~~~~~~~~^~~~~~
Language: C++

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

int main() {
 string str = S;
   cin >> S;
  vector<char> data(S.size());
  for (int i = 0; i < data.size() ; i++) {
    cin >> data.at(i);
  }

  string str = "YAKI" ;
    
 

  for (int i = 0; i < 4; i++) {

    if (data.at(i) != str.at(i) ) {
      
     cout << "No" << endl;
  }
    else {
      cout << "Yes" << endl;
    }
  }
  

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: 'S' was not declared in this scope
    5 |  string str = S;
      |               ^
a.cc:12:10: error: redeclaration of 'std::string str'
   12 |   string str = "YAKI" ;
      |          ^~~
a.cc:5:9: note: 'std::string str' previously declared here
    5 |  string str = S;
      |         ^~~
Language: C++

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

int main() {
  string str = S
  vector<char> data(S);
  for (int i = 0; i < data.size() ; i++) {
    cin >> data.at(i);
  }

  string str = "YAKI" ;
    
 

  for (int i = 0; i < 4; i++) {

    if (data.at(i) != str.at(i) ) {
      
     cout << "No" << endl;
  }
    else {
      cout << "Yes" << endl;
    }
  }
  

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'S' was not declared in this scope
    5 |   string str = S
      |                ^
a.cc:7:28: error: overloaded function with no contextual type information
    7 |   for (int i = 0; i < data.size() ; i++) {
      |                            ^~~~
a.cc:8:17: error: overloaded function with no contextual type information
    8 |     cin >> data.at(i);
      |                 ^~
a.cc:11:10: error: redeclaration of 'std::string str'
   11 |   string str = "YAKI" ;
      |          ^~~
a.cc:5:10: note: 'std::string str' previously declared here
    5 |   string str = S
      |          ^~~
a.cc:17:14: error: overloaded function with no contextual type information
   17 |     if (data.at(i) != str.at(i) ) {
      |              ^~
Language: C++

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

int main() {
  vector<char> data();
  for (int i = 0; i < data.size() ; i++) {
    cin >> data.at(i);
  }

  string str = "YAKI" ;
    
 

  for (int i = 0; i < 4; i++) {

    if (data.at(i) != str.at(i) ) {
      
     cout << "No" << endl;
  }
    else {
      cout << "Yes" << endl;
    }
  }
  

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    5 |   vector<char> data();
      |                    ^~
a.cc:6:28: error: request for member 'size' in 'data', which is of non-class type 'std::vector<char>()'
    6 |   for (int i = 0; i < data.size() ; i++) {
      |                            ^~~~
a.cc:7:17: error: request for member 'at' in 'data', which is of non-class type 'std::vector<char>()'
    7 |     cin >> data.at(i);
      |                 ^~
a.cc:16:14: error: request for member 'at' in 'data', which is of non-class type 'std::vector<char>()'
   16 |     if (data.at(i) != str.at(i) ) {
      |              ^~
Language: C++

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

int main() {
  vector<char> data(i);
  for (int i = 0; i < data.size() ; i++) {
    cin >> data.at(i);
  }

  string str = "YAKI" ;
    
 

  for (int i = 0; i < 4; i++) {

    if (data.at(i) != str.at(i) ) {
      
     cout << "No" << endl;
  }
    else {
      cout << "Yes" << endl;
    }
  }
  

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'i' was not declared in this scope
    5 |   vector<char> data(i);
      |                     ^
Language: C++

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

int main() {
  vector<char> data(i);
  for (int i = 0; i < data.size() ; i++) {
    cin >> data.at(i);
  }

  string str = "YAKI"
    
 

  for (int i = 0; i < 4; i++) {

    if (data.at(i) != str.at(i) ) {
      
     cout << "No" << endl;
  }
    else {
      cout << "Yes" << endl;
    }
  }
  

 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'i' was not declared in this scope
    5 |   vector<char> data(i);
      |                     ^
a.cc:14:3: error: expected ',' or ';' before 'for'
   14 |   for (int i = 0; i < 4; i++) {
      |   ^~~
Language: C++

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

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

#include<iostream>
#include<algorithm>
#include<cmath>
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;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: 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:21: 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:32: 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:43: 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.*;

public class Main {
    static Scanner scanner = new Scanner(System.in);

    public static void main(String[]$) {
        System.out.println(scanner.next().startWith("YAKI"));
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        System.out.println(scanner.next().startWith("YAKI"));
                                         ^
  symbol:   method startWith(String)
  location: class String
1 error
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <cmath>
#include <deque>

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

using namespace std;

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

	if (strncmp(s.c_str(), "YAKI",4) == 0)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'strncmp' was not declared in this scope
   17 |         if (strncmp(s.c_str(), "YAKI",4) == 0)
      |             ^~~~~~~
a.cc:7:1: note: 'strncmp' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    6 | #include <deque>
  +++ |+#include <cstring>
    7 |