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

#include<bits/stdc++.h>

#pragma GCC optimize("Ofast")
#pragma GCC target("avx,avx2,fma")

using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
#define ull unsigned long long
#define rep(n) for(ll i = 0 ; i<n ; i++) 
#define repd(n) for(ll i = n-1 ; i>=0 ; i--)
#define MOD 1000000007

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

	string s; cin>>s;
  bool a=0,b=0;
  for(auto i:s)if(i=='A') f1=1; else f2=1;
  if(f1 && f2) cout<<"Yes"; else cout<<"No";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:27: error: 'f1' was not declared in this scope; did you mean 'y1'?
   21 |   for(auto i:s)if(i=='A') f1=1; else f2=1;
      |                           ^~
      |                           y1
a.cc:21:38: error: 'f2' was not declared in this scope
   21 |   for(auto i:s)if(i=='A') f1=1; else f2=1;
      |                                      ^~
a.cc:22:6: error: 'f1' was not declared in this scope; did you mean 'y1'?
   22 |   if(f1 && f2) cout<<"Yes"; else cout<<"No";
      |      ^~
      |      y1
a.cc:22:12: error: 'f2' was not declared in this scope
   22 |   if(f1 && f2) cout<<"Yes"; else cout<<"No";
      |            ^~
Language: C++

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

