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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        TaskA solver = new TaskA();
        solver.solve(1, in, out);
        out.close();
    }

    static class TaskA {
        public void solve(int testNumber, Scanner sn, PrintWriter out) {
            String a = sn.next();
            if (a.length() >= "YAKI".length()) {
                if (a.substring(0, 4).equals("YAKI")) {
                    out.println("Yes");
                } else {
                    out.println("No");
                }
            } else {
                out.println("No");
            }
        }

    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.OutputStream;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Scanner;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:11:1: error: expected unqualified-id before 'public'
   11 | public class Main {
      | ^~~~~~
Language: Java

import java.util.Scanner;
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		boolean result = false;
		int m = sc.nextInt();
		int n = sc.nextInt();
		int k = sc.nextInt();

		if (m == 0 || n == 0 ) {
			if (k != 0) {
				System.out.println("No");
			} else {
				System.out.println("Yes")
			}
			return;
		} 

		for (int i = 0; i <= m; i++) {
			for (int j = 0; j <= n; j++) {
				int tmp = i * m + j * n - 2 * i * j;
				if (tmp == k) {
					System.out.println("Yes");
					return;
				}
			}
		}

		System.out.println("No");
	}
}

Compiler output:
Main.java:14: error: ';' expected
				System.out.println("Yes")
				                         ^
1 error
Language: C++

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

	if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
	{
		cout<<"Yes"<<endl;
	}
	else cout<<"No"<<endl;
return 0;
}
 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:11:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:11:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:11:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
a.cc:9:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (str[0]=="Y" && str[1]=="A" && str[2]=="K" && str[3]=="I")
Language: C++

s = input()

if s[:4] == 'YAKI':
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:3:13: warning: multi-character character constant [-Wmultichar]
    3 | if s[:4] == 'YAKI':
      |             ^~~~~~
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 's' does not name a type
    1 | s = input()
      | ^
Language: Java

