criyle/codenet-compile-errors huggingface dataset:
Language: Java

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> pii;
typedef vector<int> vi; 
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
#define per(i,a,b) for(int i=(a);i>=(b);i--)
const int mod = 1e9+7;
const int maxn = 1e5+10;
const int inf = 0x3f3f3f3f;
char str[maxn];
int main()
{
	ios::sync_with_stdio(false);cin.tie(0);
	cin>>str;
	if(str[0]==str[1]&&str[1]==str[2]) cout<<"No"<<'\n';
	else cout<<"Yes"<<'\n';
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:3: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:4: error: class, interface, enum, or record expected
typedef unsigned long long ull;
^
Main.java:5: error: class, interface, enum, or record expected
typedef pair<int,int> pii;
^
Main.java:6: error: class, interface, enum, or record expected
typedef vector<int> vi; 
^
Main.java:7: error: illegal character: '#'
#define pb push_back
^
Main.java:8: error: illegal character: '#'
#define mp make_pair
^
Main.java:9: error: illegal character: '#'
#define fi first
^
Main.java:10: error: illegal character: '#'
#define se second
^
Main.java:11: error: illegal character: '#'
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
^
Main.java:11: error: class, interface, enum, or record expected
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
                                 ^
Main.java:11: error: class, interface, enum, or record expected
#define rep(i,a,b) for(int i=(a);i<=(b);i++)
                                        ^
Main.java:12: error: illegal character: '#'
#define per(i,a,b) for(int i=(a);i>=(b);i--)
^
Main.java:12: error: class, interface, enum, or record expected
#define per(i,a,b) for(int i=(a);i>=(b);i--)
                                 ^
Main.java:12: error: class, interface, enum, or record expected
#define per(i,a,b) for(int i=(a);i>=(b);i--)
                                        ^
Main.java:14: error: class, interface, enum, or record expected
const int maxn = 1e5+10;
^
Main.java:15: error: class, interface, enum, or record expected
const int inf = 0x3f3f3f3f;
^
Main.java:16: error: class, interface, enum, or record expected
char str[maxn];
^
Main.java:19: error: not a statement
	ios::sync_with_stdio(false);cin.tie(0);
	^
Main.java:20: error: not a statement
	cin>>str;
	   ^
Main.java:21: error: not a statement
	if(str[0]==str[1]&&str[1]==str[2]) cout<<"No"<<'\n';
	                                             ^
Main.java:22: error: not a statement
	else cout<<"Yes"<<'\n';
	                ^
Main.java:17: error: unnamed classes are a preview feature and are disabled by default.
int main()
^
  (use --enable-preview to enable unnamed classes)
Main.java:19: error: ';' expected
	ios::sync_with_stdio(false);cin.tie(0);
	                    ^
25 errors
Language: C++

#include<iostream>
int main(){
  char a,b,c;
  cin>>a>>b>>c;
  cout<<(a==b&&b==c?"No":"Yes")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<(a==b&&b==c?"No":"Yes")<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |   cout<<(a==b&&b==c?"No":"Yes")<<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++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,m;
  int ck=0,cnt=0;
  string s;
  n=s.sized();
  for(int i=0;i<n;i++)
  {
    if(s[i]=='A')
    {
      ck++;
    }
    else
    {
      cnt++;
    }
  }
  if(ck!=0&&cnt!=0)
  {
    cout<<"Yes"<<endl;
  }
  else
  {
    cout<<"No"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'sized'; did you mean 'size'?
    8 |   n=s.sized();
      |       ^~~~~
      |       size
a.cc:27:4: error: expected '}' at end of input
   27 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>

int main() {
	char s1,s2,s3;
	scanf_s("%c%c%c", &s1, &s2, &s3);
	if (s1 == s2 && s2 == s3) printf("No");		
	else printf("Yes");

	return 0;
}

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

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

void solve(std::istream& ist, std::ostream& ost)
{
    /* ------- 宣言と入力 ------- */

    string S;

    ist >> S;

    /* ------- 計算 ------- */

    if (S == "AAA" || S == "BBB")
    {
        ost << "No" << endl;
    }
    else
    {
        ost << "Yes" << endl;
    }
}

#ifdef WIMAIN
int main()
{
    solve(std::cin, std::cout);
    return 0;
}
#endif



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++

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

int main()
{
  string s;
  
  cin >> s;
  
  if (s == "AAA" || s == "BBB")
  {
    cout << "No" << endl;
    return0;
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'return0' was not declared in this scope
   13 |     return0;
      |     ^~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (s[0] == "A" && s[0] == s[1] == s[2])
a.cc:14:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   14 |    if (s[0] == "B" && s[0] == s[1] == s[2])
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Long> list = new ArrayList<>();
        for(int i = 0; i < 3; i++){
            Long num = sc.nextInt();
            list.add(num);
        }
       	Long N = list.get(0);
        Long A = list.get(1);
        Long B = list.get(2);
        Long C = 0;
          
        if(A == 0){
            System.out.println("0");
        }else if(N <= A){
            System.out.println(N);        
        }else if(N <= A + B){
            System.out.println(A);
        }else{
            while(N >= A+B){
                C++;
                N = N-(A+B);
            }
            System.out.println(C*A + N);
        }
    }
}


Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to Long
            Long num = sc.nextInt();
                                 ^
Main.java:14: error: incompatible types: int cannot be converted to Long
        Long C = 0;
                 ^
2 errors
Language: C++

#include <bits/stdc.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  cout << (s[0] == s[1] && s[0] == s[2]) ? "No\n" : "Yes\n";
  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 <bits/stdc.h
using namespace std;
int main() {
  string s;
  cin >> s;
  cout << (s[0] == s[1] && s[0] == s[2]) ? "No\n" : "Yes\n";
  return 0;
}


Compiler output:
a.cc:1:22: error: missing terminating > character
    1 | #include <bits/stdc.h
      |                      ^
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() {
  string s;
  cin >> s;
  cout (s[0] == s[1] && s[0] == s[2]) ? "No\n" : "Yes\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: no match for call to '(std::ostream {aka std::basic_ostream<char>}) (bool)'
    6 |   cout (s[0] == s[1] && s[0] == s[2]) ? "No\n" : "Yes\n";
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <bits/stdc++>
using namespace std;
int main() {
  string s;
  cin >> s;
  cout (s[0] == s[1] && s[0] == s[2]) ? "No\n" : "Yes\n";
  return 0;
}

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

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
  string s;
  cin >> s;
  int c = 0, d = 0;
  for (int i = 0; i < 3; ++i) {
    if ((s[i] == 'A') c++;
    if ((s[i] == 'B') c--;
   }
  if (-2 < c < 3) cout << "Yes\n";
  else cout << "No\n";
  
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ';' before 'c'
   10 |     if ((s[i] == 'A') c++;
      |                      ^~
      |                      ;
a.cc:11:5: error: expected primary-expression before 'if'
   11 |     if ((s[i] == 'B') c--;
      |     ^~
a.cc:10:27: error: expected ')' before 'if'
   10 |     if ((s[i] == 'A') c++;
      |        ~                  ^
      |                           )
   11 |     if ((s[i] == 'B') c--;
      |     ~~
Language: C++

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

int main ()
{
  int i, c=0;
  string s ;
  cin >> s ;
  for (i=0 ;i<2 ;i++)
  {
    if (s[i]==s[i+1])
      c++ ;
  }
  if (c==3)
    cout << "NO" << endl; 
  else
    cout << "YES" << endl ;
}

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

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

int main() {
	String S;
  	cin >> S;
  	if(S == "AAA" || S == "BBB" ){
      cout << "No" << endl;
    }else {
      cout << "Yes" << endl;
    };
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
    5 |         String S;
      |         ^~~~~~
a.cc:6:16: error: 'S' was not declared in this scope
    6 |         cin >> S;
      |                ^
Language: C

#include <stdio.h>
 
int main()
{
  char s[3];
  for (int i == 0; i < 3; i++) {
	scanf("%s", &s[i]);
  }
  (s[0] == s[1] && s[1] == s[2]) ? puts("No") : puts("Yes");
  return 0;

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    6 |   for (int i == 0; i < 3; i++) {
      |              ^~
main.c:6:20: error: 'i' undeclared (first use in this function)
    6 |   for (int i == 0; i < 3; i++) {
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: expected ')' before ';' token
    6 |   for (int i == 0; i < 3; i++) {
      |       ~                 ^
      |                         )
main.c:10:3: error: expected declaration or statement at end of input
   10 |   return 0;
      |   ^~~~~~
Language: C++

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

int main() {
	String S;
  	cin >> S;
  	if(S == "AAA" || S == "BBB" ){
      cout << "No" << endl;
    }else if{
      cout << "Yes" << endl;
    };
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'String' was not declared in this scope
    5 |         String S;
      |         ^~~~~~
a.cc:6:16: error: 'S' was not declared in this scope
    6 |         cin >> S;
      |                ^
a.cc:9:13: error: expected '(' before '{' token
    9 |     }else if{
      |             ^
      |             (
Language: C

#include <stdio.h>

int main()
{
  char s[3];
  for (int i == 0; i < 3; i++) {
	scanf("%c", &s[i]);
  }
  (s[1] == s[2] && s[2] == s[3]) ? printf("No") : printf("Yes");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '==' token
    6 |   for (int i == 0; i < 3; i++) {
      |              ^~
main.c:6:20: error: 'i' undeclared (first use in this function)
    6 |   for (int i == 0; i < 3; i++) {
      |                    ^
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:25: error: expected ')' before ';' token
    6 |   for (int i == 0; i < 3; i++) {
      |       ~                 ^
      |                         )
Language: C++

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<string>
typedef long long ll;
#define inf 0x3f3f3f3f
using namespace std;
char s[600000],ch;
int main()
{
    int a,b,i,j,m,n,u,q,p,t,w=0,flag=1,r,l;
    gets(s+200005);
    l=200005;
    r=strlen(s+200005)+200005;
    cin>>t;
    while(t--)
    {
    cin>>q;
    	if(q==1)flag*=-1;
    	else 
    	{
    		cin>>u;
    		cin>>ch;
    		if(flag==1)
    		{
			if(u==1)
    		{
    			s[--l]=ch;
    			
    			
			}
			else
			{
				s[++r]=ch;
			 } 
		}
		else 
		{
			if(u==2)
    		{
    			s[--l]=ch;
    			
			}
			else
			{
				s[++r]=ch;
			 } 
		}
			
		}
		
	}
	if(flag==1)
	for(i=0;i<=350000;i++)
	{
		if(s[i]!='\0')cout<<s[i];
	}
	else 
	for(i=350000;i>=0;i--)
	{
		if(s[i]!='\0')cout<<s[i];
	}	
	
    return 0;
} 

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

#include<iostream>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<string>
typedef long long ll;
#define inf 0x3f3f3f3f
using namespace std;
char s[600000],ch;
int main()
{
    int a,b,i,j,m,n,u,q,p,t,w=0,flag=1,r,l;
    gets(s+200005);
    l=200005;
    r=strlen(s+200005)+200005;
    cin>>t;
    while(t--)
    {
    cin>>q;
    	if(q==1)flag*=-1;
    	else 
    	{
    		cin>>u
    		cin>>ch;
    		if(flag==1)
    		{
			if(u==1)
    		{
    			s[--l]=ch;
    			
    			
			}
			else
			{
				s[++r]=ch;
			 } 
		}
		else 
		{
			if(u==2)
    		{
    			s[--l]=ch;
    			
			}
			else
			{
				s[++r]=ch;
			 } 
		}
			
		}
		
	}
	if(flag==1)
	for(i=0;i<=350000;i++)
	{
		if(s[i]!='\0')printf("%c",s[i]);
	}
	else 
	for(i=350000;i>=0;i--)
	{
		if(s[i]!='\0')printf("%c",s[i]);
	}	
	
    return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   13 |     gets(s+200005);
      |     ^~~~
      |     getw
a.cc:23:23: error: expected ';' before 'cin'
   23 |                 cin>>u
      |                       ^
      |                       ;
   24 |                 cin>>ch;
      |                 ~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  string a;cin>>a;
  if(string=="AAA"||string =="BBB"){
  	cout<<"No";
  }else{
    cout<<"Yes";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: expected unqualified-id before '==' token
    6 |   if(string=="AAA"||string =="BBB"){
      |            ^~
Language: C++

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

const ll MOD = 1e9+7;
const int INF = (int)1e9+7;

// vector<tuple<long,long>> items; // (value, weight)
// auto item = items[i];
// long v = get<0>(item);
// long w = get<1>(item);
// long v, w;
//   for( int i = 0; i < N; i++ ){
//     cin >> v >> w;
//     items.push_back( make_tuple(v, w) ); // item : (value, weight)
//   }

int main(){
    stinrg S;
    cin >> S;
    if(S=="AAA" || S=="BBB") cout << "No";
    else cout << "Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'stinrg' was not declared in this scope
   21 |     stinrg S;
      |     ^~~~~~
a.cc:22:12: error: 'S' was not declared in this scope
   22 |     cin >> S;
      |            ^
Language: C++

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

const ll MOD = 1e9+7;
const int INF = (int)1e9+7;

// vector<tuple<long,long>> items; // (value, weight)
// auto item = items[i];
// long v = get<0>(item);
// long w = get<1>(item);
// long v, w;
//   for( int i = 0; i < N; i++ ){
//     cin >> v >> w;
//     items.push_back( make_tuple(v, w) ); // item : (value, weight)
//   }

int main(){
    stinrg S;
    cin >> S;
    if(S=="AAA" || S=="BBB") cout << "No";
    else cout << "Yes"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'stinrg' was not declared in this scope
   21 |     stinrg S;
      |     ^~~~~~
a.cc:22:12: error: 'S' was not declared in this scope
   22 |     cin >> S;
      |            ^
a.cc:24:23: error: expected ';' before '}' token
   24 |     else cout << "Yes"
      |                       ^
      |                       ;
   25 | }
      | ~
Language: C++

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

const ll MOD = 1e9+7;
const int INF = (int)1e9+7;

// vector<tuple<long,long>> items; // (value, weight)
// auto item = items[i];
// long v = get<0>(item);
// long w = get<1>(item);
// long v, w;
//   for( int i = 0; i < N; i++ ){
//     cin >> v >> w;
//     items.push_back( make_tuple(v, w) ); // item : (value, weight)
//   }

int main(){
    stinrg S;
    if(S=="AAA" || S=="BBB") cout << "Yes";
    else cout << "No"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'stinrg' was not declared in this scope
   21 |     stinrg S;
      |     ^~~~~~
a.cc:22:8: error: 'S' was not declared in this scope
   22 |     if(S=="AAA" || S=="BBB") cout << "Yes";
      |        ^
a.cc:23:22: error: expected ';' before '}' token
   23 |     else cout << "No"
      |                      ^
      |                      ;
   24 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
  char a,b,c;
  scanf("%c",&a);
  scanf("%c",&b);
  scanf("%c",&c);
  if(a==b&&b==c)printf("NO");
  else printf("YES")
  retern 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: expected ';' before 'retern'
    9 |   else printf("YES")
      |                     ^
      |                     ;
   10 |   retern 0;
      |   ~~~~~~
Language: C++

#include <iostream>

int main() {
  str s[4];
  cin << s;
  if(s[0] == s[1] && s[1] == s[2]) cout >> "No";
  else cout >> "Yes";
 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'str' was not declared in this scope; did you mean 'std'?
    4 |   str s[4];
      |   ^~~
      |   std
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin << s;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:10: error: 's' was not declared in this scope
    5 |   cin << s;
      |          ^
a.cc:6:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(s[0] == s[1] && s[1] == s[2]) cout >> "No";
      |                                    ^~~~
      |                                    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout >> "Yes";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  Long Long N,A,B;
  cin >> N >> A >> B;
  C=N/(A+B);
  cout << A*C+min(N-(A+B)*C,A) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'Long' was not declared in this scope; did you mean 'long'?
    5 |   Long Long N,A,B;
      |   ^~~~
      |   long
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |               ^
a.cc:6:20: error: 'B' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |                    ^
a.cc:7:3: error: 'C' was not declared in this scope
    7 |   C=N/(A+B);
      |   ^
Language: C++

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

int main() {
  LL N,A,B;
  cin >> N >> A >> B;
  C=N/(A+B);
  cout << A*C+min(N-(A+B)*C,A) << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'LL' was not declared in this scope
    5 |   LL N,A,B;
      |   ^~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |               ^
a.cc:6:20: error: 'B' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |                    ^
a.cc:7:3: error: 'C' was not declared in this scope
    7 |   C=N/(A+B);
      |   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
    // Your code here!
    string s;
    int A=0,B=0;
    cin>>s;
    for(int i=0; i<3; i++){
        if(s[i]=="A"){
            A++;
        }
        else{
            B++;
        }
    }
    if(A>=1&&B>=1){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  char s[4];
  int n,i,a=0,b=0;
  cin>>s;
  
  for(i=0;i<3;i++)
  {
    
    if(s[i]=='A')
      a++;
    else
      b++;
  }
  	if(a!=0 && b!=0)
      cout<<"Yes";
  else
    cout<<"No";
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:21:12: error: expected '}' at end of input
   21 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
    String S = sc.next();
    StringBuffer sb = new StringBuffer(S);
    int Q = Integer.parseInt(sc.next());
    int T, F;
    String C;
    boolean rev = false;
    for(int i=0; i<Q; i++){
      T = Integer.parseInt(sc.next());
      if(T==1){
        if(rev)rev=false;
        else rev=true;
      } else if(T==2){
        F = Integer.parseInt(sc.next());
        C = sc.next();
        if(F==1){
          if(rev) sb.append(C);
          else sb.insert(0,C);
        } else if(F==2){
          if(rev) sb.insert(0,C);
          else sb.append(C);
        }
      }
    }
    if(rev){
      for(int j=sb.length()-1; j<sb.length(); j++){
        System.out.println(sb.charAt(j));
      }
    } else {
      System.out.println(sb.toString());
    }
  }

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

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
  	Scanner sc = new Scanner(System.in);
    int a = Integer.parseInt(sc.next());
    int b = Integer.parseInt(sc.next());
    int x = a/0.08;//a=x*0.08
      //消費税がa円である範囲(とりあえずxは範囲内)
    int min = a;
    int max = a;
    int xmin = x;
    int xmax = x;
    int i = 0;
    while(min==a){
      min = xmin*0.08;
      xmin--;
    }
    while(max==a){
      max = xmax*0.08;
      xmax++;
    }
    //xmin<x<xmaxの間の数のうち最小のものが答
   	for(int j = xmin+1; j<xmax; j++){
      if(b==j*0.1){
        System.out.println(j);
        return;
      }
    }
  }
}

Compiler output:
Main.java:7: error: incompatible types: possible lossy conversion from double to int
    int x = a/0.08;//a=x*0.08
             ^
Main.java:15: error: incompatible types: possible lossy conversion from double to int
      min = xmin*0.08;
                ^
Main.java:19: error: incompatible types: possible lossy conversion from double to int
      max = xmax*0.08;
                ^
3 errors
Language: C++

clude<iostream>
using namespace std;
//vector<vector<int> > ans;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
string tk;
cin>>tk;
int euwitenpen;
cin>>euwitenpen;
for(int i=0; i<euwitenpen; ++i)
{
int typ;
cin>>typ;
if(typ==1)
{
reverse(tk.begin(),tk.end());
}
else
{
int kl;
char opa;
cin>>kl;
cin>>opa;
if(kl==1)
tk=opa+tk;
else
tk+=opa;
}
}
cout<<tk;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<iostream>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'ios_base' has not been declared
    6 | ios_base::sync_with_stdio(false);
      | ^~~~~~~~
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin.tie(0);
      | ^~~
a.cc:8:1: error: 'string' was not declared in this scope
    8 | string tk;
      | ^~~~~~
a.cc:9:6: error: 'tk' was not declared in this scope
    9 | cin>>tk;
      |      ^~
a.cc:18:1: error: 'reverse' was not declared in this scope
   18 | reverse(tk.begin(),tk.end());
      | ^~~~~~~
a.cc:32:1: error: 'cout' was not declared in this scope
   32 | cout<<tk;
      | ^~~~
Language: Java

import java.util.Scanner;
public class Main{
	public static void main(String[] args) {
    	Scanner sc = new Scanner(System.in);
		long n = Long.parseLong(sc.next());
      	long a = Long.parseLong(sc.next());
      	long b = LongrseLng(sc.next());
      	if(a==0){
        	System.out.println(0);
          return;
        }
        long c = a+b;
      	long d = n%c;
      	if(d>a) d = a;
        long e = n/c;
        long f = e*a+d;
        System.out.println(f);
    }
 
}

Compiler output:
Main.java:7: error: cannot find symbol
      	long b = LongrseLng(sc.next());
      	         ^
  symbol:   method LongrseLng(String)
  location: class Main
1 error
Language: C++

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

int main() 
{ 
  stirng s;
  cin>>s;
  sort(a.begin(),a.end());
  if(s[0]==s[2])
  {
    cout<<"No"<<endl;
  }
  else
  {
     cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng s;
      |   ^~~~~~
a.cc:8:8: error: 's' was not declared in this scope
    8 |   cin>>s;
      |        ^
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   sort(a.begin(),a.end());
      |        ^
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
      	Scanner sc = new Scanner(System.in);
		String S = sc.next();
      	if(S.charAt[0]==S.charAt[1]&&S.charAt[0]==S.charAt[2]){
          	System.out.println("No");	
          }
      	else {System.out.println("Yes");}
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
      	if(S.charAt[0]==S.charAt[1]&&S.charAt[0]==S.charAt[2]){
      	    ^
  symbol:   variable charAt
  location: variable S of type String
Main.java:6: error: cannot find symbol
      	if(S.charAt[0]==S.charAt[1]&&S.charAt[0]==S.charAt[2]){
      	                 ^
  symbol:   variable charAt
  location: variable S of type String
Main.java:6: error: cannot find symbol
      	if(S.charAt[0]==S.charAt[1]&&S.charAt[0]==S.charAt[2]){
      	                              ^
  symbol:   variable charAt
  location: variable S of type String
Main.java:6: error: cannot find symbol
      	if(S.charAt[0]==S.charAt[1]&&S.charAt[0]==S.charAt[2]){
      	                                           ^
  symbol:   variable charAt
  location: variable S of type String
4 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
      	Scanner sc = new Scanner(System.in);
		String S = sc.next();
      	String[] strArray = S.split("");
      	int a, b = 0;
      	for (int i = 0; i < strArray.length; i++) {
    		if(strArray[i]=="A"){
              	a++;
            } else if (strArray[i]=="B"){
            	b++;
            }
		}
      	if(a==3||b==3)System.out.println("No");
      	else System.out.println("Yes");
    }
}

Compiler output:
Main.java:10: error: variable a might not have been initialized
              	a++;
              	^
Main.java:15: error: variable a might not have been initialized
      	if(a==3||b==3)System.out.println("No");
      	   ^
2 errors
Language: C++

#include <stdio.h>
 
int main(void) {
  unsigned long ong int N, A, B, amari, Ans;
  scanf("%llu %llu %llu", &N, &A, &B); 
  amari = N % (A + B);
  if(amari>A) {
    Ans = A + (N - amari) * A / (A + B);
  }
  else {
    Ans = amari + (N - amari) * A / (A + B);
  }
  printf("%llu", Ans);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:21: error: expected initializer before 'int'
    4 |   unsigned long ong int N, A, B, amari, Ans;
      |                     ^~~
a.cc:5:28: error: 'N' was not declared in this scope
    5 |   scanf("%llu %llu %llu", &N, &A, &B);
      |                            ^
a.cc:5:32: error: 'A' was not declared in this scope
    5 |   scanf("%llu %llu %llu", &N, &A, &B);
      |                                ^
a.cc:5:36: error: 'B' was not declared in this scope
    5 |   scanf("%llu %llu %llu", &N, &A, &B);
      |                                    ^
a.cc:6:3: error: 'amari' was not declared in this scope
    6 |   amari = N % (A + B);
      |   ^~~~~
a.cc:8:5: error: 'Ans' was not declared in this scope
    8 |     Ans = A + (N - amari) * A / (A + B);
      |     ^~~
a.cc:11:5: error: 'Ans' was not declared in this scope
   11 |     Ans = amari + (N - amari) * A / (A + B);
      |     ^~~
a.cc:13:18: error: 'Ans' was not declared in this scope
   13 |   printf("%llu", Ans);
      |                  ^~~
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
      	Scanner sc = new Scanner(System.in);
		String S = sc.next();
      	String[] strArray = S.split("");
      	int a = b = 0;
      	for (int i = 0; i < strArray.length; i++) {
    		if(strArray[i]=="A"){
              	a++;
            } else if (strArray[i]=="B"){
            	b++;
            }
		}
      	if(a==3||b==3)System.out.println("Yes");
      	else System.out.println("No");
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
      	int a = b = 0;
      	        ^
  symbol:   variable b
  location: class Main
Main.java:12: error: cannot find symbol
            	b++;
            	^
  symbol:   variable b
  location: class Main
Main.java:15: error: cannot find symbol
      	if(a==3||b==3)System.out.println("Yes");
      	         ^
  symbol:   variable b
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String args[]) {
      	Scanner sc = new Scanner(System.in);
		String S = sc.next();
      	String[] strArray = S.split("");
      	int a, b = 0;
      	for (int i = 0; i < strArray.length; i++) {
    		if(strArray[i]=="A"){
              	a++;
            } else if (strArray[i]=="B"){
            	b++;
            }
		}
      	if(a==3||b==3)System.out.println("Yes");
      	else System.out.println("No");
    }
}

Compiler output:
Main.java:10: error: variable a might not have been initialized
              	a++;
              	^
Main.java:15: error: variable a might not have been initialized
      	if(a==3||b==3)System.out.println("Yes");
      	   ^
2 errors
Language: Java

public class Main {
    public static void main(String args[]) {
      	Scanner sc = new Scanner(System.in);
		String S = sc.next();
      	String[] strArray = S.split("");
      	int a, b = 0;
      	for (int i = 0; i < strArray.length; i++) {
    		if(strArray[i]=="A"){
              	a++;
            } else if (strArray[i]=="B"){
            	b++;
            }
		}
      	if(a==3||b==3)System.out.println("Yes");
      	else System.out.println("No");
    }
}

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

#includ<bits/stdc++.h>
using namespace std;
int main(){
 string s;
  cin>>s;
  if(s=='AAA'||s=='BBB')cout<<"No";
  else cout<<"Yes";}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='AAA'||s=='BBB')cout<<"No";
      |         ^~~~~
a.cc:6:19: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='AAA'||s=='BBB')cout<<"No";
      |                   ^~~~~
a.cc: In function 'int main()':
a.cc:4:2: error: 'string' was not declared in this scope
    4 |  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 | #includ<bits/stdc++.h>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #includ<bits/stdc++.h>
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:6:25: error: 'cout' was not declared in this scope
    6 |   if(s=='AAA'||s=='BBB')cout<<"No";
      |                         ^~~~
a.cc:6:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout<<"Yes";}
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#includ<bits/stdc++.h>
using namespace std;
int main(){
 string s;
  cin>>s;
  if(s=='AAA'||s='BBB')cout<<"No";
  else cout<<"Yes";
  
  
  
  
  
  
  
  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc:6:9: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='AAA'||s='BBB')cout<<"No";
      |         ^~~~~
a.cc:6:18: warning: multi-character character constant [-Wmultichar]
    6 |   if(s=='AAA'||s='BBB')cout<<"No";
      |                  ^~~~~
a.cc: In function 'int main()':
a.cc:4:2: error: 'string' was not declared in this scope
    4 |  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 | #includ<bits/stdc++.h>
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #includ<bits/stdc++.h>
a.cc:5:8: error: 's' was not declared in this scope
    5 |   cin>>s;
      |        ^
a.cc:6:24: error: 'cout' was not declared in this scope
    6 |   if(s=='AAA'||s='BBB')cout<<"No";
      |                        ^~~~
a.cc:6:24: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout<<"Yes";
      |        ^~~~
a.cc:7:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include<stdio.h>
#include<algorithm>
using namespace std;
const int maxn=1010;
int a[maxn];
bool cmp(int a,int b)
{
    return a>b;
}
int main()
{
    int t;
    cin>>t;
    while(t--)
    {
        int n;
        cin>>n;
        for(int i=0; i<n; i++)
            cin>>a[i];
        sort(a,a+n,cmp);
        int flas=0;
        int k=2048;
        int sum=0;
        for(int i=0; i<n; i++)
        {
            if(k>=a[i]&&k%a[i]==0)
            {
                sum+=a[i];
            }
            if(sum==k)
            {
                flas=1;
                break;
            }
        }
        if(flas)
            printf("YES\n");
        else printf("NO\n");
    }
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:41:14: error: expected '}' at end of input
   41 |     return 0;
      |              ^
a.cc:12:1: note: to match this '{'
   12 | {
      | ^
Language: C++

nclude<bits/stdc++.h>
#define ll long long
#define Speeed  ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
using namespace std;
int main(){
    Speeed
  string s, arr[1000000];
  ll n,p, x=0, c=0;
  cin>>n>>p>>s;
    for (ll i = 0; i < n; i++){
        for (ll len = 1; len <= n - i; len++) {
            arr[x]=s.substr(i, len);
            x++;
        }
    }
        for(int i=0 ; i<x ; i++){
        stringstream woah(arr[i]); 
        ll num = 0; 
        woah >> num; 
        if(num%p==0)c++;
}
        cout<<c;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:3:17: error: 'ios' has not been declared
    3 | #define Speeed  ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
      |                 ^~~
a.cc:6:5: note: in expansion of macro 'Speeed'
    6 |     Speeed
      |     ^~~~~~
a.cc:3:45: error: 'cin' was not declared in this scope
    3 | #define Speeed  ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
      |                                             ^~~
a.cc:6:5: note: in expansion of macro 'Speeed'
    6 |     Speeed
      |     ^~~~~~
a.cc:3:53: error: 'NULL' was not declared in this scope
    3 | #define Speeed  ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
      |                                                     ^~~~
a.cc:6:5: note: in expansion of macro 'Speeed'
    6 |     Speeed
      |     ^~~~~~
a.cc:1:1: note: 'NULL' is defined in header '<cstddef>'; this is probably fixable by adding '#include <cstddef>'
  +++ |+#include <cstddef>
    1 | nclude<bits/stdc++.h>
a.cc:3:60: error: 'cout' was not declared in this scope
    3 | #define Speeed  ios::sync_with_stdio(false);cin.tie(NULL); cout.tie(NULL);
      |                                                            ^~~~
a.cc:6:5: note: in expansion of macro 'Speeed'
    6 |     Speeed
      |     ^~~~~~
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string s, arr[1000000];
      |   ^~~~~~
a.cc:9:14: error: 's' was not declared in this scope
    9 |   cin>>n>>p>>s;
      |              ^
a.cc:12:13: error: 'arr' was not declared in this scope
   12 |             arr[x]=s.substr(i, len);
      |             ^~~
a.cc:17:9: error: 'stringstream' was not declared in this scope
   17 |         stringstream woah(arr[i]);
      |         ^~~~~~~~~~~~
a.cc:19:9: error: 'woah' was not declared in this scope
   19 |         woah >> num;
      |         ^~~~
Language: Java

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


public class Main
{
     public static void main(String[]args)throws IOException
     {
           BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
           String s = br.readLine();
           Map<Character,Integer> map = new HashMap<Character,Integer>();
            map.put('A',0);
            map.put('B',0);
           for(int i=0;i<3;i++)
           {
                char ch = s.charAt(i);
                if(ch=='A')
                {
                      value=map.get('A');
                      value++;
                      map.put('A',value);
                }
                else
                {
                      value=map.get('B');
                       value++;
                      map.put('B',value);
                }
           }
           if(map.get('A')==3 || map.get('B')==3)
           {
                System.out.println("No");
           }
           else
           {
                System.out.println("Yes");
           }
     }
}
             

Compiler output:
Main.java:19: error: cannot find symbol
                      value=map.get('A');
                      ^
  symbol:   variable value
  location: class Main
Main.java:20: error: cannot find symbol
                      value++;
                      ^
  symbol:   variable value
  location: class Main
Main.java:21: error: cannot find symbol
                      map.put('A',value);
                                  ^
  symbol:   variable value
  location: class Main
Main.java:25: error: cannot find symbol
                      value=map.get('B');
                      ^
  symbol:   variable value
  location: class Main
Main.java:26: error: cannot find symbol
                       value++;
                       ^
  symbol:   variable value
  location: class Main
Main.java:27: error: cannot find symbol
                      map.put('B',value);
                                  ^
  symbol:   variable value
  location: class Main
6 errors
Language: C++

# A - Station and Bus
s = input()
print("No" if s[0]==s[1]==s[2] else "Yes")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #A
    1 | # A - Station and Bus
      |   ^
a.cc:2:1: error: 's' does not name a type
    2 | s = input()
      | ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  string s;
  cin >> s;
  flaga = false;
  flagb = false;
  for(auto i : s){
    if(i == 'A')
      flaga = true;
    if(i == 'B')
      flagb = true;
  if(flaga && flagb)
    cout << "YES" << endl;
   else
     cout << "NO" << endl;
 return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'flaga' was not declared in this scope
    7 |   flaga = false;
      |   ^~~~~
a.cc:8:3: error: 'flagb' was not declared in this scope
    8 |   flagb = false;
      |   ^~~~~
a.cc:18:11: error: expected '}' at end of input
   18 |  return 0;
      |           ^
a.cc:9:18: note: to match this '{'
    9 |   for(auto i : s){
      |                  ^
a.cc:18:11: error: expected '}' at end of input
   18 |  return 0;
      |           ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

/*
 * author :Sadik Hassan
 *
*/
#include "bits/stdc++.h"
using namespace std;
#define ll            long long
#define nl            "\n"
#define PB            push_back
#define fi            first
#define se            second
#define _SAD()        ios::sync_with_stdio(0),cin.tie(0), cout.tie(0);
#define rep(i,n)      for(int i=0;i<n;i++)
#define repn(i,n)     for(int i=1;i<=n;i++)
#define rrep(i,n)     for(int i=n-1;i>=0;i--)
#define SZ(s)         s.size()
#define SRT(x,y)      sort(x,x+y)
#define REV(a,b)      reverse(a,a+b)
#define VSRT(x)       sort(x.begin(),x.end())
#define VREV(x)       reverse(x.begin(),x.end())
#define TSFL(s)       transform(s.begin(),s.end(),s.begin(),::toupper);
#define TSFH(s)       transform(s.begin(),s.end(),s.begin(),::tolower);
/*---------------------------------------------------------------------*/
const int N = 2e5+10;
const int INF = (int)1e9+5;

int main()
{
    _SAD()
    string s;
    cin>>s;
    fl a=0,b=0;
    rep(i,3)
    {
        if(s[i]=='A')
        {
            a=1;
        }
        else{
            b=1;
        }
    }
    if(!a||!b)
    {
        cout<<"No"<<nl;
    }
    else
    {
        cout<<"Yes"<<nl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:5: error: 'fl' was not declared in this scope; did you mean 'nl'?
   32 |     fl a=0,b=0;
      |     ^~
      |     nl
a.cc:37:13: error: 'a' was not declared in this scope
   37 |             a=1;
      |             ^
a.cc:40:13: error: 'b' was not declared in this scope
   40 |             b=1;
      |             ^
a.cc:43:9: error: 'a' was not declared in this scope
   43 |     if(!a||!b)
      |         ^
a.cc:43:13: error: 'b' was not declared in this scope
   43 |     if(!a||!b)
      |             ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    char s[10];
    while(~scanf("%s",s))
    {
      	int _a=0,_b=0; 
		for(int i=0;s[i];i++){
          if(s[i)=='A') _a++;
          else if (s[i]=='B') _b++;
        }
        printf(_a&&_b?"Yes\n":"No\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ']' before ')' token
   12 |           if(s[i)=='A') _a++;
      |                 ^
      |                 ]
a.cc:12:18: error: expected primary-expression before '==' token
   12 |           if(s[i)=='A') _a++;
      |                  ^~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    char s[10]
    while(~scanf("%s",s))
    {
      	int _a=0,_b=0; 
		for(int i=0;s[i];i++){
          if(s[i)=='A') _a++;
          else if (s[i]=='B') _b++;
        }
        printf(_a&&_b?"Yes\n":"No\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected initializer before 'while'
    8 |     while(~scanf("%s",s))
      |     ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char ct[3];
    int count=0;
    for(int i=0;i<3BBBBB;i++)
    {
        scanf("%c",&ct[i]);
        if(ct[i]=='A') count++;
    }
    if(count==3||count==0) cout<<"NO";
    else cout<<"YES";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: unable to find numeric literal operator 'operator""BBBBB'
    7 |     for(int i=0;i<3BBBBB;i++)
      |                   ^~~~~~
Language: C++

#! /usr/bin/env python3

while True:
  inp=raw_input()
  a= set(inp)
  if(a==""):
    break
  elif(len(a)==1):
      print("No")
  else:
      print("Yes")
 

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #! /usr/bin/env python3
      |  ^
a.cc:3:1: error: expected unqualified-id before 'while'
    3 | while True:
      | ^~~~~
Language: C++

#n = int(input())
s = input()
#n, x= map(int,input().split())
#da = list(map(int,input().split()))
#a = [int(input()) for i in range(n)]

if s[0] == s[1] and s[1] == s[2]:
    print('No')
else:
    print('Yes')

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #n
    1 | #n = int(input())
      |  ^
a.cc:3:2: error: invalid preprocessing directive #n
    3 | #n, x= map(int,input().split())
      |  ^
a.cc:4:2: error: invalid preprocessing directive #da
    4 | #da = list(map(int,input().split()))
      |  ^~
a.cc:5:2: error: invalid preprocessing directive #a
    5 | #a = [int(input()) for i in range(n)]
      |  ^
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('No')
      |           ^~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     print('Yes')
      |           ^~~~~
a.cc:2:1: error: 's' does not name a type
    2 | s = input()
      | ^