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

#include<stdio.h>

int void(main){
    int cnt = 0;
    char b[16] ;
    char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
    
    scanf(%s,b);

    for(i = 0; i>16; i++){
        if(b[i] != c[i]){
	    b[i] = c[i];
	    cnt = cnt + 1;
	}
    
    }
    return 0;
}


Compiler output:
a.cc:3:1: error: two or more data types in declaration of 'main'
    3 | int void(main){
      | ^~~
a.cc:4:5: error: expected primary-expression before 'int'
    4 |     int cnt = 0;
      |     ^~~
a.cc:4:5: error: expected '}' before 'int'
a.cc:3:15: note: to match this '{'
    3 | int void(main){
      |               ^
a.cc:6:19: error: 'C' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                   ^
a.cc:6:21: error: 'O' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                     ^
a.cc:6:23: error: 'D' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                       ^
a.cc:6:25: error: 'E' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                         ^
a.cc:6:27: error: 'F' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                           ^
a.cc:6:29: error: 'E' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                             ^
a.cc:6:31: error: 'S' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                               ^
a.cc:6:33: error: 'T' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                                 ^
a.cc:6:35: error: 'I' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                                   ^
a.cc:6:37: error: 'V' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                                     ^
a.cc:6:39: error: 'A' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                                       ^
a.cc:6:41: error: 'L' was not declared in this scope
    6 |     char c[16] = {C,O,D,E,F,E,S,T,I,V,A,L,2,0,1,6};
      |                                         ^
a.cc:8:10: error: expected constructor, destructor, or type conversion before '(' token
    8 |     scanf(%s,b);
      |          ^
a.cc:10:5: error: expected unqualified-id before 'for'
   10 |     for(i = 0; i>16; i++){
      |     ^~~
a.cc:10:16: error: 'i' does not name a type
   10 |     for(i = 0; i>16; i++){
      |                ^
a.cc:10:22: error: 'i' does not name a type
   10 |     for(i = 0; i>16; i++){
      |                      ^
a.cc:17:5: error: expected unqualified-id before 'return'
   17 |     return 0;
      |     ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int count = 0;
		String s = sc.next();
        String sa[];
        sa = new String[s.length()];
        String c = "CODEFESTIVAL2016";
        String ca[];
        ca = new String[c.length()];
        for(i=0; i++; i<c.length()){
            if(i < c.length() -1){
            ca[i] = c.substring(i, i+1);
            sa[i] = s.substring(i, i+1);
            }
            else{
            ca[i] = c.substring(i);
            sa[i] = s.substring(i);
            }
            if(ca[i] == sa[i]){
            count = count + 1;
            }
        }
		// 出力
		System.out.println(s);
	}
}

Compiler output:
Main.java:12: error: not a statement
        for(i=0; i++; i<c.length()){
                       ^
1 error
Language: C

#include <stdio.h>

int main(void)
{
  int i,ans = 0;
  char S[17],dash[17] = "CODEFESTIVAL2016";
  fgets(S,sizeof(S),stdin);
  for (i = 0,i < 16,i++) {
    if (S[i] != dash[i]) ans++;
  }
  printf("%d\n",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected ';' before ')' token
    8 |   for (i = 0,i < 16,i++) {
      |                        ^
      |                        ;
main.c:8:24: error: expected expression before ')' token
Language: Java

import java.util.Scanner;
public class Signboard {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		String compare = "CODEFESTIVAL2016";
		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);
		while(sc.hasNext())
		{
			String compared = sc.nextLine();
			System.out.println(needtochange(compare,compared));
		}
	}
	public static int needtochange(String s1,String s2)
	{
		int sum = 0;
		for(int i=0;i<s1.length();i++)
		{
			if(s1.charAt(i) != s2.charAt(i))
				sum++;
		}
		return sum;
	}
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
        int count = 0;
		String s = sc.next();
        String sa[];
        sa = new String[s.length()];
        String c = "CODEFESTIVAL2016";
        String ca[];
        ca = new String[c.length()];
        for(i=0; i++; i<c.length(){
            if(i < c.length() -1){
            ca[i] = c.substring(i, i+1);
            sa[i] = s.substring(i, i+1);
            }
            else{
            ca[i] = c.substring(i);
            sa[i] = s.substring(i);
            }
            if(ca[i] == sa[i]){
            count = count + 1;
            }
        }
		// 出力
		System.out.println(s);
	}
}

Compiler output:
Main.java:12: error: not a statement
        for(i=0; i++; i<c.length(){
                       ^
Main.java:12: error: ')' expected
        for(i=0; i++; i<c.length(){
                                  ^
2 errors
Language: C++

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

int main() {
  char s[32];
  char r[] = "CODEFESTIVAL2016";
  gets(s);
  int ans = 0;
  int n = strlen(s);
  for (int i = 0; i < n; ++i)
  {
    ans += r[i] != s[i];
  }
  printf("%d\n", ans);
  return 0;
}

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

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

char CODE[17] = "CODEFESTIVAL2016";


int main(){
	
	int cnt = 0;
	char S[17];
	for(int i = 0 ; i < 17 ; i++){
		scanf_s("%c",&S[i]);
	}
	for(int i = 0 ; i < 17 ; i++){
		if(!(CODE[i] == S[i])){
			cnt++;
		}
	}
	printf("%d\n",cnt - 1);


}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   14 |                 scanf_s("%c",&S[i]);
      |                 ^~~~~~~
      |                 scanf
Language: C++

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <cstring>
#include <vector>

int main(){
  char s[20];
  char t[20];
  int count = 0;
  cin >> s;
  strcpy(t, "CODEFESTIVAL2016");

  for(int i = 0; i < 16; i++){
    if(s[i] != t[i]){
      count++;
    }
  }
  count << count << endl;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |   cin >> s;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:19:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   19 |   count << count << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ConsoleApplication1
{
    class Program
    {
        static void Main(string[] args)
        {
            string s = Console.ReadLine();
            string ss = "CODEFESTIVAL2016";
            int ans = 0;
            for (int i = 0; i < s.Length; i++)
            {
                if (s[i] != ss[i])
                {
                    ans ++;
                }
            }
            Console.WriteLine(ans);
            Console.ReadLine();

        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:10:26: error: 'string' has not been declared
   10 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:10:35: error: expected ',' or '...' before 'args'
   10 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:26:6: error: expected ';' after class definition
   26 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApplication1::Program::Main(int*)':
a.cc:12:13: error: 'string' was not declared in this scope
   12 |             string s = Console.ReadLine();
      |             ^~~~~~
a.cc:13:20: error: expected ';' before 'ss'
   13 |             string ss = "CODEFESTIVAL2016";
      |                    ^~
a.cc:15:33: error: 's' was not declared in this scope
   15 |             for (int i = 0; i < s.Length; i++)
      |                                 ^
a.cc:17:29: error: 'ss' was not declared in this scope
   17 |                 if (s[i] != ss[i])
      |                             ^~
a.cc:22:13: error: 'Console' was not declared in this scope
   22 |             Console.WriteLine(ans);
      |             ^~~~~~~
Language: C

#inlcude<stdio.h>
int main(){
	char ,w[20],s[]={"C0DEFESTIVAL2O16"};
	int i,j=0;
	scanf("%s",w);
	for(i=0;s[i];i++){
		if(s[i]-w[i])j++;
	}
	printf("%d\n",j);
	return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:3:14: error: expected identifier or '(' before ',' token
    3 |         char ,w[20],s[]={"C0DEFESTIVAL2O16"};
      |              ^
main.c:5:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |         scanf("%s",w);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:5:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |         scanf("%s",w);
      |         ^~~~~
main.c:5:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:20: error: 'w' undeclared (first use in this function)
    5 |         scanf("%s",w);
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: 's' undeclared (first use in this function)
    6 |         for(i=0;s[i];i++){
      |                 ^
main.c:9:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |         printf("%d\n",j);
      |         ^~~~~~
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <iostream>
#include <string>

using namespace std;
int main(){
  string s;
  cin >> s;
  
  string s0 = "CODEFESTIVAL2016";
  int ans = 0;
  for(int i = 0; i < s0.length; i++){
    if(s[i] != s0[i]) ans++;
  }
  cout << ans << endl;
}

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

#include <stdio.h>

int main(void)
{
	char fes[16] = 'CODEFESTIVAL2016' ;
	char s[16] ;
	int i,n ;
	
	scanf("%s",&s) ;
	
	for(i=0 ; i<16 ; i++){
		if(fes[i]==s[i]) n++ ;
	}
	
	printf("%d\n",n) ;
	
	return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:5:24: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes
    5 |         char fes[16] = 'CODEFESTIVAL2016' ;
      |                        ^~~~~~~~~~~~~~~~~~
main.c:5:24: error: invalid initializer
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int,int> pii;
typedef vector<int> VI;
typedef vector<VI> VVI;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const int INF = numeric_limits<int>::max() / 2;
const int NEG_INF = numeric_limits<int>::min() / 2;

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

  string s;
  cin >> s;
  int count=0;
  string ans="CODEFESTIVAL2016";
  for(int i=0;i<16;i++){
    if(s[i]!=ans[i]) count++

  }
  cout << count << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:29: error: expected ';' before '}' token
   23 |     if(s[i]!=ans[i]) count++
      |                             ^
      |                             ;
   24 | 
   25 |   }
      |   ~
Language: C++

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

int main(){
   string a,b="CODEFESTIVAL2016";
   cin>>a;
   int c=0;
   for(i=0;i<a.size();i++) if(a[i]!=b[i])c++;
   cout<<c<<endl;
   return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |    for(i=0;i<a.size();i++) if(a[i]!=b[i])c++;
      |        ^
Language: C++

Last login: Mon Oct 10 12:45:01 on console
yutakasehiroto-no-MacBook-Air:~ toyosehiroto$ cd ./Documents/Atcoder/
yutakasehiroto-no-MacBook-Air:Atcoder toyosehiroto$ cd others/
yutakasehiroto-no-MacBook-Air:others toyosehiroto$ lla
total 24
drwxr-xr-x   7 toyosehiroto  staff   238 10  2 20:42 .
drwxr-xr-x   8 toyosehiroto  staff   272  8 21 23:10 ..
-rw-r--r--@  1 toyosehiroto  staff  8196  9 24 17:44 .DS_Store
drwxr-xr-x   3 toyosehiroto  staff   102 10  2 20:42 KUPC
drwxr-xr-x   5 toyosehiroto  staff   170  9 24 17:44 code-festival
drwxr-xr-x   6 toyosehiroto  staff   204  9 10 21:06 tenka1
drwxr-xr-x  11 toyosehiroto  staff   374  8  7 13:36 tkppc2
yutakasehiroto-no-MacBook-Air:others toyosehiroto$ cd code-festival/
yutakasehiroto-no-MacBook-Air:code-festival toyosehiroto$ lla
total 16
drwxr-xr-x   5 toyosehiroto  staff   170  9 24 17:44 .
drwxr-xr-x   7 toyosehiroto  staff   238 10  2 20:42 ..
-rw-r--r--@  1 toyosehiroto  staff  6148  9 24 17:44 .DS_Store
drwxr-xr-x  11 toyosehiroto  staff   374  9 24 19:44 2015qA
drwxr-xr-x  11 toyosehiroto  staff   374  9 26 18:22 2016qA
yutakasehiroto-no-MacBook-Air:code-festival toyosehiroto$ mkdir 2016qB
yutakasehiroto-no-MacBook-Air:code-festival toyosehiroto$ cp -r ../../Template/ 2016qB
yutakasehiroto-no-MacBook-Air:code-festival toyosehiroto$ cd 2016qB
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ g++11 a.cpp 
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ sublime
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ g++11 a.cpp 
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ ./a.out 
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ cp a.cpp e.cpp
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ g++11 a.cpp 
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ ./a.out 
C0DEFESTIVAL2O16
2
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ ./a.out 
FESTIVAL2016CODE
16
yutakasehiroto-no-MacBook-Air:2016qB toyosehiroto$ 


Compiler output:
a.cc:8:11: error: stray '@' in program
    8 | -rw-r--r--@  1 toyosehiroto  staff  8196  9 24 17:44 .DS_Store
      |           ^
a.cc:18:11: error: stray '@' in program
   18 | -rw-r--r--@  1 toyosehiroto  staff  6148  9 24 17:44 .DS_Store
      |           ^
a.cc:1:1: error: 'Last' does not name a type
    1 | Last login: Mon Oct 10 12:45:01 on console
      | ^~~~
Language: C++

ans = 0
s = 'CODEFESTIVAL2016'
t = raw_input().strip()
for i in xrange(16):
    if s[i] != t[i]: ans +=1
print ans


Compiler output:
a.cc:2:5: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes
    2 | s = 'CODEFESTIVAL2016'
      |     ^~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'ans' does not name a type
    1 | ans = 0
      | ^~~
Language: C++

#include <iostream>
#include <queue>
#include <stack>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <cstring>
#include <vector>
#include <list>

int main() {
    const char* s = "CODEFESTIVAL2016";

    std::string str;

    std::cin >> str;

    int cnt = 0;
    for(int i = 0; i < str.size(); ++i) {
        if(str[i] != s) {
            ++cnt;
        }
    }

    std::cout << cnt << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   20 |         if(str[i] != s) {
Language: C++

s = raw_input()
t = "CODEFESTIVAL2016"
x = 0
assert len(s) == len(t)
for i in range(len(t)):
    x += 1 if s[i] != t[i] else 0
print x


Compiler output:
a.cc:1:1: error: 's' does not name a type
    1 | s = raw_input()
      | ^
Language: C++

#include <bits/stdc++.h> 
using namespace std; 
const int dx[]={1,0,-1,0,1,-1,-1,1}; 
const int dy[]={0,1,0,-1,1,1,-1,-1}; 
const int INF = 1e9; 
const long long LINF = 1e18; 
const double EPS = 1e-8; 
#define pb emplace_back 
#define mk make_pair 
#define fr first 
#define sc second 
#define ll long long 
#define reps(i,j,k) for(int i = (j); i < (k); ++i) 
#define rep(i,j) reps(i,0,j) 
#define all(a) (a).begin(),(a).end() 
#define MOD 1000000007 
typedef pair<int,int> Pii; 
typedef vector<int> vi; 
typedef pair<string, int> Psi; 
typedef pair<ll, ll> Pll;

int main(){
	string str;
	cin >> str;
	int cnt = 0;	string hoge = "CODEFESTIVAL2015"
	rep(i,str.size()){
		if(str[i] != hoge[i]){
			++cnt;
		}
	}
	cout << cnt << endl;
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:21: error: expected ',' or ';' before 'for'
   13 | #define reps(i,j,k) for(int i = (j); i < (k); ++i)
      |                     ^~~
a.cc:14:18: note: in expansion of macro 'reps'
   14 | #define rep(i,j) reps(i,0,j)
      |                  ^~~~
a.cc:26:9: note: in expansion of macro 'rep'
   26 |         rep(i,str.size()){
      |         ^~~
a.cc:26:13: error: 'i' was not declared in this scope; did you mean 'vi'?
   26 |         rep(i,str.size()){
      |             ^
a.cc:13:38: note: in definition of macro 'reps'
   13 | #define reps(i,j,k) for(int i = (j); i < (k); ++i)
      |                                      ^
a.cc:26:9: note: in expansion of macro 'rep'
   26 |         rep(i,str.size()){
      |         ^~~
Language: C++

        #include <bits/stdc++.h>
        #include<iostream>
        #include<cstdio>
        #include<vector>
        #include<queue>
        #include<map>
        #include<cstring>
        #include<string>
        #include <math.h>
        #include<algorithm>
    //    #include <boost/multiprecision/cpp_int.hpp>
        #include<functional>
  //    #define int long long
        #define inf  1000000007
        #define pa pair<int,int>
#define ll long long
        #define pal pair<ll,ll>
        #define ppa pair<int,pa>
        #define  mp make_pair
        #define EPS (1e-10)
        #define equals(a,b) (fabs((a)-(b))<EPS)

        using namespace std;

        class Point{
        	public:
        	double x,y;
        	Point(double x=0,double y=0):x(x),y(y) {}
        	Point operator + (Point p) {return Point(x+p.x,y+p.y);}
        	Point operator - (Point p) {return Point(x-p.x,y-p.y);}
        	Point operator * (double a) {return Point(x*a,y*a);}
        	Point operator / (double a) {return Point(x/a,y/a);}
        	double absv() {return sqrt(norm());}
        	double norm() {return x*x+y*y;}
        	bool operator < (const Point &p) const{
        		return x != p.x ? x<p.x: y<p.y;
        	}
        	bool operator == (const Point &p) const{
        		return fabs(x-p.x)<EPS && fabs(y-p.y)<EPS;
        	}
        };
        typedef Point Vector;

        struct Segment{
        Point p1,p2;
        };

    double hen(Vector a){
    if(fabs(a.x)<EPS && a.y>0) return acos(0);
    else if(fabs(a.x)<EPS && a.y<0) return 3*acos(0);
    else if(fabs(a.y)<EPS && a.x<0) return 2*acos(0);
    else if(fabs(a.y)<EPS && a.x>0) return 0.0;
    else if(a.y>0) return acos(a.x/a.absv());
    else return 2*acos(0)+acos(-a.x/a.absv());

    }

        double dot(Vector a,Vector b){
        	return a.x*b.x+a.y*b.y;
        }
        double cross(Vector a,Vector b){
        	return a.x*b.y-a.y*b.x;
        }
        int dx[4] = {1, 0, -1, 0};
        int dy[4] = {0, 1, 0, -1};
        //----------------kokomade temple------------



signed main(){
string s="CODEFESTIVAL2016",t;
	int n,m,k;
cin>>t;
	int ans=0;
	for(int i=0;i<16;i++){
		if(s[i]!=t[i]) ans++
	}
	cout<<ans<<endl;
	
	return 0;
}

//printf("%.10f\n",ans);


Compiler output:
a.cc: In function 'int main()':
a.cc:76:37: error: expected ';' before '}' token
   76 |                 if(s[i]!=t[i]) ans++
      |                                     ^
      |                                     ;
   77 |         }
      |         ~
Language: C++

#include <iostream> 
#include <string> 
#include <vector> 
#include <cmath> 
#include <algorithm> 
#include <cstdlib> 
#include <ctime> 
#include <cstdio> 
#include <functional> 
#include <set> 
#include <sstream> 
#include <cctype>
#include <stack>
#include <queue>
#include <cstring>
#include <map>
#include <list>
#include <cassert>
 
using namespace std; 

const long long INF=1LL<<50LL;
const double PI=3.14159265358979323846264;
const long long mod=1000000000LL+7LL;

long long gcd(long long x,long long y){
	return y==0 ? x : gcd(y,x%y);
}

int main(){

	string s="CODEFESTIVAL2016";

	string t;
	cin>>t;

	int res=0;
	for(int i=0;i<n;i++) res+=s[i]!=t[i];
	cout<<res<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:23: error: 'n' was not declared in this scope
   38 |         for(int i=0;i<n;i++) res+=s[i]!=t[i];
      |                       ^
Language: C++

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

int main(){
  int n,a,b;
  cin >> n >> a >> b;
  string s;
  cin >> s;
  int cnt = 0;
  int cntb = 0;
  rep(i,n){
    if(s[i]=='a'){
      if(cnt<a+b){
        cout << "Yes" << endl;
        cnt++;
      }
      else cout << "No" << endl;
    }
    if(s[i]=='b'){
      if((cnt<a+b)&&(cntb<b)){
        cout << "Yes" << endl;
        cnt++; cntb++;
      }
      else cout << "No" << endl;
    }
    if(s[i]=='c'){
      cout << "No" << endl;
    }
  }
}


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

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

int main()
{
  int n, a, b;
  cin >> n >> a >> b;

  int cnt=0, cnt_i=0;

  string s;
  cin >> s;

  for(int i=0; i<n; i++)
  {
    if(s.at[i]=='a')
    {
      if(cnt<a+b){
        cout << "Yes" << endl;
        cnt++;
      }
      else
      {
        cout << "No" << endl;
      }
    }
    else if(s.at[i]=='b')
    {
      if(cnt<a+b && cnt_i<b)
      {
        cout << "Yes" << endl;
        cnt++, cnt_i++;
      }
      else
      {
        cout << "No" << endl;
      }
    }
    else
    {
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |     if(s.at[i]=='a')
      |            ^
a.cc:27:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   27 |     else if(s.at[i]=='b')
      |                 ^
Language: C++

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

int main()
{
  int n, a, b;
  cin >> n >> a >> b;

  int cnt=0, cnt_i=0;

  string s;
  cin >> s;

  for(int i=0; i<s.size(); i++)
  {
    if(s.at[i]=='a')
    {
      if(cnt<a+b){
        cout << "Yes" << endl;
        cnt++;
      }
      else
      {
        cout << "No" << endl;
      }
    }
    else if(s.at[i]=='b')
    {
      if(cnt<a+b && cnt_i<b)
      {
        cout << "Yes" << endl;
        cnt++, cnt_i++;
      }
      else
      {
        cout << "No" << endl;
      }
    }
    else
    {
      cout << "No" << endl;
    }
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   16 |     if(s.at[i]=='a')
      |            ^
a.cc:27:17: error: invalid types '<unresolved overloaded function type>[int]' for array subscript
   27 |     else if(s.at[i]=='b')
      |                 ^
Language: C

#include<stdio.h>
int main(){
  int N,B,A;
  scanf("%d%d%d",&N,&B,&A);
  char S[10000000];
  scanf("%s",S);

  int counta=0,countb=0;

  for(int i=0;i<N;i++){
    if(S[i]=='a'){
      if(A+B>counta){
        counta++;
        printf("Yes\n");
      }

    else if(S[i]=='b'){
      if(A+B>counta && countb<=B){
        countb++;
        counta++;
        printf("Yes\n");
      }

    else {
      printf("No\n");
    }
  }
  return 0;
}


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

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

int main() {
	int n, a, b;
	cin >> n >> a >> b;
	string s;
	cin >> s;
	int count = 0;
	int countf = 0;
	for (int i = 0; i < n; i++) {
		if (s[i] == 'a') {
			if (count < a + b) {
				cout << "Yes" << endl;
				count++;
			}
			else {
				cout << "No" << endl;
			}
		}
		else if (s[i] == 'b') {
			if (count < a + b && countf < b) {
				cout << "Yes" << endl;
				countf++;
				count++;
			}
			else {
				cout << "No" << endl;
			}
		}
		else {
			cout << "No" << endl;
		}
	}

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

#include <bits/stdc++.h>
using namespace std;
 
int main(){
	int N, A, B, S;
  	cin >> N >>A >>B;
  	
  	vector<string> vec(N);
	for (int i = 0; i < N; i++) {
  		cin >> vec.at(i);
	}
  
  	for (int j = 0; j < N; j++) {
    	if(vec.at(j)=="a" && sum<A+B ){
        	cout << "Yes" <<endl;
          	S++;
        }
      	else if(vec.at(j)=="b" && j<B){
        	cout << "Yes" <<endl;
          	S++;
        }
      	else{
        	cout << "No" <<endl;
        }
    }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: 'sum' was not declared in this scope
   14 |         if(vec.at(j)=="a" && sum<A+B ){
      |                              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n , a, b;
  cin >> n >> a >> b;
  string s ;
  int dom = 0;
  int fore = 0; 
  for ( int i=0 ; i<n ; i++){
    if (s.at(i) == 'c'){
      cout << "No"<< endl;
      continue ;
    }else if ( s.at(i) == 'a'){
      if (dom+fore<=n){
      cout <<  "Yes"  << endl;
      dom++ ;
      continue ;
      }else {
        cout << "No"  << endl;
        continue ;
      }
    }else if ( s.at(i) == 'b'){
      if (dom + fore <= n && fore<=b){
      cout << "Yes"  << endl;
        fore ++ ;
        continue ;
      }else {
        cout << "No"  << endl;
      continue ;
      }
  }
}

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

#include <bits/stdc++.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#define pi 3.14159265358979323846264338327950L
using namespace std;

int main() {
  int N, A, B, Pa=0, Pb=0,;
  cin >> N >> A >> B;
  string S;
  cin >> S;
  for (int i=0; i<N; i++) {
    if (S[i]=='a') {
      if (Pa<A+B) {
        cout << "Yes" << endl;
        Pa=Pa+1;
      }
      else {
        cout << "No" << endl;
      }
    }
    else if (S[i]=='b') {
      if (Pa<A+B && Pb<B) {
        cout << "Yes" << endl;
        Pa=Pa+1;
        Pb=Pb+1;
      }
      else {
        cout << "No" << endl;
      }
    }
    else {
      cout << "No" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:27: error: expected unqualified-id before ';' token
   21 |   int N, A, B, Pa=0, Pb=0,;
      |                           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N=0,A=0,B=0;
  cin>>N>>A>>B;
  string S;
  cin>>S;
  int count=0;
  int countb=0;
  for(int i=0;i<N;i++){
    string S.at(i);
    if(S.at(i)=="a"&&count<(A+B)){
        count+=1;
        cout<<"Yes"<<endl;
    }
    else if(S.at(i)=="b"&&count<(A+B)&&countb<B){
        count+=1;
        countb+=1;
        cout<<"Yes"<<endl;
    }
    else{
      cout<<"No"<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected initializer before '.' token
   11 |     string S.at(i);
      |             ^
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(S.at(i)=="a"&&count<(A+B)){
      |        ~~~~~~~^~~~~
a.cc:16:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(S.at(i)=="b"&&count<(A+B)&&countb<B){
      |             ~~~~~~~^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N=0,A=0,B=0;
  cin>>N>>A>>B;
  string S;
  cin>>S;
  int count=0;
  int countb=0;
  for(int i=0;i<N;i++){
    char S.at(i);
    if(S.at(i)=="a"&&count<(A+B)){
        count+=1;
        cout<<"Yes"<<endl;
    }
    else if(S.at(i)=="b"&&count<(A+B)&&countb<B){
        count+=1;
        countb+=1;
        cout<<"Yes"<<endl;
    }
    else{
      cout<<"No"<<endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: expected initializer before '.' token
   11 |     char S.at(i);
      |           ^
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(S.at(i)=="a"&&count<(A+B)){
      |        ~~~~~~~^~~~~
a.cc:16:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(S.at(i)=="b"&&count<(A+B)&&countb<B){
      |             ~~~~~~~^~~~~
Language: C++

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

int main(){
  int N,A,B,a=0,b=1;
  string S;
  cin>>N>>A>>B>>S;
  for(int i=0; i<N; i++){
    if(S[i] == 'c'){
      cout << "No" << endl;
    }
    else if(S[i] == 'a'){
      if(a<A+B){
        cou t<< "Yes" << endl;
        a++;
      }
      else{
        cout<<"No"<<endl;
      }
    }
    else{
      if(a<A+B && b<=B){
        cout << "Yes" << endl;
        a++;
      }
      else{
        cout<<"No"<<endl;
      b++;
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'cou' was not declared in this scope; did you mean 'cos'?
   14 |         cou t<< "Yes" << endl;
      |         ^~~
      |         cos
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

n,a,b = map(int,input().split())

a_cnt,b_cnt,cnt = 0,0,0
s = input()
cnt = a+b
for i in range(n):
    if s[i] == "a":
        if a_cnt + b_cnt <= cnt:
            #print(a_cnt + b_cnt)
            print("Yes")
        else:
            print("No")
        a_cnt +=1
    elif s[i] == "b":
        if a_cnt + b_cnt < cnt and b_cnt < b:
            print("Yes")
        else:
            print("No")
        b_cnt +=1
    elif s[i] == "c":
        print("No")


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
n,a,b = map(int,input().split())
^
Main.java:9: error: illegal character: '#'
            #print(a_cnt + b_cnt)
            ^
2 errors
Language: C++

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

int main(){
  int n,a,b;
  cin >> n >> a >> b;
  string s;

  int cnt_tot = 0;
  int cnt_foreign = 0;

  int m = s.size();

  rep(i,n) {
    if(s[i] == 'a'){
      if(cnt_tot < a+b) cout << Yes << endl;
      else cout << "No" << endl;
      cnt_tot++;
    }
    else if(s[i] == 'b'){
      if(cnt_tot < a + b && cnt_foreign+1 <= b) cout << "Yes" << endl;
      else cout << "No" << endl;
      cnt_tot++;
      cnt_foreign++;
    }
    else {
      cout << "No" << endl;
      cnt_tot++;
    }
    
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: 'Yes' was not declared in this scope
   19 |       if(cnt_tot < a+b) cout << Yes << endl;
      |                                 ^~~
Language: C++

n, a, b = list(map(int, input().split()))
s = input()

cnt = 0
oversea = 0

for each in s:
    if each == 'a' and cnt < a + b:
        print('Yes')
        cnt += 1
        continue
    if each == 'b' and cnt < a + b and oversea < b:
        print('Yes')
        cnt += 1
        oversea += 1
        continue
    else:
        print('No')

Compiler output:
a.cc:9:15: warning: multi-character character constant [-Wmultichar]
    9 |         print('Yes')
      |               ^~~~~
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |         print('Yes')
      |               ^~~~~
a.cc:18:15: warning: multi-character character constant [-Wmultichar]
   18 |         print('No')
      |               ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n, a, b = list(map(int, input().split()))
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int x=0,y=0;
  int n; cin >> n;
  int a,b; cin >> a >> b;
  string s; cin >> s;
  int n = (int)s.size();
  for(int i = 0; i < n; ++i){
    if(s[i] == 'a'){
      if(x+y<a+b){
        cout << "yes" << endl;
        x++;
      }
      else cout << "No" << endl;
    } else if(s[i] == 'b'){
      if(x+y<a+b&&y<b){
        cout << "Yes" << endl;
        y++;
      } else cout << "No" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: redeclaration of 'int n'
    8 |   int n = (int)s.size();
      |       ^
a.cc:5:7: note: 'int n' previously declared here
    5 |   int n; cin >> n;
      |       ^
Language: C++

#include<iosteam>
using namespace std;
int main(){
  int x=0,y=0;
  int n; cin >> n;
  int a,b; cin >> a >> b;
  string s; cin >> s;
  int n = (int)s.size();
  for(int i = 0; i < n; ++i){
    if(s[i] == 'a'){
      if(x+y<a+b){
        cout << "yes" << endl;
        x++;
      }
      else cout << "No" << endl;
    } else if(s[i] == 'b'){
      if(x+y<a+b&&y<b){
        cout << "Yes" << endl;
        y++;
      } else cout << "No" << endl;
    } else {
      cout << "No" << endl;
    }
  }
}

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

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

int main() {
  int N, A, B, hito, kokugai;
  string S;
  cin >> N >> A >> B >> S;
  hito =0; kokugai =0;
  
  for(int i= 0; i<N; i++){
    if(S.at(i)=="a" && hito < A+B){
      cout << "Yes" << endl;
      hito ++;
    }
    else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      cout << "Yes" << endl;
      hito ++;
      kokugai ++;
    }
    
    else cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="a" && hito < A+B){
      |        ~~~~~~~^~~~~
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      |             ~~~~~~~^~~~~
Language: C++

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

int main() {
  int N, A, B, hito, kokugai;
  string S;
  cin >> N >> A >> B >> S;
  hito =0; kokugai =0;
  
  for(int i= 0; i<N; i++){
    if(S.at(i)=="a" && hito < A+B){
      cout << "Yes" << endl;
      hito ++;
    }
    else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      cout << "Yes" << endl;
      hito ++;
      kokugai ++;
    }
    
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(S.at(i)=="a" && hito < A+B){
      |        ~~~~~~~^~~~~
a.cc:15:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   15 |     else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      |             ~~~~~~~^~~~~
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++


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

int main() {
  int N, A, B, hito, kokugai;
  string S;
  cin >> N >> A >> B >> S;
  kokunai =0; kokugai =0;
  
  for(int i= 0; i<N; i++){
    if(S.at(i)=="a" && hito < A+B){
      cout << "Yes" << endl;
      hito ++;
    }
    else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      cout << "Yes" << endl;
      hito ++;
      kokugai ++;
    }
    
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'kokunai' was not declared in this scope; did you mean 'kokugai'?
    9 |   kokunai =0; kokugai =0;
      |   ^~~~~~~
      |   kokugai
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(S.at(i)=="a" && hito < A+B){
      |        ~~~~~~~^~~~~
a.cc:16:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |     else if(S.at(i)=="b" && hito < A+B && kokugai <B){
      |             ~~~~~~~^~~~~
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using Graph = vector<vector<int>>;
const ll mod=1000000007;
const int MAX_N = 1000;         // n の最大値
 
// nCk を取得
double nCk(int n, int k) {
double res=1.0;
for(int i=0; i<n; i++){
res*=0.5;}
for(int i=0; i<k; i++){
res*=(double)(n-i);
res/=(double)(k-i);
}
return res;}
 
int main() {
ll n,a,b;
cin>>n>>a>>b;
string s;
cin>>s;
ll k=0;
ll g=0;
for(ll i=0; i<s.size(); i++){
if(s.at(i)=='a'&&k+g<a+b){
cout << "Yes" << endl;
k++;}
else if(s.at(i)=='b'&&(k+g<a+b)&&g<b){
cout << "Yes" << endl;
g++;}
else{
cout << "No" << endl;}}




Compiler output:
a.cc: In function 'int main()':
a.cc:34:24: error: expected '}' at end of input
   34 | cout << "No" << endl;}}
      |                        ^
a.cc:19:12: note: to match this '{'
   19 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
 
int main() {
  ll n,A,B;
  string s;
  cin>>n>>A>>B>>s;
  ll iketaa=0, iketab=0;
  rep(i,n){
    if(iketaa+iketab>=A+B){
      cout<<"No"<<endl;
      }
      else if(s[i]=='c'){
        cout<<"No"<<endl;
      }
      else if(s[i]=='a'){
        cout<<"Yes"<<endl;
        iketaa++;
      }
      else if(s[i]==b&&iketab<=B){
         cout<<"Yes"<<endl;
      }
  }
}
 
       

Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: 'b' was not declared in this scope
   22 |       else if(s[i]==b&&iketab<=B){
      |                     ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string data;
  int N,A,B;
  int ok = 0;
  int B_cnt = 1;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << "No" << endl;
    }
    
    if (data[i] == 'a') {
      if (ok < A+B) {
        cout << "Yes" << endl;
        ok++;
      }
      else {
        cout << "No" << endl;
      }
    }
    if (data[i] == 'b') {
      if ((ok < A+B)　&&　(B_cnt <= B)) {
        cout << "Yes" << endl;
        B_cnt++;
        ok++;
      }
      else {
        cout << "No" << endl;
      }
    } 
  }
}

Compiler output:
a.cc:27:21: error: extended character 　 is not valid in an identifier
   27 |       if ((ok < A+B)　&&　(B_cnt <= B)) {
      |                     ^
a.cc:27:25: error: extended character 　 is not valid in an identifier
   27 |       if ((ok < A+B)　&&　(B_cnt <= B)) {
      |                         ^
a.cc: In function 'int main()':
a.cc:27:21: error: expected ')' before '\U00003000'
   27 |       if ((ok < A+B)　&&　(B_cnt <= B)) {
      |          ~          ^~
      |                     )
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string data;
  int N,A,B;
  int ok = 0;
  int B_cnt = 1;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << "No" << endl;
    }
    
    if (data[i] == 'a') {
      if (ok < A+B) {
        cout << "Yes" << endl;
        ok++;
      }
      else {
        cout << "No" << endl;
      }
    }
    if (data[i] == 'b') {
      if (ok<A+B　&&　B_cnt<=B) {
        cout << "Yes" << endl;
        B_cnt++;
        ok++;
      }
      else {
        cout << "No" << endl;
      }
    } 
  }
}

Compiler output:
a.cc:27:16: error: extended character 　 is not valid in an identifier
   27 |       if (ok<A+B　&&　B_cnt<=B) {
      |                ^
a.cc:27:21: error: extended character 　 is not valid in an identifier
   27 |       if (ok<A+B　&&　B_cnt<=B) {
      |                     ^
a.cc: In function 'int main()':
a.cc:27:16: error: 'B\U00003000' was not declared in this scope
   27 |       if (ok<A+B　&&　B_cnt<=B) {
      |                ^~~
a.cc:27:21: error: '\U00003000B_cnt' was not declared in this scope; did you mean 'B_cnt'?
   27 |       if (ok<A+B　&&　B_cnt<=B) {
      |                     ^~~~~~~
      |                     B_cnt
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string data;
  int N,A,B;
  int B_cnt = 0;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << "No" <<endl;
    }
    
    if (data[i] == 'a') {
      if (i <= A+B) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    }
    
    if (data[i] == 'b') {
      B_cnt += 1;
      if ((i <= A+B)&&(B_cnk <= B)) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    } 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:24: error: 'B_cnk' was not declared in this scope; did you mean 'B_cnt'?
   27 |       if ((i <= A+B)&&(B_cnk <= B)) {
      |                        ^~~~~
      |                        B_cnt
Language: C++

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

int main() {
  string data;
  int N,A,B;
  int B_cnt = 0;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << "No" <<endl;
    }
    
    if (data[i] == 'a') {
      if (i <= A+B) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    }
    
    if (data[i] == 'b') {
      B_cnk += 1;
      if ((i <= A+B)&&(B_cnk <= B)) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    } 
  }
}

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

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

int main() {
  string data;
  int N,A,B;
  int B_cnt = 0;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << "No" <<endl;
    }
    
    if (data[i] == 'a') {
      if (i <= A+B) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    
    if (data[i] == 'b') {
      B_cnk += 1;
      if ((i <= A+B)&&(B_cnk <= B)) {
        cout << "Yes" <<endl;
      }
      else {
        cout << "No" <<endl;
      }
    } 
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:7: error: 'B_cnk' was not declared in this scope; did you mean 'B_cnt'?
   25 |       B_cnk += 1;
      |       ^~~~~
      |       B_cnt
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

int main() {
  string data;
  int N,A,B;
  int B_cnt = 0;
  cin >> N >> A >> B;
  cin >> data;
  
  for (int i=0; i<N; i++) {
    if (data[i] == 'c') {
      cout << 'No' <<endl;
    }
    
    if (data[i] == 'a') {
      if (i <= A+B) {
        cout << 'Yes' <<endl;
      }
      else {
        cout << 'No' <<endl;
      }
    
    if (data[i] == 'b') {
      B_cnk += 1;
      if ((i <= A+B)&&(B_cnk <= B)) {
        cout << 'Yes' <<endl;
      }
      else {
        cout << 'No' <<endl;
      }
    } 
  }
}

Compiler output:
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |       cout << 'No' <<endl;
      |               ^~~~
a.cc:18:17: warning: multi-character character constant [-Wmultichar]
   18 |         cout << 'Yes' <<endl;
      |                 ^~~~~
a.cc:21:17: warning: multi-character character constant [-Wmultichar]
   21 |         cout << 'No' <<endl;
      |                 ^~~~
a.cc:27:17: warning: multi-character character constant [-Wmultichar]
   27 |         cout << 'Yes' <<endl;
      |                 ^~~~~
a.cc:30:17: warning: multi-character character constant [-Wmultichar]
   30 |         cout << 'No' <<endl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:25:7: error: 'B_cnk' was not declared in this scope; did you mean 'B_cnt'?
   25 |       B_cnk += 1;
      |       ^~~~~
      |       B_cnt
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^