class Main
{
    public static void main(String args[])
    {
        try{
            Scanner s1=new Scanner(System.in);
            String n=s1.next();
            String s=n.substring(0,4);
            if(s.equals("YAKI"))
                System.out.println("Yes");
            else
                System.out.println("No");
        }
        catch(Exception e)
        {
            
        }
    }

Compiler output:
Main.java:18: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.*;
class Main
{
    public static void main(String args[])
    {
        try{
            Scanner s1=new Scanner(System.in);
            String n=s1.next();
            String s=n.substring(0,4);
            if(s.equals("YAKI"))
                System.out.println("Yes");
            else
                System.out.println("No");
        }
        catch(Exception e)
        {
            
        }
    }

Compiler output:
Main.java:19: error: reached end of file while parsing
    }
     ^
1 error
Language: C++


int main(){
    std::string s;
    std::cin>>s;
    std::cout<<(s.substr(0,4)=="YAKI"?"Yes\n":"No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:10: error: 'string' is not a member of 'std'
    3 |     std::string s;
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:4:10: error: 'cin' is not a member of 'std'
    4 |     std::cin>>s;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:4:15: error: 's' was not declared in this scope
    4 |     std::cin>>s;
      |               ^
a.cc:5:10: error: 'cout' is not a member of 'std'
    5 |     std::cout<<(s.substr(0,4)=="YAKI"?"Yes\n":"No\n");
      |          ^~~~
a.cc:5:10: 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[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:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
Language: C++

#include <bits/stdc++.h>


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:11:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:11:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
Language: C++

#include <bits/stdc++.h>


using namespace std;

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

    char c1 = S[0];
    char c2 = S[1];
    char c3 = S[2];
    char c4 = S[3];
    
    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:15:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:15:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:15:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
a.cc:15:58: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(S[0] == "Y" && S[1] == "A" && S[2] == "K" && S[3] == "I"){
Language: C++

#include <bits/stdc++.h>


using namespace std;

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

    char c1 = S[0];
    char c2 = S[1];
    char c3 = S[2];
    char c4 = S[3];
    
    if(c1 == "Y" && c2 == "A" && c3 == "K" && c4 == "I"){
        cout <<"Yes"<< endl;
    }
    else{
        cout <<"No"<< endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(c1 == "Y" && c2 == "A" && c3 == "K" && c4 == "I"){
      |        ~~~^~~~~~
a.cc:15:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(c1 == "Y" && c2 == "A" && c3 == "K" && c4 == "I"){
      |                     ~~~^~~~~~
a.cc:15:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(c1 == "Y" && c2 == "A" && c3 == "K" && c4 == "I"){
      |                                  ~~~^~~~~~
a.cc:15:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     if(c1 == "Y" && c2 == "A" && c3 == "K" && c4 == "I"){
      |                                               ~~~^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	char s[100];
	while(cin>>s)
	{int l=strlen(s); 
	if(l<4)cout<<"No"<<endl; 
	else 
	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:7:16: error: 'strlen' was not declared in this scope
    7 |         {int l=strlen(s);
      |                ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

#include <iostream>
#include <string.h>

using namespace std;
string s;
int main(){
	ios::sync_with_stdio(false);
	cin>>s;
	int len=strlen(s);
	if(s[0]=='T'&&s[1]=='A'&&s[2]=='K'&&s[3]=='O'&&s[4]=='Y'&&s[5]=='A'&&s[6]=='K'&&s[3]=='I')
	cout<<"Yes"<<endl;
	else {
		cout<<"No"<<endl;
	}
		return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    9 |         int len=strlen(s);
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from a.cc:2:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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


using namespace std;

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

    vector<char>n(S.size()-1);

    for(int i;i < S.size(); i++){
        n[i]=S[i];
    }

    if(n[1] == Y && n[2] == A && n[3] == K && n[4] == I){
        cout <<"Yes"<< endl;
    }
    else{
        cout <<"No"<< endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'Y' was not declared in this scope
   17 |     if(n[1] == Y && n[2] == A && n[3] == K && n[4] == I){
      |                ^
a.cc:17:29: error: 'A' was not declared in this scope
   17 |     if(n[1] == Y && n[2] == A && n[3] == K && n[4] == I){
      |                             ^
a.cc:17:42: error: 'K' was not declared in this scope
   17 |     if(n[1] == Y && n[2] == A && n[3] == K && n[4] == I){
      |                                          ^
a.cc:17:55: error: 'I' was not declared in this scope
   17 |     if(n[1] == Y && n[2] == A && n[3] == K && n[4] == I){
      |                                                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
string s;
int main(){
	ios::sync_with_stdio(false);
	cin>>s;
	int len=strlen(s);
	if(s[0]=='T'&&s[1]=='A'&&s[2]=='K'&&s[3]=='O'&&s[4]=='Y'&&s[5]=='A'&&s[6]=='K'&&s[3]=='I')
	cout<<"Yes"<<endl;
	else {
		cout<<"No"<<endl;
	}
		return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'const char*'
    7 |         int len=strlen(s);
      |                        ^
      |                        |
      |                        std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/14/cstring:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:121,
                 from a.cc:1:
/usr/include/string.h:407:35: note:   initializing argument 1 of 'size_t strlen(const char*)'
  407 | extern size_t strlen (const char *__s)
      |                       ~~~~~~~~~~~~^~~
Language: C++

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


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

#include<stdio.h>
main(void){
   char yaki[10];
   char S[15];
   yaki[0]='Y';
   yaki[1]='A';
   yaki[2]='K';
   yaki[3]='I';
      printf("りんごさんがすぬけ君に送ろうと思っているものの名前は何ですか？英大文字で入力してください。");
         while(s>10 && s<1){
            fgets(s,sizeof(s),stdin);
         }
         S=s;
         if(S[0]='Y' && S[1]='A' && S[2]='K' && S[3]='I')
            printf("Yes");
         else
            printf("No");
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(void){
      | ^~~~
main.c: In function 'main':
main.c:10:16: error: 's' undeclared (first use in this function)
   10 |          while(s>10 && s<1){
      |                ^
main.c:10:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:53: error: lvalue required as left operand of assignment
   14 |          if(S[0]='Y' && S[1]='A' && S[2]='K' && S[3]='I')
      |                                                     ^
Language: C++

#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <vector>
#include <list>
#include <algorithm>
#include <functional>
#include <map>
#include <set>
#include <cstring>
#include <string>
#include <cctype>
#include <cassert>
#include <queue>

using namespace std;

#define pb push_back
#define mp make_pair
#define all(x) (x).begin(), (x).end()
#define rep(i,n) for(int i = 0; i < (n); i++)
#define repr(i,b,e) for(int i = (b); i <= (e); i++)
#define INF (1001001001)
#define EPS (1e-15)

#define pr(x) do{cerr << (#x) << " = " << (x) << endl;}while(0)
#define pri(x,i) do{cerr << (#x) << "[" << i << "] = " << (x[i]) << endl;}while(0)
#define pra(x,n) rep(__i,n) pri(x,__i);
#define prar(x,b,e) repr(__i,b,e) pri(x,__i);

typedef long long ll;
typedef pair<int, int> pint;
typedef vector<int> vint;
typedef vector<pint> vpint;

ll MOD = 1000000007;

int in() {
	int a;
	scanf("%d ", &a);
	return a;
}

int main() {
	char hoge[256] = "aaaaaaaaaaaaaaaaa";
	gets(hoge);
	cout << (strncmp(hoge, "YAKI", 4) == 0 ? "Yes" : "No") << endl;
	return 0;
}


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

#include <stdio.h>
int main(){
   char a[10]={0};
   char*b = "YAKI";
   scanf("%s", a) ;
   int i;
   for(i =0; i<4; i++){
      if(a[i]!=b[i]){
      printf("No\n");
       exit 0;
       }
   }
printf("Yes\n");
exit 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:8: error: 'exit' undeclared (first use in this function)
   10 |        exit 0;
      |        ^~~~
main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(){
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
   10 |        exit 0;
      |        ^~~~
main.c:10:12: error: expected ';' before numeric constant
   10 |        exit 0;
      |            ^~
      |            ;
main.c:14:5: error: expected ';' before numeric constant
   14 | exit 0;
      |     ^~
      |     ;
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
#include<cstdlib>
using namespace std;

int main()
{
	char s[11];
	int i;
	gets(s);
	for(i=1;s[i];i++)
	{
		if(s[i]>='A'&&s[i]<='Z'&&s[1]=='Y'&&s[2]=='A'&&s[3]=='K'&&s[4]=='I')
			 printf("Yes\n");
		else
			 printf("No\n");
	}
	return 0;
}


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

#include <stdio.h>
int main(){
   char a[10]={0};
   char*b = "YAKI";
   scanf(%s, a) ;
   int i;
   for(i =0; i<4; i++){
      if(a[i]!=b[i]){
      printf("NO\n");
       exit 0;
       }
   }
printf("YES\n");
exit 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:10: error: expected expression before '%' token
    5 |    scanf(%s, a) ;
      |          ^
main.c:10:8: error: 'exit' undeclared (first use in this function)
   10 |        exit 0;
      |        ^~~~
main.c:2:1: note: 'exit' is defined in header '<stdlib.h>'; this is probably fixable by adding '#include <stdlib.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | int main(){
main.c:10:8: note: each undeclared identifier is reported only once for each function it appears in
   10 |        exit 0;
      |        ^~~~
main.c:10:12: error: expected ';' before numeric constant
   10 |        exit 0;
      |            ^~
      |            ;
main.c:14:5: error: expected ';' before numeric constant
   14 | exit 0;
      |     ^~
      |     ;
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
	int h,w;
	cin>>h>>w;
	int i,j;
	char c;
	int y[2];
	int a[25];
	for(i=0;i<h;i++)
		for(j=0;j<w;j++)
		{
			cin>>c;
			a[c-'a']++;
		}
	for(i=0;i<=h/2;i++)
		for(j=0;j<=w/2;j++)
		{
			if((i<h-i)&&(j<w-j)) y[2]++;
			else if((i<h-i)||(j<w-j)) y[1]++;
			else ((i=h-i)&&(j=w-j)) y[0]++;
		}
	for(i=2;i>=0;i--)
	{
		for(j=0;j<26;j++)
		if ((a[j]>=2^i)&&(y[i]>0))while ((a[j]>=2^i)&&(y[i]>0)){a[j]-=2^i;y[i]--;};
	}
	bool t;
	t=true;
	for(i=0;i<26;i++)
		if(t)
		if(a[i]!=0) t=false;
	if(t)cout<<'Y'<<'e'<<'s'<<endl;
	else cout<<'N'<<'o'<<endl;
	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:23:48: error: expected ';' before 'y'
   23 |                         else ((i=h-i)&&(j=w-j)) y[0]++;
      |                                                ^~
      |                                                ;
Language: C++

#include<cstdio>
#include<iostream>
#include<cmath>
#include<queue>
#include<stack>
#include<cstdlib>
using namespace std;

int main()
{
	char s[15];
	int i=0;
	gets(s);
	for(i=0;s[i];i++)
		if(s[i]>='A'&&s[i]<='Z'&&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:13:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |         gets(s);
      |         ^~~~
      |         getw
a.cc:17:17: error: 'else' without a previous 'if'
   17 |                 else
      |                 ^~~~
Language: C

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

int main(void)
{
    char s1[11];
    char *s2 = "YAKI";
    scanf("%s",str);
    
 
    int ret;

    ret = strncmp( s1, s2, 4 );
    if( ret == 0 ){
        printf( "Yes¥n" );
    }
    else{
        printf( "No¥n" );
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:16: error: 'str' undeclared (first use in this function)
    8 |     scanf("%s",str);
      |                ^~~
main.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <fstream>
#include <iomanip>
#include <algorithm>
#include <cmath>
#include <ctime>
#include <map>
#include <set>
#include <stack>
#include <sstream>
#include <vector>
#include <queue>
#include <conio.h>

#define f first
#define s second

#define ll long long

using namespace std;

ll pow_(ll a,ll b)
{
    if(b==0)
        return 1;
    if(b%2!=0)
        return a*pow_(a,b-1);
    ll x=pow_(a,b/2);
    return x*x;
}

int main()
{
    ios_base::sync_with_stdio(false);
    srand(time(NULL));
//    ifstream cin("input.txt");
//    ofstream cout("output.txt");
    string str;
    cin>>str;
    if(str[0]=='Y' && str[1]=='A' && str[2]=='K' && str[3]=='I')
        cout<<"Yes";
    else
        cout<<"No";
    return 0;
}



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

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

/*
TASK: cardgame
LANG: JAVA
 */
public class cardgame {

    public static void main(String[] args) throws IOException {
        FastScanner in = new FastScanner(System.in); //new FileInputStream(new File("cardgame.in")));
        //PrintWriter out = new PrintWriter(new File("cardgame.out"));
        String s = in.next();
        if(s.length() < 4)System.out.println("NO");
        else if(s.substring(0 , 4).equals("YAKI"))System.out.println("YES");
        else System.out.println("NO");

    }

    private static class FastScanner {
        private InputStream stream;
        private byte[] buf = new byte[1024];
        private int curChar;
        private int numChars;

        public FastScanner(InputStream stream) {
            this.stream = stream;
        }

        int read() {
            if (numChars == -1)
                throw new InputMismatchException();
            if (curChar >= numChars) {
                curChar = 0;
                try {
                    numChars = stream.read(buf);
                } catch (IOException e) {
                    throw new InputMismatchException();
                }
                if (numChars <= 0) return -1;
            }
            return buf[curChar++];
        }

        boolean isSpaceChar(int c) {
            return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1;
        }

        boolean isEndline(int c) {
            return c == '\n' || c == '\r' || c == -1;
        }

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

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

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

        public String next() {
            int c = read();
            while (isSpaceChar(c)) c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isSpaceChar(c));
            return res.toString();
        }

        public String nextLine() {
            int c = read();
            while (isEndline(c))
                c = read();
            StringBuilder res = new StringBuilder();
            do {
                res.appendCodePoint(c);
                c = read();
            } while (!isEndline(c));
            return res.toString();
        }
    }
}


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

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

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

//In The Name Of The God

#include <bits/stdc++.h>

using namespace std;

#define ll long long
#define ld long double
#define F first
#define S second
#define X first.first
#define Y first .second
#define A second.first
#define B second.second
#define mp make_pair
#define pb push_back
#define pf push_front
#define P push
#define pob pop_back
#define pof pop_front
#define PO pop
#define rep(i,j,k) for(int i = j ; i <= k ; ++ i)
#define rrep(i,j,k) for(int i = j ; i>=k ; --i)
#define FR(i,j,k) for(int i = j ; i < k ; ++ i )
#define rFR(i,j,k) for(int i = j ; i > k ; -- i )
#define lb(x) x&-x
#define p2(x) (1LL<<x)
#define SZ size()
#define LB lower_bound
#define UB upper_bound
#define IT iterator
#define RIT reverse_iterator
#define E end()
#define BE begin()
#define RE rend()
#define RBE rbegin()
#define UN unsigned

typedef pair<int,int> pii;
typedef pair<int,ll> pil;
typedef pair<ll,int> pli;
typedef pair<ll,ll> pll ;
typedef pair<int,pii> pip;
typedef pair<pii,int> ppi;
typedef pair<pii,pii> ppp;
typedef pair<int,pll> pipl;
typedef pair<pll,int> ppli ;
typedef pair<pll,pll> plpl ;
typedef pair<ll,pii> lpip;
typedef pair<pii,ll> lppi;
typedef pair<pii,pii> lppp;
typedef pair<ll,pll> lpipl;
typedef pair<pll,ll> lppli ;
typedef pair<pll,pll> lplpl ;
typedef vector<int> vi ;
typedef vector<ll> vl;
typedef vector<pii> vpi;
typedef vector<pll> vpl;
typedef set<int> sti;
typedef set<ll> stl;
typedef set<pii > stpi;
typedef set<pll> stpl;
typedef vi::IT vit;
typedef vl::IT vlt;
typedef vpi::IT vpit;
typedef vpl::IT vplt;
typedef sti::IT stit;
typedef stl::IT stlt;
typedef stpi::IT stpit;
typedef stpl::IT stplt;
typedef vpi::RIT rvpit;
typedef vpl::RIT rvplt;
typedef sti::RIT rstit;
typedef stl::RIT rstlt;
typedef stpi::RIT rstpit;
typedef stpl::RIT rstplt;

const int MAXN = 500000;
const int SUPERN = 5000000;
const int MAXS = 325;
const int SUPERS = 1000;
const int MD = 1e9+7;
//......Structures.......

//......Variables........

//......Funcs............
ll sum(ll a,ll b)
{
    return (a+b)%MD;
}
ll mu(ll a,ll b)
{
    return (a*b)%MD;
}
ll mn(ll a,ll b)
{
    return(a-b+MD)%MD;
}
//......Code.............
int main()
{
	string s;
	cin>>s;
	if(s.SZ>=4s.substr(0,4)=="YAKI")cout<<"Yes";
	else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:105:18: error: unable to find numeric literal operator 'operator""s.substr'
  105 |         if(s.SZ>=4s.substr(0,4)=="YAKI")cout<<"Yes";
      |                  ^~~~~~~~~
Language: C++

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader f = new BufferedReader(new InputStreamReader(System.in));
		String s = f.readLine();
		if(s.startsWith("YAKI")) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.*;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main()
{
    string s,b;
    getline(cin,s);
    b=s.substring(0,4);
    if(s.lenth()<4)
       cout<<"No";
    if(b=="YAKI")
       cout<<"Yes";
    else
       cout<<"No";
return 0;
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'substring'; did you mean 'substr'?
    8 |     b=s.substring(0,4);
      |         ^~~~~~~~~
      |         substr
a.cc:9:10: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'lenth'; did you mean 'length'?
    9 |     if(s.lenth()<4)
      |          ^~~~~
      |          length
Language: C++


public class Main {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		
		String s = args[0];
		
		if(s.substring(0,4).equals("YAKI")){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}
		
	}

}

Compiler output:
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main {
      | ^~~~~~
Language: Java

import static java.lang.System.out;
import java.util.Scanner;
import java.util.Arrays;
public class Main{
   public static void main(String[]aa){
      Scanner sc = new Scanner(System.in); 
       String S = sc.next();
　　boolean result =false; 
      if(S.length()>3){result= S.substring(0,4).equals("YAKI") ? true:false;}
      if(result){
            out.println("Yes");
      }else{
            out.println("No");
      }
   }
}

Compiler output:
Main.java:8: error: illegal character: '\u3000'
??boolean result =false; 
^
Main.java:8: error: illegal character: '\u3000'
??boolean result =false; 
 ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> pii;
#define RI(a) scanf("%d",&a)
#define RII(a,b) scanf("%d%d",&a,&b)
#define RIII(a,b,c) scanf("%d%d%d",&a,&b,&c)
#define IOS ios_base::sync_with_stdio(0); cin.tie(0)
#define ALL(a) a.begin(),a.end()
#define F first
#define S second
#define REP(i,n) for(int i=0;i<(n);i++)
#define pb push_back
#ifdef leowang
#define debug(...) do{\
	fprintf(stderr,"%s - %d : (%s) = ",__PRETTY_FUNCTION__,__LINE__,#__VA_ARGS__);\
	_DO(__VA_ARGS__);\
}while(0)
template<typename I> void _DO(I&&x){cerr<<x<<endl;}
template<typename I,typename...T> void _DO(I&&x,T&&...tail){cerr<<x<<", ";_DO(tail...);}
#else
#define debug(...)
#endif
//}}}
const ll maxn=100005;
const ll maxlg=__lg(maxn)+2;
const ll INF64=8000000000000000000LL;
const int INF=2000000000;
 
int main()
{
	int n,m,k;
	cin>>n>>m>>k;
	
	for(int i=0;i<n;i++) for(int j=0;j<m;j++){
		if(m*i+n*j-i*j==k){
			puts("Yes");
			return 0;
		}
	}
	puts("No");
	return 0;
}

Compiler output:
a.cc:29:1: error: extended character   is not valid in an identifier
   29 |  
      | ^
a.cc:29:1: error: '\U000000a0' does not name a type
   29 |  
      | ^
Language: Java

 
import static java.lang.System.out;
import java.util.Scanner;
import java.util.Arrays;
public class Main{
   public static void main(String[]aa){
      Scanner sc = new Scanner(System.in); 
      iString S = sc.next();
　　boolean result =false; 
      if(S.length()>3){result= S.substring(0,4).equals("YAKI") ? true:false;}
      if(result){
            out.println("Yes");
      }else{
            out.println("No");
      }
   }
}

Compiler output:
Main.java:9: error: illegal character: '\u3000'
??boolean result =false; 
^
Main.java:9: error: illegal character: '\u3000'
??boolean result =false; 
 ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class CodeFes1 {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line;
        String word;

        while((line = br.readLine()) != null && !line.isEmpty() && line.length() > 3) {
            word = line.substring(0, 4);
            if (word.equals("YAKI")) {
                System.out.println("Yes");
            } else {
                System.out.println("No");
            }
        }
        System.out.println("No");

    }
}

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



import static java.lang.System.out;
import java.util.Scanner;
import java.util.Arrays;
public class Main{
   public static void main(String[]aa){
      Scanner sc = new Scanner(System.in); 
      iString S = sc.next();
      if(S.length()>3){boolean result = S.substring(0,4).equals("YAKI") ? true:false;}
      if(result){
            out.println("Yes");
      }else{
            out.println("No");
      }
   }
}

Compiler output:
Main.java:9: error: cannot find symbol
      iString S = sc.next();
      ^
  symbol:   class iString
  location: class Main
Main.java:11: error: cannot find symbol
      if(result){
         ^
  symbol:   variable result
  location: class Main
2 errors
Language: C

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

int main(void)

{
  char *a = "YAKI";
  
  char *b[10];
  
  scanf("%s",b)
  
  int count;

  count = strspn( b, a );
  
  if(len == 4)
  printf("Yes");
  else
  printf("No");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: expected ';' before 'int'
   11 |   scanf("%s",b)
      |                ^
      |                ;
   12 | 
   13 |   int count;
      |   ~~~           
main.c:15:3: error: 'count' undeclared (first use in this function)
   15 |   count = strspn( b, a );
      |   ^~~~~
main.c:15:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:19: error: passing argument 1 of 'strspn' from incompatible pointer type [-Wincompatible-pointer-types]
   15 |   count = strspn( b, a );
      |                   ^
      |                   |
      |                   char **
In file included from main.c:2:
/usr/include/string.h:297:35: note: expected 'const char *' but argument is of type 'char **'
  297 | extern size_t strspn (const char *__s, const char *__accept)
      |                       ~~~~~~~~~~~~^~~
main.c:17:6: error: 'len' undeclared (first use in this function)
   17 |   if(len == 4)
      |      ^~~
Language: C++

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

#include<bits/stdc..h>
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: bits/stdc..h: No such file or directory
    1 | #include<bits/stdc..h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: Java


import java.util.Scanner;
import java.util.regex.Pattern;

public class Maini {

	public static void main(String[] args) {
		Scanner inPut = new Scanner(System.in);
		String s = inPut.nextLine();

		String pattern = "^YAKI.*";
		boolean isMatch = Pattern.matches(pattern, s);
		if(isMatch==true ){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}

	}

}


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

int main(){
 char s[10];
 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:
a.cc: In function 'int main()':
a.cc:3:2: error: 'scanf' was not declared in this scope
    3 |  scanf("%s",s);
      |  ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("Yes");
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:3: error: 'printf' was not declared in this scope
    8 |   printf("No");
      |   ^~~~~~
a.cc:8:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include<cstring>
#include<vector>
#include<cmath>
#include<queue>
#include<stack>
using namespace std;
#define INT(x) int x; scanf("%d",&x)
#define LL(x) ll x; scanf("%lld",&x)
#define INPUT(x) cin >> x
#define REP1(x,n) for(int x = 0; x < n; x++)
#define REP2(x,s,e) for(int x = s; x <= e; x++)
#define RREP1(x,n) for(int x = n-1; x >= 0; x--)
#define RREP2(x,s,e) for(int x = s; x >= e; x--)
#define BR printf("\n")
#define INF_INT 2147483647
#define INF_LL 9223372036854775807

typedef long long ll;

bool flag(string s){
    string yaki = "yaki";
    if (s.size < 4) {
        return false;
    }
    REP1(i, 4){
        if(yaki[i] != s[i]) return false;
    }
    
    return true;
}

int main(){
    string s;
    
    cin >> s;
    
    if (flag(s)) {
        cout << "No" << endl;
    }else{
        cout << "Yes" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'bool flag(std::string)':
a.cc:26:11: 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 '()' ?)
   26 |     if (s.size < 4) {
      |         ~~^~~~
      |               ()
Language: C++

int main(){
 char s[10];
 scanf("%s",s);
 if(s[0]=='Y'&&s[1]=='A'&&s[2]=='K'&&s[3]=='I'){
  printf("Yes");
 }
 else{
  printf("No");
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:3:2: error: 'scanf' was not declared in this scope
    3 |  scanf("%s",s);
      |  ^~~~~
a.cc:5:3: error: 'printf' was not declared in this scope
    5 |   printf("Yes");
      |   ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:8:3: error: 'printf' was not declared in this scope
    8 |   printf("No");
      |   ^~~~~~
a.cc:8:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:9:2: error: expected '}' at end of input
    9 | }
      |  ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
#include <climits>
#include <cstdio>
#include <string>
using namespace std;
#define loop(i,n) for(int i = 0; i < (n); i++)
#define loops(i,f,n) for(int i = (f); i < (n); i++)
#define VEC vector<int>
#define INF INT_MAX
#define debug(a) cout<<a
// vector<VEC> v (n, VEC(n))
VEC timeline(482, 0);

void fill(int a, int b)
{
	timeline[a / 5] = 1;
	timeline[b / 5] = 1;
	for (int i = a / 5+1; i < b / 5; i++)
	{
		if (timeline[i] != 0)
	}
}

int main()
{
		string a, b, c;
		cin >> a;
		b = a.substr(0, 4);
		if (b == "YAKI")cout << "Yes" << endl;
		else cout << "No" << endl;

}

Compiler output:
a.cc: In function 'void fill(int, int)':
a.cc:23:9: error: expected primary-expression before '}' token
   23 |         }
      |         ^
Language: Java

import java.util.*;
class Main {
	
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		String s = sc.nextInt();
		if(s.length() < 4){
			System.out.println("No");
		} else {
			if(s.substring(0,5).equals("YAKI"){
				System.out.println("Yes");
			} else {
				System.out.println("No");
			}
		}
	}
}

Compiler output:
Main.java:10: error: ')' expected
			if(s.substring(0,5).equals("YAKI"){
			                                  ^
1 error
Language: C++

I#include <iostream>
using namespace std;

int main(void){

	char c[10] = {0};
	
	cin >> c;
	
	if(c[0] != 'Y'){
		cout << "No" << endl;
	}
	else if(c[1] != 'A'){
		cout << "No" << endl;
	}
	else if(c[2] != 'K'){
		cout << "No" << endl;
	}
	else if(c[3] != 'I'){
		cout << "No" << endl;
	}else {
		cout << "Yes" << endl;
	}
	return 0;
}

Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | I#include <iostream>
      |  ^
a.cc:1:1: error: 'I' does not name a type
    1 | I#include <iostream>
      | ^
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> c;
      |         ^~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:11:33: error: 'endl' was not declared in this scope
   11 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:14:33: error: 'endl' was not declared in this scope
   14 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:17:33: error: 'endl' was not declared in this scope
   17 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:20:17: error: 'cout' was not declared in this scope
   20 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:20:33: error: 'endl' was not declared in this scope
   20 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:22:34: error: 'endl' was not declared in this scope
   22 |                 cout << "Yes" << endl;
      |                                  ^~~~
Language: C++

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

int mian()
{
	ios::sync_with_stdio(0);
	cin.tie(0);
	string s;
	cin >> s;
	int len = s.size();
	if(len<4)	cout<<"No\n";
	else if(s[0]!='Y'||s[1]!='A'||s[2]!='K'||s[3]!='I')	cout<<"No\n";
	else cout<<"Yes\n";
	return 0;
 } 

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

#define FNAME ""

#ifdef LOCAL
    #define _GLIBCXX_DEBUG
#endif

#include <bits/stdc++.h>

#define hash padjf9srpi
#define y0 sdkfaslhagaklsldk
#define y1 aasdfasdfasdf
#define yn askfhwqriuperikldjk
#define j1 assdgsdgasghsf
#define tm sdfjahlfasfh
#define lr asgasgash
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define forn(i, n) for (int i = 0; i < (n); i++)
#define fornr(i, n) for (int i = (n) - 1; i >= 0; i--)
#define forab(i, a, b) for (int i = (a); i < (b); i++)
#define gcd __gcd
#define all(a) (a).begin(), (a).end()
 
#ifdef _WIN32
    #define I64 "%I64d"
#else
    #define I64 "%lld"
#endif

using namespace std;

typedef long long LL;
typedef unsigned long long ULL;
typedef long double LD;
typedef long long ll;
typedef unsigned long long ull;
typedef long double ld;
typedef pair <int, int> pii;                                                                                                                                                                                      
typedef vector <int> vi;

template <class T> T sqr(const T &a) {return a * a;}

char s[100];


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

#ifdef LOCAL
    freopen(FNAME".in", "r", stdin);
    freopen(FNAME".out", "w", stdout);
#endif

    gets(s);
    int n = strlen(s);
    if (n >= 4 && s[0] == 'Y' && s[1] == 'A' && s[2] == 'K' && s[3] == 'I') {
        puts("Yes");
    }else puts("No");
}
    




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

#include <bits\stdc++.h>
using namespace std;
string st;
int main()
{
	cin>>st;
	if (st.size()<4||st.substr(0,4)!="YAKI")
	{
		cout<<"No";
		return 0;
	}
	cout<<"Yes";
	return 0;
}

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

#include <iostream>
#include <sstream>
#include <fstream>
#include <string>
#include <vector>
#include <deque>
#include <queue>
#include <stack>
#include <set>
#include <map>
#include <algorithm>
#include <functional>
#include <utility>
#include <bitset>
#include <cmath>
#include <cstdlib>
#include <ctime>
#include <cstdio>

using namespace std;

namespace {
	int main() {

		string s;
		cin >> s;

		bool ans = s.compare(0, 4, "YAKI") == 0;

		cout << (ans ? "Yes" : "No") << "\n";

		return 0;
	}
}



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