int main() {
  vector<char> vec(3);
  for (int i = 0;i < 3;i++) {
    cin >> vec.at(i);
  }
  
  sring s1{vec.at(0)};
  sring s2{vec.at(1)};
  sring s3{vec.at(2)};
  
  if (s1 == "A" && s2 == "A" && s3 == "A") {
    cout << "No" << endl;
  } else if (s1 == "B" && s2 == "B" && s3 == "B") {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'sring' was not declared in this scope
   10 |   sring s1{vec.at(0)};
      |   ^~~~~
a.cc:11:8: error: expected ';' before 's2'
   11 |   sring s2{vec.at(1)};
      |        ^~~
      |        ;
a.cc:12:8: error: expected ';' before 's3'
   12 |   sring s3{vec.at(2)};
      |        ^~~
      |        ;
a.cc:14:7: error: 's1' was not declared in this scope; did you mean 'y1'?
   14 |   if (s1 == "A" && s2 == "A" && s3 == "A") {
      |       ^~
      |       y1
a.cc:14:20: error: 's2' was not declared in this scope
   14 |   if (s1 == "A" && s2 == "A" && s3 == "A") {
      |                    ^~
a.cc:14:33: error: 's3' was not declared in this scope
   14 |   if (s1 == "A" && s2 == "A" && s3 == "A") {
      |                                 ^~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string str;
  
  cin >> str;
  
  switch(str){
    case (string)"AAA":
    case (string)"BBB":
      cout << "Yes";
      break;
   	default:
      cout << "No";
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: switch quantity not an integer
   10 |   switch(str){
      |          ^~~
a.cc:11:10: error: temporary of non-literal type 'std::string' {aka 'std::__cxx11::basic_string<char>'} in a constant expression
   11 |     case (string)"AAA":
      |          ^~~~~~~~~~~~~
In file included from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/basic_string.h:86:11: note: 'std::__cxx11::basic_string<char>' is not literal because:
   86 |     class basic_string
      |           ^~~~~~~~~~~~
/usr/include/c++/14/bits/basic_string.h:86:11: note:   'std::__cxx11::basic_string<char>' has a non-trivial destructor
a.cc:12:10: error: temporary of non-literal type 'std::string' {aka 'std::__cxx11::basic_string<char>'} in a constant expression
   12 |     case (string)"BBB":
      |          ^~~~~~~~~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string str;
  
  cin >> str;
  
  switch(str){
    case "AAA":
    case "BBB":
      cout << "Yes";
      break;
   	default:
      cout << "No";
      break;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: switch quantity not an integer
   10 |   switch(str){
      |          ^~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
 
int main(){
  string str;
  
  cin >> str;
  
  if(str[0] == str[1] and str[1] == str[2]){
    cout << "Yes";
  }
  else{
    cout << "No"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |     cout << "No"
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

int main(){
  int a,b;
  cin>>a>>b;
  int c=b*10;
  int d=(b+1)*10;
  int ans=-1;
  for(int i=c;i<d;i++){
    if((i*50)==a){
      ans=i;
      break;
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>a>>b;
      |   ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout<<ans<<endl;
      |   ^~~~
a.cc:13:14: error: 'endl' was not declared in this scope
   13 |   cout<<ans<<endl;
      |              ^~~~
Language: C++

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

int main(){
  string str;
  
  cin >> str;
  
  if(str[0] == str[1] or str[1] == str[2]){
    cout << "Yes";
  }
  else{
    cout << "No"
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |     cout << "No"
      |                 ^
      |                 ;
   15 |   }
      |   ~
Language: C++

/*input

*/
#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;

#define int long long 
#define double long double
#define f first
#define s second
#define mp make_pair
#define pb push_back

#define RE(i,n) for (int i = 1; i <= n; i++)
#define RED(i,n) for (int i = n; i > 0; i--)
#define REPS(i,n) for(int i = 1; (i*i) <= n; i++)
#define REP(i,n) for (int i = 0; i < (int)n; i++)
#define FOR(i,a,b) for (int i = a; i < b; i++)
#define REPD(i,n) for (int i = n-1; i >= 0; i--)
#define FORD(i,a,b) for (int i = a; i >= b; i--)

#define all(v) v.begin(),v.end()
#define pii pair<int,int>
#define vi vector<int>
#define vvi vector<vi>
#define print(arr) for (auto it = arr.begin(); it != arr.end(); ++it) cout << *it << " "; cout << endl;
#define debug(x) cout << x << endl;
#define debug2(x,y) cout << x << " " << y << endl;
#define debug3(x,y,z) cout << x << " " << y << " " << z << endl;

typedef tree<
int,
null_type,
less<int>,
rb_tree_tag,
tree_order_statistics_node_update>
ordered_set;

const int INF = 1e18+1;
const int MOD = 1e9+7;
const double PI = 3.14159265358979323846264338;

int raise(int a,int n,int m = MOD){
  if(n == 0)return 1;
  if(n == 1)return a;
  int x = 1;
    x *= raise(a,n/2,m);
    x %= m;
    x *= x;
    x %= m;
    if(n%2)x*= a;
    x %= m;
    return x;
}

int floor1(int n,int k){
    if(n%k == 0 || n >= 0)return n/k;
    return (n/k)-1;
}

int ceil1(int n,int k){
    return floor1(n+k-1,k);
}

void solve(){
    string s;cin >> s;
    if(s == "AAA" or s === "BBB")cout << "No";
    else cout << "Yes";
}

signed main(){
  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
  //freopen(".in","r",stdin);freopen(".out","w",stdout);
  int t = 1;
  //cin >> t;
  while(t--){
    solve();
  }
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:70:26: error: expected primary-expression before '=' token
   70 |     if(s == "AAA" or s === "BBB")cout << "No";
      |                          ^
Language: C++

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

int main() {
  vector<char> vec(3);
  for (int i = 0;i < 3;i++) {
    cin >> vec.at(i);
  }
  
  if (vec.at(0) == "A" && vec.at(1) == "A" && vec.at(2) == "A") {
    cout << "No" << endl;
  } else if (vec.at(0) == "B" && vec.at(1) == "B" && vec.at(2) == "B") {
    cout << "No" << endl;
  } else {
    cout << "Yes" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (vec.at(0) == "A" && vec.at(1) == "A" && vec.at(2) == "A") {
      |       ~~~~~~~~~~^~~~~~
a.cc:10:37: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (vec.at(0) == "A" && vec.at(1) == "A" && vec.at(2) == "A") {
      |                           ~~~~~~~~~~^~~~~~
a.cc:10:57: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if (vec.at(0) == "A" && vec.at(1) == "A" && vec.at(2) == "A") {
      |                                               ~~~~~~~~~~^~~~~~
a.cc:12:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   } else if (vec.at(0) == "B" && vec.at(1) == "B" && vec.at(2) == "B") {
      |              ~~~~~~~~~~^~~~~~
a.cc:12:44: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   } else if (vec.at(0) == "B" && vec.at(1) == "B" && vec.at(2) == "B") {
      |                                  ~~~~~~~~~~^~~~~~
a.cc:12:64: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   } else if (vec.at(0) == "B" && vec.at(1) == "B" && vec.at(2) == "B") {
      |                                                      ~~~~~~~~~~^~~~~~
Language: C++

S = input()
  
if S == 'AAA' or S == 'BBB':
	print('No')
else:
	print('Yes')

Compiler output:
a.cc:3:9: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'AAA' or S == 'BBB':
      |         ^~~~~
a.cc:3:23: warning: multi-character character constant [-Wmultichar]
    3 | if S == 'AAA' or S == 'BBB':
      |                       ^~~~~
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print('No')
      |               ^~~~
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('Yes')
      |               ^~~~~
a.cc:1:1: error: 'S' does not name a type
    1 | S = input()
      | ^
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String args[]) throws Exception{
        
      Scanner s = new Scanner(System.in);
        String input = s.nextLine();
      
      boolean isSame = String.valueOf(input.charAt(0)).equals(String.valueOf(input.charAt(1))) &&
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)))
   
    	System.out.println(isSame ? "No" : "Yes");
    }
}

Compiler output:
Main.java:10: error: ';' expected
        				String.valueOf(input.charAt(1)).equals(String.valueOf(input.charAt(2)))
        				                                                                       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace;
int main(){short int N,A,B;
          cin>>N>>A>>B;
          cout<<(N/(A+B))*A+min(A,N%(A+B)<<endl;)
          
          
          }

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |           cin>>N>>A>>B;
      |           ^~~
      |           std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |           cout<<(N/(A+B))*A+min(A,N%(A+B)<<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:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    5 |           cout<<(N/(A+B))*A+min(A,N%(A+B)<<endl;)
      |                                            ^~~~
      |                                            std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:5:49: error: expected primary-expression before ')' token
    5 |           cout<<(N/(A+B))*A+min(A,N%(A+B)<<endl;)
      |                                                 ^
Language: Java

import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    String str=sc.next();
    int l=str.length();
    String result="";
    for(int i=0;i<l;i++)
    {
      Char ch=str.charAt(i);
      result=result+ch;
    }
    if(result.equals("AAA")||result.equals("BBB"))
    {
      System.out.println("No");
    }
    else
    {
      System.out.println("Yes");
    }
  }
}

Compiler output:
Main.java:12: error: cannot find symbol
      Char ch=str.charAt(i);
      ^
  symbol:   class Char
  location: class Main
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before '}' token
   12 |   else cout << "Yes" << endl
      |                             ^
      |                             ;
   13 | }
      | ~
Language: Java

import java.util.*;
class Station
{
  public static void main(String[] args)
  {
    Scanner sc=new Scanner(System.in);
    String str=sc.hasNext();
    int l=str.length();
    String result="";
    for(int i=0;i<l;i++)
    {
      Char ch=str.charAt(i);
      result=result+ch;
    }
    if(result.equals("AAA")||result.equals("BBB"))
    {
      System.out.println("No");
    }
    else
    {
      System.out.println("Yes");
    }
  }
}
      
      
      
    
    


Compiler output:
Main.java:7: error: incompatible types: boolean cannot be converted to String
    String str=sc.hasNext();
                         ^
Main.java:12: error: cannot find symbol
      Char ch=str.charAt(i);
      ^
  symbol:   class Char
  location: class Station
2 errors
Language: C

#include <stdio.h>
 
int main(void) {
  char s1, s2, s3, Ans[3];
  scanf("%c%c%c", &s1, &s2, &s3); 
  if(s1==s2&&s2==s3) {
    Ans == "No";
  else {
    Ans == "Yes";
  }
  printf("%s", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:3: error: expected '}' before 'else'
    8 |   else {
      |   ^~~~
Language: Java


import java.io.*;
import java.util.*;
public class Queue{
    Node front;
    Node rear;
    static class Node{
        char p;
        Node n_link;
        Node p_link;
        Node(char d){
            this.p=d;
            this.n_link=null;
            this.p_link=null;
        }
    }
    public static Queue insert_end(Queue q,char p){
        Node n_node= new Node(p);
        if(q.front==null && q.rear==null ){
            q.front=n_node;
            q.rear=n_node;
        }
        else{
            n_node.p_link=q.rear;
            q.rear.n_link=n_node;
            q.rear=n_node;
        }
        return q;
    }
    public static Queue insert_begin(Queue q,char p){
        Node n_node= new Node(p);
        if(q.front==null && q.rear==null ){
            q.front=n_node;
            q.rear=n_node;
        }
        else{
            n_node.n_link=q.front;
            q.front.p_link=n_node;
            q.front=n_node;
        }
        return q;
    }
    
    public static void print(Node ptr){
        if(ptr.n_link==null){
            while(ptr!=null){
                System.out.print(ptr.p);
                ptr=ptr.p_link;
            }
        }
        else{
            while(ptr!=null){
                System.out.print(ptr.p);
                ptr=ptr.n_link;
            }
        }
    }
	public static void main (String[] args) {
		Queue q = new Queue();
		Scanner input=new Scanner(System.in);
        String n=input.nextLine();
        int t=input.nextInt();
        for(int i=0;i<n.length();i++){
            q=insert_end(q,n.charAt(i));
        }
        for(int i=0;i<t;i++){
            int a=input.nextInt();
            if(a==1){
                Node ptr=q.front;
                q.front=q.rear;
                q.rear=ptr;
            }
            else{
                int b=input.nextInt();
                if(b==1){
                    String c=input.next();
                    q=insert_begin(q,c.charAt(0));
                }
                else{
                    String d=input.next();
                    q=insert_end(q,d.charAt(0));
                    
                }
            }
        }
        print(q.front);
}
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	string a;
	cin >> a;
	int q;
	cin >> q;
    int reverse1 = 0;
	while(q--){
		int t;
		cin >> t;
		if(t==2){
			int w;
			cin >> w;
			string r;
			cin >> r;
			if(reverese1 ==0){
           if(w==1) a = r+a;
			else a = a+r;}
          else {
            if(w==1) a = a+r;
			else a = r+a;
          }
            
		}
		else 
		reverse1=1- reverse1;
	}
 if(reverse1 ==1 )reverse(a.begin(),a.end());
  cout << a;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: 'reverese1' was not declared in this scope; did you mean 'reverse1'?
   18 |                         if(reverese1 ==0){
      |                            ^~~~~~~~~
      |                            reverse1
Language: C

#include <stdio.h>
int main(){
	char i,S[3];
	for (i=0;i<3;i++)
	{
		scanf("%c",&S[i]);
	}
	for (i=0;i<2;i++)
	{
		if (S[i]=='A')
		{
			if (S[i+1]=='A')
			{
				printf("No");
				return 0;
			}
		}
		else
		{
			if(S[i+1]=='B')
			{
				printf("No");
				return 0;
			}
		}
	}
	printf("Yes");
	return 0;
}
}

Compiler output:
main.c:30:1: error: expected identifier or '(' before '}' token
   30 | }
      | ^
Language: Java

    import java.io.BufferedReader;
    import java.io.IOException;
    import java.io.InputStreamReader;
    public class Test
    {
        public static void main(String[] args) throws IOException
        {
            BufferedReader reader =
                       new BufferedReader(new InputStreamReader(System.in));
            String[] stations = reader.readLine().split("");
            if (stations.length < 3){
            	System.exit(1);
            }
          
          	String first = null;
          boolean isAllSame = true;
          for (String station : stations){
          	if (first == null){
            	first = station;
            }else if (!first.equals(station){
            	isAllSame = false;
              break;
            }
          }
           
                      System.out.println(isAllSame ? "No":"Yes);
                      
        }
    }

Compiler output:
Main.java:20: error: ')' expected
            }else if (!first.equals(station){
                                            ^
Main.java:26: error: unclosed string literal
                      System.out.println(isAllSame ? "No":"Yes);
                                                          ^
2 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	string a;
	cin >> a;
	int q;
	cin >> q;
    int reverse = 0;
	while(q--){
		int t;
		cin >> t;
		if(t==2){
			int w;
			cin >> w;
			string r;
			cin >> r;
			if(reverese ==0){
           if(w==1) a = r+a;
			else a = a+r;}
          else {
            if(w==1) a = a+r;
			else a = r+a;
          }
            
		}
		else 
		reverse=1- reverse;
	}
 if(reverse ==1 )reverse(a.begin(),a.end());
  cout << a;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:28: error: 'reverese' was not declared in this scope; did you mean 'reverse'?
   18 |                         if(reverese ==0){
      |                            ^~~~~~~~
      |                            reverse
a.cc:30:25: error: 'reverse' cannot be used as a function
   30 |  if(reverse ==1 )reverse(a.begin(),a.end());
      |                  ~~~~~~~^~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin>>s;
  int a=0,b=0;
  for(int i=0;i<3;i++){
    if(s[i]=='A'){
      a++;}
  }
  if(s[i]=='B'){
    b++;
  }
}
  if(a==0||b==0){
    cout<<"NO";}
else{
  cout<<"YES";}
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: 'i' was not declared in this scope
   11 |   if(s[i]=='B'){
      |        ^
a.cc: At global scope:
a.cc:15:3: error: expected unqualified-id before 'if'
   15 |   if(a==0||b==0){
      |   ^~
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else{
      | ^~~~
a.cc:20:3: error: expected unqualified-id before 'return'
   20 |   return 0;
      |   ^~~~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>
 
int main(void) {
  char s1, s2, s3, Ans[3];
  scanf("%c%c%c", &s1, &s2, &s3); 
  if(s1==s2&&s2==s3) {
    Ans = "No";
  else {
    Ans = "Yes";
  }
  printf("%s", Ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: assignment to expression with array type
    7 |     Ans = "No";
      |         ^
main.c:8:3: error: expected '}' before 'else'
    8 |   else {
      |   ^~~~
main.c:9:9: error: assignment to expression with array type
    9 |     Ans = "Yes";
      |         ^
Language: C++

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

int main() {
  int n, i;
  std::string s, a, b, c;
  cin >> s;
  cin >> n;
  i = 0;
  while (i < n){
    cin >> a >> b >> c;
    if (a == "1"){
  	  std::reverse(s.begin(), str.end());
    }else{
      if (b == "1"){
        s = c + s
      }else{
        s = s + c
      }
    }
  }
  cout << s << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:35: error: 'str' was not declared in this scope; did you mean 'std'?
   16 |           std::reverse(s.begin(), str.end());
      |                                   ^~~
      |                                   std
a.cc:19:18: error: expected ';' before '}' token
   19 |         s = c + s
      |                  ^
      |                  ;
   20 |       }else{
      |       ~           
a.cc:21:18: error: expected ';' before '}' token
   21 |         s = s + c
      |                  ^
      |                  ;
   22 |       }
      |       ~
Language: C++

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

int main() {
  string S;
  cin >> S, AAA, BBB;
  
  if(S != AAA && S != BBB){
  cout << "Yes" << endl;
  }
  
   if(S == AAA || S == BBB){
  cout << "NO" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'AAA' was not declared in this scope
    6 |   cin >> S, AAA, BBB;
      |             ^~~
a.cc:6:18: error: 'BBB' was not declared in this scope
    6 |   cin >> S, AAA, BBB;
      |                  ^~~
Language: Java

import java.util.Scanner;
public class Solution {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.nextLine();
        int c = 0;
        for (int i = 0; i < s.length(); i++)
            if (s.charAt(i) == 'A')
                c++;
        if (c == 0 || c == 3)
            System.out.println("No");
        else
            System.out.println("Yes");
    }
}

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

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


int main()
{
	double A, B;
	cin >> A;
	cin >> B;
	double c1, c2, C;
	c1 = A / 0.08;
	c2 = B / 0.10;

	if (c1 > c2)
	{
		while (c1 * 0.08 < 1)
			c1 += 1;

		if ((c1 - c2) * 0.1 < 1.0)
			cout << int(c1);
		else
			cout << -1;
	}
	else
	{
		while (c2 * 0.1 < 1)
			c2 += 1;

		if ((c2 - c1) * 0.08 < 1.0)
			cout << int(c2);
		else
			cout << -1;
	}
	
	

	return 0;

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

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

int main() {
  string S, AAA, BBB,
  cin >> S;
  
  if(S == AAA || S == BBB){
  cout << "No" << endl;
  }
  
   if(S != AAA && S != BBB){
  cout << "Yes" << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected initializer before '>>' token
    6 |   cin >> S;
      |       ^~
Language: C

nclude <stdio.h>

int main(void){

    char j, h, g;

    scanf("%c", &j);
    scanf("%c", &h);

    if(j != h){
        printf("Yes\n");
    }
    scanf("%c", &g);

    if(h==g && h==j && g==j){
        printf("No\n");
    }else if(j!=g){
        printf("Yes\n");
    }

    return 0;

}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | nclude <stdio.h>
      |        ^
Language: C++

// garnab27
#include <bits/stdc++.h>
#define MP make_pair
#define PB push_back
#define ll int64_t
#define F first
#define S second
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size())
using namespace std;
ll modex(ll a,ll b,ll p){ll res=1;a%=p;while(b>0){if(b&1)res=(res*a)%p;a=(a*a)%p;b>>=1;}return res;}
int dx[]={1,0,-1,0,1,-1,-1,1};
int dy[]={0,1,0,-1,1,1,-1,-1};
 
 
int main(){
	ios::sync_with_stdio(0);
	cin.tie(NULL);cout.tie(NULL);	
 
	string s;
	cin>>s;

	int a=0, b=0;
	for(cah c:s) {
		if(c=='A') a++;
		else b++;
	}

	if(a==3 || b==3) cout<<"NO";
	else cout<<"YES";
 
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:13: error: 'cah' was not declared in this scope
   24 |         for(cah c:s) {
      |             ^~~
a.cc:29:9: error: expected primary-expression before 'if'
   29 |         if(a==3 || b==3) cout<<"NO";
      |         ^~
a.cc:27:10: error: expected ';' before 'if'
   27 |         }
      |          ^
      |          ;
   28 | 
   29 |         if(a==3 || b==3) cout<<"NO";
      |         ~~
a.cc:29:9: error: expected primary-expression before 'if'
   29 |         if(a==3 || b==3) cout<<"NO";
      |         ^~
a.cc:27:10: error: expected ')' before 'if'
   27 |         }
      |          ^
      |          )
   28 | 
   29 |         if(a==3 || b==3) cout<<"NO";
      |         ~~
a.cc:24:12: note: to match this '('
   24 |         for(cah c:s) {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: 'AAA' was not declared in this scope
    8 |   if(S != AAA || S != BBB){
      |           ^~~
a.cc:8:23: error: 'BBB' was not declared in this scope
    8 |   if(S != AAA || S != BBB){
      |                       ^~~
a.cc:12:12: error: 'AAA' was not declared in this scope
   12 |    if(S == AAA || S == BBB){
      |            ^~~
a.cc:12:24: error: 'BBB' was not declared in this scope
   12 |    if(S == AAA || S == BBB){
      |                        ^~~
Language: C++

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

template <class BidirectionalIterator>
void reverse(BidirectionalIterator first, BidirectionalIterator last) {
  for ( ; first != last && first != --last; ++first)
    std::iter_swap(first, last);
}

int main()
{
 int a,b,q;
//    char s[1000100];
    // 整数の入力
  //  scanf("%s", &s);
    string s;
    cin >> s;

    scanf("%d",&q);
    char c;

    int type, f;

    for (int i = 0; i < q; i++) {
        scanf("%d %d %s", &type, &f, &c);

        if (type == 1) {
            std::reverse(s.begin(), s.end());
        } else {
            if (f == 1) {
                s = c + s;
            } else {
                s = s + c;
            }
        }
    }
printf("%s", s);


    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:18: error: 'reverse' is not a member of 'std'; did you mean 'reverse'?
   30 |             std::reverse(s.begin(), s.end());
      |                  ^~~~~~~
a.cc:7:6: note: 'reverse' declared here
    7 | void reverse(BidirectionalIterator first, BidirectionalIterator last) {
      |      ^~~~~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  char S[3];
  for(int i=0;i<3;i++){cin >> S[i];}
  if(S == {'A','A','A'}){
    cout << "No" << endl;
  }
  if else(S == {'B','B','B'}){cout << "No" << endl;}
  else{cout << "Yes" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '{' token
    7 |   if(S == {'A','A','A'}){
      |           ^
a.cc:7:10: error: expected ')' before '{' token
    7 |   if(S == {'A','A','A'}){
      |     ~    ^~
      |          )
a.cc:10:6: error: expected '(' before 'else'
   10 |   if else(S == {'B','B','B'}){cout << "No" << endl;}
      |      ^~~~
      |      (
a.cc:10:29: error: expected primary-expression before ')' token
   10 |   if else(S == {'B','B','B'}){cout << "No" << endl;}
      |                             ^
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else{cout << "Yes" << endl;}
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
  char S[3];
  for(int i=0;i<3;i++){cin >> S[i];}
  if[S == {'A','A','A'} || S == {'B','B','B'}]{
    cout << "No" << endl;
  }
  else{cout << "Yes" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected '(' before '[' token
    7 |   if[S == {'A','A','A'} || S == {'B','B','B'}]{
      |     ^
      |     (
a.cc:7:25: error: expected primary-expression before '||' token
    7 |   if[S == {'A','A','A'} || S == {'B','B','B'}]{
      |                         ^~
a.cc:7:33: error: expected primary-expression before '{' token
    7 |   if[S == {'A','A','A'} || S == {'B','B','B'}]{
      |                                 ^
a.cc:7:46: error: expected primary-expression before ']' token
    7 |   if[S == {'A','A','A'} || S == {'B','B','B'}]{
      |                                              ^
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{cout << "Yes" << endl;}
      |   ^~~~
Language: Java

import java.util.*;
import java.io.*;
class solution{
  public static void main(String str[]) {
    Scanner sc=new Scanner(System.in);
    String str = sc.nextLine();
    int len = str.length();
    int counta = 0;
    int countb = 0;
    for(int i= 0; i < len; i++) {
      if(str.charAt(i) == 'A') {
        counta += 1;
      }
      else {
        countb += 1;
      }
    }
    System.out.println((counta > 0 && countb > 0) ? "Yes" : "No");
  }
}

Compiler output:
Main.java:6: error: variable str is already defined in method main(String[])
    String str = sc.nextLine();
           ^
1 error
Language: C++

#include<iostream>
using namespace std;

int main(){
  char S[3];
  for(int i=0;i<3;i++){cin >> S[i];}
  if(S == {'A','A','A'} || S == {'B','B','B'}){
    cout << "No" << endl;
  }
  else{cout << "Yes" << endl;}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: expected primary-expression before '{' token
    7 |   if(S == {'A','A','A'} || S == {'B','B','B'}){
      |           ^
a.cc:7:10: error: expected ')' before '{' token
    7 |   if(S == {'A','A','A'} || S == {'B','B','B'}){
      |     ~    ^~
      |          )
Language: C++

#include <iostream>
using namespace std;
int main(void){
    string s;
    cin>>s;
    if(s="aaa"){cout<<"no"<<endl;}
    else if(s="bbb"){cout<<"no"<<endl;}
    else if{cout<<"yes"<<endl;}
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"aaa"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 |     if(s="aaa"){cout<<"no"<<endl;}
      |        ~^~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
a.cc:7:14: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"bbb"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |     else if(s="bbb"){cout<<"no"<<endl;}
      |             ~^~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
a.cc:8:12: error: expected '(' before '{' token
    8 |     else if{cout<<"yes"<<endl;}
      |            ^
      |            (
Language: C++

#include <iostream>
#include <string>

int main(){
   long long unsigned N;
   long long unsigned A;
   long long unsigned B;
   long long unsigned left;
   std::cin >> N >> A >> B;
   if ((A+B) == 0) {
      std::cout << 0 << std::endl;
      return 1;
   }
   assert(A+B > 0);
   long long unsigned res = N%(A+B);
   if (res == 0) left = 0;
   if (res >= A) left = A;
   if (res < A) left = res;
   long long unsigned retval = A*(N/(A+B));
   std::cout << retval+left << std::endl;
   return 1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: 'assert' was not declared in this scope
   14 |    assert(A+B > 0);
      |    ^~~~~~
a.cc:2:1: note: 'assert' is defined in header '<cassert>'; this is probably fixable by adding '#include <cassert>'
    1 | #include <iostream>
  +++ |+#include <cassert>
    2 | #include <string>
Language: C

#include <stdio.h>

int     main(void)
{
    char    bus[4];
    scanf("%s", bus);
    if (bus[0] == bus[1] == bus[2] == )
        printf("No");
    else
        printf("Yes");
    return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:39: error: expected expression before ')' token
    7 |     if (bus[0] == bus[1] == bus[2] == )
      |                                       ^
Language: Java

import java.util.*;
 publicclass  Main
{ public static void main(String args[])
  { Scanner sc=new Scanner (System.in);
     long n=sc.nextLong();
   long a=sc.nextLong();
   long b=sc.nextLong();
   System.out.println(n/(b+a)*a+Math.min(a,n%(b+a)));
}
}



Compiler output:
Main.java:2: error: class, interface, enum, or record expected
 publicclass  Main
 ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
{ public static void main(String args[])
                ^
  (use --enable-preview to enable unnamed classes)
Main.java:10: error: class, interface, enum, or record expected
}
^
3 errors
Language: C++

#include<iostream>
using namespace std;

int main(){
  char S[3];
  for(int i=0;i<3;i++){cin >> S[i];}
  if(S=={'A','A','A'} || S=={'B','B','B'}){
    cout << "No" << endl;
  }
  else{cout << "Yes" << endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before '{' token
    7 |   if(S=={'A','A','A'} || S=={'B','B','B'}){
      |         ^
a.cc:7:9: error: expected ')' before '{' token
    7 |   if(S=={'A','A','A'} || S=={'B','B','B'}){
      |     ~   ^
      |         )
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define mp make_pair
#define pb push_back
#define ll long long int
#define ld long double
#define tc long long t;cin>>t;while(t--)
#define E endl
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);
#define V vector<ll>vect;
using namespace std;
int main()
{
string s;
cin>>s;
ll flag=0,flag1=0;
for(ll i=0;i<s.length();i++)
{
	if(s[i]=='A')
	{
		flag=1;
	}
		if(s[i]=='B')
	{
		flag1=1;
	}
A
}
if(flag&&flag1)
cout<<"YES";
else
cout<<"NO";
return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:27:1: error: 'A' was not declared in this scope
   27 | A
      | ^
Language: C

#include<stdio.h>
int main()
{
	char S[3],a,b;
	int i,c,d;
	scanf("%s",S);
	i=0;
for(i=0;i<3;i++)
{
	if(S[i]=='A')
	c++;
	if else(S[i]=='B')
	d++;
}
if(c==2||d==2)
printf("YES");
else
printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:12:12: error: expected '(' before 'else'
   12 |         if else(S[i]=='B')
      |            ^~~~
      |            (
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

unsigned long long int n,a,b,k,p = ;

    cin>> n>> a>> b;

    if(a == 0)
        cout << "0\n";
    else if(n < a+b && n<a)
        cout << n<<"\n";
    else if(n < a+b && n>=a)
        cout << a<<"\n";
    else{
        k = n/(a+b);
        p =n%(a+b);
        if(n%(a+b) >= a) p = a;
        
        cout << (k)*a + p<<"\n";
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected primary-expression before ';' token
    7 | unsigned long long int n,a,b,k,p = ;
      |                                    ^
Language: C++

#include<bits/stdc++.h>
#define ll long long int
#define mp make_pair
#define pb push_back
#define ll long long int
#define ld long double
#define tc long long t;cin>>t;while(t--)
#define E endl
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);
#define V vector<ll>vect;
using namespace std;
int main()
{
string s;
cin>>s;
ll flag=0;
for(ll i=0;i<s.length();i++)
{
	if(s[i]=='A'&& s[i+1]=='B')
	{
		flag=1;
	}
		if(s[i]=='B'&& s[i+1]=='A')
	{
		flag=1;
	}

}
if(flag==1)
cout<<"YES";
else
cout<<"NO";
return 0;
}

#include<bits/stdc++.h>
#define ll long long int
#define mp make_pair
#define pb push_back
#define ll long long int
#define ld long double
#define tc long long t;cin>>t;while(t--)
#define E endl
#define FIO ios_base::sync_with_stdio(false);cin.tie(NULL);
#define V vector<ll>vect;
using namespace std;
int main()
{
string s;
cin>>s;
ll flag=0;
for(ll i=0;i<s.length();i++)
{
	if(s[i]=='A'&& s[i+1]=='B')
	{
		flag=1;
	}
		if(s[i]=='B'&& s[i+1]=='A')
	{
		flag=1;
	}

}
if(flag==1)
cout<<"YES";
else
cout<<"NO";
return 0;
}



Compiler output:
a.cc:47:5: error: redefinition of 'int main()'
   47 | int main()
      |     ^~~~
a.cc:12:5: note: 'int main()' previously defined here
   12 | int main()
      |     ^~~~
Language: C++

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

int main()
{
  String n;
  cin >> n;
  
  for(int i=1;i<3;i++)
  {
    if (n[i]==n[i-1]) 
    {
      cout<<"No"<<endl;
      break;
    }
    if(i+1==3) cout<<"Yes"<<endl;

  }
  return 0;
}


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

#include<iostream>
using namespace std;
#define ll long long

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:86: error: lvalue required as left operand of assignment
    9 |         if((s[0]==s[1] && s[0]==s[2] ) || (s[1]==s[0] && s[1]==s[2] ) || (s[2]==s[0] && s[2]=s[1]))
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cstring>
#include<string.h>
using namespace std;
char s[300005];
void move(char x)
{
	for (int i = strlen(s); i >= 0; i--)
	{
		s[i + 1] = s[i];
	}
	s[0] = x;
	return;
}
int main()
{
	cin >> s;
	long int n;
	cin >> n;
	for (long int i = 1; i <= n; i++)
	{
		int a;
		cin >> a;
		if (a == 1)
			strrev(s);
		else
		{
			int b;
			char c;
			cin >> b >> c;
			if (b == 1)
			{
				move(c);
			}
			else
			{
				s[strlen(s)] = c;
			}
		}
	}
	cout << s << endl;
	return 0;
}

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

int main(){
   int N;
   int A;
   int B;
   int left;
   std::cin >> N >> A >> B;
   int res = N%(A+B);
   if (res == 0) left = 0;
   if (res >= A) left = A;
   if (res < A) left = res;
   int retval = A*(N/(A+B));
   std::cout << retval+left << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' is not a member of 'std'
    6 |    std::cin >> N >> A >> B;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main(){
a.cc:12:9: error: 'cout' is not a member of 'std'
   12 |    std::cout << retval+left << std::endl;
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:37: error: 'endl' is not a member of 'std'
   12 |    std::cout << retval+left << std::endl;
      |                                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | int main(){
Language: C++

S = input()

if len(S)==3 and S.count('A')==2 or S.count('B')==2:
    print('Yes')

else:
    print('No')

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

int main() {

string s;
rep(i,3){
	cin>>s[i];
}


if(s[0]=='A' && s[1]=='A'&& s[2]=='A')
	{cout<<"No"<<endl;}
else if(s[0]=='B' && s[1]=='B'&& s[2]=='B')
{
	cout<<"No"<<endl;
}
else{
	cout<<"Yes"<<endl;
}
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:1: error: 'string' was not declared in this scope
    3 | string s;
      | ^~~~~~
a.cc:4:5: error: 'i' was not declared in this scope
    4 | rep(i,3){
      |     ^
a.cc:4:1: error: 'rep' was not declared in this scope
    4 | rep(i,3){
      | ^~~
a.cc:9:4: error: 's' was not declared in this scope
    9 | if(s[0]=='A' && s[1]=='A'&& s[2]=='A')
      |    ^
a.cc:10:10: error: 'cout' was not declared in this scope
   10 |         {cout<<"No"<<endl;}
      |          ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |         {cout<<"No"<<endl;}
      |                      ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"No"<<endl;
      |         ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |         cout<<"No"<<endl;
      |                     ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"Yes"<<endl;
      |         ^~~~
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |         cout<<"Yes"<<endl;
      |                      ^~~~
Language: C

#include <stdio.h>
int main(void){
    
    char buf1[30];
    char sta[3];
    
    fgets(buf1, sizeof(buf1), stdin);
    sscanf(buf1, "%c%c%c", &sta[0], &sta[1], &sta[2]);
    
    if(sta[0] != sta[1])printf("yes");
    else if(sta[1] != sta[2]) printf("yes");
    else printf("no");
    
    return 0;
    
}
#include <stdio.h>
int main(void){
    
    char buf1[30];
    char sta[3];
    
    fgets(buf1, sizeof(buf1), stdin);
    sscanf(buf1, "%c%c%c", &sta[0], &sta[1], &sta[2]);
    
    if(sta[0] != sta[1])printf("Yes");
    else if(sta[1] != sta[2]) printf("Yes");
    else printf("No");
    
    return 0;
    
}

Compiler output:
main.c:18:5: error: redefinition of 'main'
   18 | int main(void){
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void){
      |     ^~~~
Language: C

#incldue<stidio.h>
int main()
  {
  char st[3];
  scanf("%s",st);
  if(st=='AAA'|| st=='BBB')
    printf("no");
  else
   printf("yes");
  return 0;
  }

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<stidio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%s",st);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incldue<stidio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%s",st);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:6:10: warning: multi-character character constant [-Wmultichar]
    6 |   if(st=='AAA'|| st=='BBB')
      |          ^~~~~
main.c:6:8: warning: comparison between pointer and integer
    6 |   if(st=='AAA'|| st=='BBB')
      |        ^~
main.c:6:22: warning: multi-character character constant [-Wmultichar]
    6 |   if(st=='AAA'|| st=='BBB')
      |                      ^~~~~
main.c:6:20: warning: comparison between pointer and integer
    6 |   if(st=='AAA'|| st=='BBB')
      |                    ^~
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("no");
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |    printf("yes");
      |    ^~~~~~
main.c:9:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: Java

import java.util.*;
 static class MAIN
{ public static void main(String args[])
  { Scanner sc=new Scanner (System.in);
   int n=sc.nextInt();int s=0;int f=0;
   int b=sc.nextInt();int i=1;
   int r=sc.nextInt();
   while(n>s)
   {for(i=1;i<=b;i++)
       { if(n>s)
           s=s+1;
         else
         break;
        }if(b==0)
         f=0;
         else
        f=f+i-1;
        for(i=1;i<=r;i++)
        { if(n>s)
            s=s+1;
            else
            break;
        }
        
   }
   System.out.println(f);
}
}

Compiler output:
Main.java:2: error: modifier static not allowed here
 static class MAIN
        ^
1 error