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

    int N,Q;
    cin>>N>>Q;
    string s;
    cin>>s;
    
    vector<char> t(Q),d(Q);
    for(int i=0;i<Q;i++){
        cin>>t[i]>>d[i];
    }
    int left=-1,right=N;
    for(int i=Q-1;i>=0;i--){
        if(d[i]=='L'&&t[i]==s[left+1]) left++;
        if(d[i]=='R'&&t[i]==s[right-1]) right--;
        if(d[i]=='L'&&t[i]==s[right]) right++;
        if(d[i]=='R'&&t[i]==s[left]) left--;
        
    }
    cout<<max(0,right-left-1)<<endl;

Compiler output:
a.cc:2:5: error: 'cin' does not name a type
    2 |     cin>>N>>Q;
      |     ^~~
a.cc:3:5: error: 'string' does not name a type
    3 |     string s;
      |     ^~~~~~
a.cc:4:5: error: 'cin' does not name a type
    4 |     cin>>s;
      |     ^~~
a.cc:6:5: error: 'vector' does not name a type
    6 |     vector<char> t(Q),d(Q);
      |     ^~~~~~
a.cc:7:5: error: expected unqualified-id before 'for'
    7 |     for(int i=0;i<Q;i++){
      |     ^~~
a.cc:7:17: error: 'i' does not name a type
    7 |     for(int i=0;i<Q;i++){
      |                 ^
a.cc:7:21: error: 'i' does not name a type
    7 |     for(int i=0;i<Q;i++){
      |                     ^
a.cc:11:5: error: expected unqualified-id before 'for'
   11 |     for(int i=Q-1;i>=0;i--){
      |     ^~~
a.cc:11:19: error: 'i' does not name a type
   11 |     for(int i=Q-1;i>=0;i--){
      |                   ^
a.cc:11:24: error: 'i' does not name a type
   11 |     for(int i=Q-1;i>=0;i--){
      |                        ^
a.cc:18:5: error: 'cout' does not name a type
   18 |     cout<<max(0,right-left-1)<<endl;
      |     ^~~~
Language: C++

#include <iostream>
using namespace std; 

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if(a == b && a == c){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;

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

import java.util.Scanner;
class Main{
  public static void main(String args[]){
  int a = in.nextInt(),b=in.nextInt(),c= in.nextInt();
    if(a==b &&a==c)System.out.println("Yes");
    else System.out.println("No");
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  int a = in.nextInt(),b=in.nextInt(),c= in.nextInt();
          ^
  symbol:   variable in
  location: class Main
Main.java:4: error: cannot find symbol
  int a = in.nextInt(),b=in.nextInt(),c= in.nextInt();
                         ^
  symbol:   variable in
  location: class Main
Main.java:4: error: cannot find symbol
  int a = in.nextInt(),b=in.nextInt(),c= in.nextInt();
                                         ^
  symbol:   variable in
  location: class Main
3 errors
Language: C++

int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c) printf("Yes\n");
  else printf("No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
a.cc:5:20: error: 'printf' was not declared in this scope
    5 |   if(a==b && b==c) printf("Yes\n");
      |                    ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:6:8: error: 'printf' was not declared in this scope
    6 |   else printf("No\n");
      |        ^~~~~~
a.cc:6:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

int main()
{
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  if(a==b && b==c) printf("Yes\n");
  else printf("No\n");

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d%d%d",&a,&b,&c);
      |   ^~~~~
a.cc:5:20: error: 'printf' was not declared in this scope
    5 |   if(a==b && b==c) printf("Yes\n");
      |                    ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:6:8: error: 'printf' was not declared in this scope
    6 |   else printf("No\n");
      |        ^~~~~~
a.cc:6:8: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:6:23: error: expected '}' at end of input
    6 |   else printf("No\n");
      |                       ^
a.cc:2:1: note: to match this '{'
    2 | {
      | ^
Language: C

#include <stdio.h>

int main(){
int a,b,c = 0;

scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);

if(a==b && b==c){
printf(“Yes”);
}

else{
printf(“No”);

}

return 0;
}



Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d”,&a);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |                 ^~~~~~~~
main.c:7:7: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |       ^~~~~~~~
main.c:7:8: error: expected expression before '%' token
    7 | scanf(“%d”,&b);
      |        ^
main.c:7:10: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |                 ^~~~~~~~
main.c:8:7: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |       ^~~~~~~~
main.c:8:8: error: expected expression before '%' token
    8 | scanf(“%d”,&c);
      |        ^
main.c:8:10: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |                 ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:11:12: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:11:9: error: 'Yes' undeclared (first use in this function)
   11 | printf(“Yes”);
      |         ^~~
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:15:11: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:15:9: error: 'No' undeclared (first use in this function)
   15 | printf(“No”);
      |         ^~
Language: C

#include <stdio.h>
 
int main(void){
int a,b,c;
 
scanf(“%d %d %d”,&a,&b,&c);
 
if(a==b && b==c){
printf(“Yes”);
}
 
 
 
else{
printf(“No”);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a,&b,&c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d %d %d”,&a,&b,&c);
      |        ^
main.c:6:16: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a,&b,&c);
      |                       ^~~~~~~~
main.c:9:8: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:9:12: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:9:9: error: 'Yes' undeclared (first use in this function)
    9 | printf(“Yes”);
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:15:11: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:15:9: error: 'No' undeclared (first use in this function)
   15 | printf(“No”);
      |         ^~
Language: C

#include <stdio.h>
 
int main(){
int a,b,c;
 
scanf(“%d %d %d”,&a,&b,&c);
 
if(a==b && b==c){
printf(“Yes”);
}
 
 
 
else{
printf(“No”);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a,&b,&c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d %d %d”,&a,&b,&c);
      |        ^
main.c:6:16: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a,&b,&c);
      |                       ^~~~~~~~
main.c:9:8: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:9:12: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:9:9: error: 'Yes' undeclared (first use in this function)
    9 | printf(“Yes”);
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:15:11: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:15:9: error: 'No' undeclared (first use in this function)
   15 | printf(“No”);
      |         ^~
Language: C

#include <stdio.h>
 
int main(){
int a,b,c;
 
scanf(“%d %d %d”,&a &b &c);
 
if(a==b && b==c){
printf(“Yes”);
}
 
 
 
else{
printf(“No”);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a &b &c);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d %d %d”,&a &b &c);
      |        ^
main.c:6:16: error: stray '\342' in program
    6 | scanf(<U+201C>%d %d %d<U+201D>,&a &b &c);
      |                       ^~~~~~~~
main.c:9:8: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:9:12: error: stray '\342' in program
    9 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:9:9: error: 'Yes' undeclared (first use in this function)
    9 | printf(“Yes”);
      |         ^~~
main.c:9:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:15:8: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:15:11: error: stray '\342' in program
   15 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:15:9: error: 'No' undeclared (first use in this function)
   15 | printf(“No”);
      |         ^~
Language: C

#include <stdio.h>
 
int main(){
int a,b,c;
 
scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);
 
if(a==b && b==c){
printf(“Yes”);
}
 
 
 
else{
printf(“No”);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d”,&a);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |                 ^~~~~~~~
main.c:7:7: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |       ^~~~~~~~
main.c:7:8: error: expected expression before '%' token
    7 | scanf(“%d”,&b);
      |        ^
main.c:7:10: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |                 ^~~~~~~~
main.c:8:7: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |       ^~~~~~~~
main.c:8:8: error: expected expression before '%' token
    8 | scanf(“%d”,&c);
      |        ^
main.c:8:10: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |                 ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:11:12: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:11:9: error: 'Yes' undeclared (first use in this function)
   11 | printf(“Yes”);
      |         ^~~
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:8: error: stray '\342' in program
   17 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:17:11: error: stray '\342' in program
   17 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:17:9: error: 'No' undeclared (first use in this function)
   17 | printf(“No”);
      |         ^~
Language: C

#include <stdio.h>
 
int main(){
int a,b,c;
 
scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);
 
if(a==b && b==c){
printf(“Yes”);
}


 
else{
printf(“No”);
}
 
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |       ^~~~~~~~
main.c:6:8: error: expected expression before '%' token
    6 | scanf(“%d”,&a);
      |        ^
main.c:6:10: error: stray '\342' in program
    6 | scanf(<U+201C>%d<U+201D>,&a);
      |                 ^~~~~~~~
main.c:7:7: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |       ^~~~~~~~
main.c:7:8: error: expected expression before '%' token
    7 | scanf(“%d”,&b);
      |        ^
main.c:7:10: error: stray '\342' in program
    7 | scanf(<U+201C>%d<U+201D>,&b);
      |                 ^~~~~~~~
main.c:8:7: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |       ^~~~~~~~
main.c:8:8: error: expected expression before '%' token
    8 | scanf(“%d”,&c);
      |        ^
main.c:8:10: error: stray '\342' in program
    8 | scanf(<U+201C>%d<U+201D>,&c);
      |                 ^~~~~~~~
main.c:11:8: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:11:12: error: stray '\342' in program
   11 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:11:9: error: 'Yes' undeclared (first use in this function)
   11 | printf(“Yes”);
      |         ^~~
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:8: error: stray '\342' in program
   17 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:17:11: error: stray '\342' in program
   17 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
main.c:17:9: error: 'No' undeclared (first use in this function)
   17 | printf(“No”);
      |         ^~
Language: C

#include <studio.h>

int main(){
int a,b,c;

scanf(“%d”,&a);
scanf(“%d”,&b);
scanf(“%d”,&c);

if(a==b && b==c){
printf(“Yes”);
}
 
else{
printf(“No”);
}

return 0;
}

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

a = input()
b = input()
c = input()

if a == b and b  == c:
   print(“Yes”)

else:
    print(“No”)


Compiler output:
a.cc:6:10: error: extended character “ is not valid in an identifier
    6 |    print(“Yes”)
      |          ^
a.cc:6:10: error: extended character ” is not valid in an identifier
a.cc:9:11: error: extended character “ is not valid in an identifier
    9 |     print(“No”)
      |           ^
a.cc:9:11: error: extended character ” is not valid in an identifier
a.cc:1:1: error: 'a' does not name a type
    1 | a = input()
      | ^
Language: C++

#include<iostream>
using namespace std;
 
int main(){
  int A,B,C;
  cin>>A>>B>>C;
 
  if (A==B)&&(B==C)
  {cout<<"Yes";}
  else{cout<<"No";};
  
};

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected identifier before '(' token
    8 |   if (A==B)&&(B==C)
      |              ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int A,B,C;
  cin>>A>>B>>C;
  int okay=0;
  if(A==B){
    if (2*A>C){
      okay=1;
    }else{
      okay=0;
    };
    
  }else if(A==C){
    if (2*A>B){
      okay=1;
    }else{okay=0;};
  }else if (B==C){
    if (2*B>A){okay=1};
  };
  
  if(okay==1){cout<<"Yes";}else{cout<<"No";};
  
  
  
  
  
  
  
};


Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: expected ';' before '}' token
   20 |     if (2*B>A){okay=1};
      |                      ^
      |                      ;
Language: Java

import java.util.Scanner;

public class Solution{
    public static boolean isEquilateralTriangle(int a, int b, int c){
	boolean isEqTri = true;

	if(a != b || b != c)
	    isEqTri = false;

	return isEqTri;
    }
	
    public static void main(String[] args){
	Scanner stdin = new Scanner(System.in);

	int side_A = stdin.nextInt();
	int side_B = stdin.nextInt();
	int side_C = stdin.nextInt();

	if(isEquilateralTriangle(side_A, side_B, side_C)){
	    System.out.println("Yes");
	}else{
	    System.out.println("No");
	}
    }
}	


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

#include <iostream>
using namespace std;
int main(){
    int A, B, C;
    cin >> A >> B >> C;
    if (A == B && B == C) cout << "Yes" << "\n";
    else cout << "No" << "\n";
  	return 0;
}

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

#include<iostream>

using namespac3e std;

int main(){
  int A,B,C;
  cin>>A>>B>>C;
  
  if(A==B&&A==C&&B==C){
    cout<<"Yes";
  }else{
    cout<<"No";
  }
  
  cout<<endl;
  return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namespac3e'
    3 | using namespac3e std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout<<"Yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:15:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |   cout<<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:15:9: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |   cout<<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>
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
 //Compiler version g++ 6.3.0

 int main()
 {
 	int n,m,L;
 	cin >> n>>m>>l;
 	if(n==m&&m==l){
 		cout << "Yes" << endl;
 	}else{
 		cout << "No" << endl;
 	}
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'l' was not declared in this scope
   10 |         cin >> n>>m>>l;
      |                      ^
Language: C++

# -*- coding: utf-8 -*-
"""
Created on Sat Mar 30 21:20:37 2019

@author: Yamazaki Kenichi
"""

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

if a == b and a==c:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:3: warning: missing terminating " character
    2 | """
      |   ^
a.cc:2:3: error: missing terminating " character
a.cc:5:1: error: stray '@' in program
    5 | @author: Yamazaki Kenichi
      | ^
a.cc:6:3: warning: missing terminating " character
    6 | """
      |   ^
a.cc:6:3: error: missing terminating " character
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('Yes')
      |           ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('No')
      |           ^~~~
a.cc:2:1: error: expected unqualified-id before string constant
    2 | """
      | ^~
Language: C++

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

int main() {
  int A B C;
  cin >> A B C;
  if ( A == B == C ) {
    cout << "Yes" << endl;
  }
  else  {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected initializer before 'B'
    5 |   int A B C;
      |         ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A B C;
      |          ^
a.cc:7:13: error: 'B' was not declared in this scope
    7 |   if ( A == B == C ) {
      |             ^
a.cc:7:18: error: 'C' was not declared in this scope
    7 |   if ( A == B == C ) {
      |                  ^
Language: C

#include<stdio.h>

int main(void){
    int a, b, c;

    scanf("%d %d %d"&a, &b, &c);

    if(a == b && b == c && a == c){
        printf("Yes");
    }
    else{
        printf("No");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:21: error: invalid operands to binary & (have 'char *' and 'int')
    6 |     scanf("%d %d %d"&a, &b, &c);
      |           ~~~~~~~~~~^
      |           |
      |           char *
Language: C++

#include <iostream>
using namespace std;

int main(){

  int a,b,c;
  cin >> a >> b >> c;
  if(a == b and b == c) cout << "Yes" << endl;
  else cout << "No" << endl;

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

#include <iostream>

int main(){

  int a,b,c;
  cin >> a >> b >> c;
  if(a == b and b == c) cout << "Yes" << endl;
  else cout << "No" << endl;

   

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   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:7:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(a == b and b == c) cout << "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:7:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   if(a == b and b == c) cout << "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)
      |     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout << "No" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |   else cout << "No" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:29: error: expected '}' at end of input
    8 |   else cout << "No" << endl;
      |                             ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int x,y,z;

int main(){
  
  cin>>x>>y>>z;
  if(x==y and y==z) ret cout<<"Yes\n",0;
  cout<<"No\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: 'ret' was not declared in this scope
    8 |   if(x==y and y==z) ret cout<<"Yes\n",0;
      |                     ^~~
Language: C++

    #include <iostream>
    #include <string.h>
     
    using namespace std;
     
    int main(){
        string a, b, c;
        cin >> a;
        cin >> b;
        cin >> c;
     
        if(b == a){
            if(b==c) {
                cout << "Yes" << endl;
            }
            else {
                cout << "No" << endl;
            }
        }
     }
    else {
           cout << "No" << endl;
    }

Compiler output:
a.cc:21:5: error: expected unqualified-id before 'else'
   21 |     else {
      |     ^~~~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
    int main() {
      int n,q;
      cin >> n>>q;
      
      string str;
      cin >>str;
      
      vector<int> num(n,1);
      
      char name,dir;
      
      for(int i=0;i<q;i++){
        cin >>name >>dir;
        
        for(int j=0;j<n;j++){
          if(str.at(j)==name&&dir=='L'){
            if(j!=0)
              num[j-1]+=num[j];
            num[j]=0;
          }else(str.at(j)==name&&dir=='R'){
            if(j!=n-1)
              num[j+1]+=num[j];
            num[j]=0;
          }
        }
      }
      int sum=0;
      for(int i=0;i<n;i++){
        sum+=num[i];
      }
      cout << sum << endl;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:22:43: error: expected ';' before '{' token
   22 |           }else(str.at(j)==name&&dir=='R'){
      |                                           ^
      |                                           ;
Language: C++

#include <vector>

using namespace std;

int main(void) {
  vector<int> a;
  int b;
  cin >> b;
  a.push_back(b);
  cin >> b;
  a.push_back(b);
  cin >> b;
  a.push_back(b);
	if (a[2] == a[0] && a[0] == a[1]) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> b;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <vector>
  +++ |+#include <iostream>
    2 | 
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:15:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:15:34: error: 'endl' was not declared in this scope
   15 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <vector>
  +++ |+#include <ostream>
    2 | 
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:33: error: 'endl' was not declared in this scope
   17 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:17:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

vector<string> split(const string &str, char sep) {
  vector<string> v;
  stringstream ss(str);
  string buffer;
  while( getline(ss, buffer, sep) ){
    v.push_back(buffer);
  }
  return v;
}

int main(){
  string input;
  vector<string> v;
  int A,B,C;

  cin >> input;
  v.push_back(split(input, " "));

  istringstream(v[0]) >> A;
  istringstream(v[1]) >> B;
  istringstream(v[2]) >> C;

  if(A == B && B == C){
    cout << "Yes";
  }else {
    cout << "No";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:28: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   23 |   v.push_back(split(input, " "));
      |                            ^~~
      |                            |
      |                            const char*
a.cc:7:46: note:   initializing argument 2 of 'std::vector<std::__cxx11::basic_string<char> > split(const std::string&, char)'
    7 | vector<string> split(const string &str, char sep) {
      |                                         ~~~~~^~~
a.cc:23:14: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::push_back(std::vector<std::__cxx11::basic_string<char> >)'
   23 |   v.push_back(split(input, " "));
      |   ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:1283:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1283 |       push_back(const value_type& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1283:35: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'const std::vector<std::__cxx11::basic_string<char> >::value_type&' {aka 'const std::__cxx11::basic_string<char>&'}
 1283 |       push_back(const value_type& __x)
      |                 ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:1300:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(value_type&&) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; value_type = std::__cxx11::basic_string<char>]'
 1300 |       push_back(value_type&& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1300:30: note:   no known conversion for argument 1 from 'std::vector<std::__cxx11::basic_string<char> >' to 'std::vector<std::__cxx11::basic_string<char> >::value_type&&' {aka 'std::__cxx11::basic_string<char>&&'}
 1300 |       push_back(value_type&& __x)
      |                 ~~~~~~~~~~~~~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
   int a,b,c;
cin>>a>>b>>c;
if(a==b&&b==c&&a==c)
{
cout<<"Yes";
else
{
cout<<"No";
}
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else
      | ^~~~
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C

#include<stdio.h>

int main()
{
	int a = 0;
	char b = 0;
	int c = 0;
	int d = 0;
	int i;
	char s[101];

	scanf_s("%d", &a);
	scanf_s("%s", s,101);

	for (i = 0; i < a; i++) {
		b = s[i];
		if (b == 'B') {
			c++;
		}
		else if (b == 'R') {
			d++;
		}
		else {
			;
		}
	}

	if (d > c) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}

	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
   int a,b,c;
cin>>a>>b>>c;
if(a==b&&b==c&&a==c)
{
cout<<"Yes";
else
{
cout<<"No;
}
}
}


Compiler output:
a.cc:12:7: warning: missing terminating " character
   12 | cout<<"No;
      |       ^
a.cc:12:7: error: missing terminating " character
   12 | cout<<"No;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else
      | ^~~~
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
a.cc: At global scope:
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

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

vector<string> split(const string &str, char sep) {
  vector<string> v;
  stringstream ss(str);
  string buffer;
  while( getline(ss, buffer, sep) ){
    v.push_back(buffer);
  }
  return v;
}

int main(){
  string input;
  vector<string> v;
  int A,B,C;

  cin >> input;
  v = split(input, " ");

  istringstream(v[0]) >> A;
  istringstream(v[1]) >> B;
  istringstream(v[2]) >> C;

  if(A == B && B == C){
    cout << "Yes";
  }else {
    cout << "No";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:20: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   23 |   v = split(input, " ");
      |                    ^~~
      |                    |
      |                    const char*
a.cc:7:46: note:   initializing argument 2 of 'std::vector<std::__cxx11::basic_string<char> > split(const std::string&, char)'
    7 | vector<string> split(const string &str, char sep) {
      |                                         ~~~~~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
   int a,b,c;
cin>>a>>b>>c;
if(a==b&&b==c&&a==c)
{
cout<<"Yes";
else
{
cout<<"No;
}
}



Compiler output:
a.cc:12:7: warning: missing terminating " character
   12 | cout<<"No;
      |       ^
a.cc:12:7: error: missing terminating " character
   12 | cout<<"No;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:10:1: error: expected '}' before 'else'
   10 | else
      | ^~~~
a.cc:8:1: note: to match this '{'
    8 | {
      | ^
a.cc:13:1: error: expected primary-expression before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>
#include<stdlib.h>
int main() {
	int i, j, k, f = 0, n, t, m,a,b,c;

	scanf("%d %d %d", &a,&b,&c);
if(a==b){
if(b==c){
f=1
}
}
if(f==1){
printf("Yes");
}else{
printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:4: error: expected ';' before '}' token
    9 | f=1
      |    ^
      |    ;
   10 | }
      | ~
Language: C

#include<stdio.h>

using namespace std;
int main(){
  int N,Q;
  scanf("%d %d\n",&N,&Q);
  char t[Q],d[Q];
  char s[N];
  scanf("%s\n",s);
  unsigned int lostcounter=0;
  unsigned int golem[N];
  for(int g=0;g<N;g++){
  golem[g]=1;
  }

  for(int i=0;i<Q;i++){
  scanf("%c %c\n",&t[i],&d[i]);
  if(d[i]=='R'){
    for(int l=0;l<N;l++){
        if(s[l]==t[i]){
             if(l==N-1)
            lostcounter+=golem[l];
            else
            golem[l+1]+=golem[l];
        golem[l]=0;
        }
        
        
    }
  }

    else if(d[i]=='L'){
    for(int l=0;l<N;l++){
        if(s[l]==t[i]){
             if(l==0)
            lostcounter+=golem[l];
            else
            golem[l-1]+=golem[l];
        golem[l]=0;
        }
        
      }
    }
}
  //cout << N-lostcounter<<endl;
  printf("%d\n",N-lostcounter);
  

  return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C++

#include <stdio.h>

int main() {
	int A, B, C;

	scanf_s("%d%d%d", &A, &B, &C);

	A *= A;
	B *= B;
	C *= C;

	if (A == B && B == C ) {
		printf("YES\n");
	}
	else {
		printf("NO\n");
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d%d%d", &A, &B, &C);
      |         ^~~~~~~
      |         scanf
Language: C

#include <stdio.h>

int main() {
	int A, B, C;

	scanf("%d%d%d", &A, &B, &C);

	A *= A;
	B *= B;
	C *= C;

	if (A == b && B == c ) {
		printf("YES\n");
	}
	else {
		printf("NO\n");
	}

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:12:18: error: 'b' undeclared (first use in this function)
   12 |         if (A == b && B == c ) {
      |                  ^
main.c:12:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:28: error: 'c' undeclared (first use in this function)
   12 |         if (A == b && B == c ) {
      |                            ^
Language: C

#include<stdio.h>

int main(void){
    int a, b, c;
    scanf("%d %d %d", &a, &b, &c);
    getchar();

    if( (c1 == c2) && (c2 == c3)) printf("Yes\n ");
    else printf("No\n");

    return 0;

}

Compiler output:
main.c: In function 'main':
main.c:8:10: error: 'c1' undeclared (first use in this function); did you mean 'c'?
    8 |     if( (c1 == c2) && (c2 == c3)) printf("Yes\n ");
      |          ^~
      |          c
main.c:8:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:16: error: 'c2' undeclared (first use in this function); did you mean 'c'?
    8 |     if( (c1 == c2) && (c2 == c3)) printf("Yes\n ");
      |                ^~
      |                c
main.c:8:30: error: 'c3' undeclared (first use in this function); did you mean 'c'?
    8 |     if( (c1 == c2) && (c2 == c3)) printf("Yes\n ");
      |                              ^~
      |                              c
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int a;
  cin >> a;
int B = 0;
int R = 0;
  vector<string>s(a);
  for(int i = 0;i < a ; i++){
  cin >>s.at(i);
  }
 for(char = c : s){
    if(c == 'B'){
      B++;
    else
      R++;
    }
  if(B >= R)
cout << "No" << endl;
  else
cout <<"Yes" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected unqualified-id before '=' token
   13 |  for(char = c : s){
      |           ^
a.cc:13:10: error: expected ';' before '=' token
   13 |  for(char = c : s){
      |          ^~
      |          ;
a.cc:13:11: error: expected primary-expression before '=' token
   13 |  for(char = c : s){
      |           ^
a.cc:13:15: error: found ':' in nested-name-specifier, expected '::'
   13 |  for(char = c : s){
      |               ^
      |               ::
a.cc:13:13: error: 'c' has not been declared
   13 |  for(char = c : s){
      |             ^
a.cc:13:18: error: expected ';' before ')' token
   13 |  for(char = c : s){
      |                  ^
      |                  ;
a.cc:14:8: error: 'c' was not declared in this scope
   14 |     if(c == 'B'){
      |        ^
a.cc:16:5: error: expected '}' before 'else'
   16 |     else
      |     ^~~~
a.cc:14:17: note: to match this '{'
   14 |     if(c == 'B'){
      |                 ^
a.cc:22:22: error: expected '}' at end of input
   22 | cout <<"Yes" << endl;
      |                      ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
int main(void)
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b && b==c)
  {
    cout<<"yes";
  }
  else
  {
    cout<<"no";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout<<"yes";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     cout<<"no";}
      |     ^~~~
      |     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 (){
  int A, B, C;
  cin >> A >> B >> C;
  if (A == B == C){
    cout << "Yes" << endl;
  }
  else (){
    cout << "No" << endl;;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before ')' token
   10 |   else (){
      |         ^
Language: C++

#include<iostream.h>
using namespace std;
int main(){
long long int a,b,c;
cin>>a>>b>>c;
if(a==b&&b==c){
cout<<"Yes"<<endl;
}
else {
cout<<"No"<<endl;
}
 
 
}

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

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

int main() {

  int N, r = 0, b = 0;
  cin >> N;
  string s;
  cin >> s;

  for (int i = 0; i < N; i++) {
if( s.at(i) == "R" ){
r++;
}
else{
b++;
}
}

if(r > b){
    cout << "Yes" << endl;
}
else{
cout << "No" << endl;

}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if( s.at(i) == "R" ){
      |     ~~~~~~~~^~~~~~
Language: Java

import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Exawizards2019_1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<String> elements = Arrays.asList(sc.nextLine().split(" "));
		
		Exawizards2019_1 checker = new Exawizards2019_1();
		String result = checker.checkEquilateralTriangle(elements);
		
		System.out.println(result);
		sc.close();
	}
	
	public String checkEquilateralTriangle(List<String> elements) {
		long count = elements.stream().distinct().count();
		return count == 1 ? "Yes" : "No";
	}

}

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

#include <iostream>
#include <string>
using namespace std;
 
int main(){
     int N,r,b;
     char s[N];
     cin >> N;
     cin >> s;
     for(int i=0;I<N;i++){
         if(s == R)
           r +=;
         else
           b +=;
          }
      if(r>b)
        cout << "Yes" <<endl;
      else
        cout << "No" << endl;
 
     return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:18: error: 'I' was not declared in this scope
   10 |      for(int i=0;I<N;i++){
      |                  ^
a.cc:11:18: error: 'R' was not declared in this scope
   11 |          if(s == R)
      |                  ^
a.cc:12:16: error: expected primary-expression before ';' token
   12 |            r +=;
      |                ^
a.cc:14:16: error: expected primary-expression before ';' token
   14 |            b +=;
      |                ^
Language: C++

#include<iostream>
#include<cstring>
//#include<bits/stdc++.h>
#include<math.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<cstdio>
#include<map>
#define  si(a)       scanf("%d",&a)
#define  sl(a)       scanf("%lld",&a)
#define  sii(a,b)    scanf("%d%d",&a,&b)
#define  sll(a,b)    scanf("%lld%lld",&a,&b)
#define  queues      priority_queue
#define mod 1000000007
#define mem(a)  memset(a,0,sizeof(a));
#define def(a) ((a)&(-a))
typedef long long ll;
//priority_queue<int,vector<int >,greater<int > >q;
const int INF=0x3f3f3f3f;
//const double E=exp(1);
//const double PI=acos(-1);
using namespace std;
int main()
{
  string s;
  cin>>s;
  int a=s.size();
  int sum=0;
  for(int i=0;i<a;i++)
    if(s[i]=='R')sum++;
  if(sum>a/2)cout<<"Yes\n";
  else cout<<"No"
}
/******************************************
**        **             ********       **
**       ** **           **             **
**      **   **          **             **
**     **     **         **             **
**    ***********        **             **
**   **         **       ********       **
******************************************/


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

#include <iostream>

using namespace std;

int main()
{
    cin >> A >> B >> C;
    if (A==B&&B==C)
        cout << "Yes" <<endl;
    else
        cout << "No" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'A' was not declared in this scope
    7 |     cin >> A >> B >> C;
      |            ^
a.cc:7:17: error: 'B' was not declared in this scope
    7 |     cin >> A >> B >> C;
      |                 ^
a.cc:7:22: error: 'C' was not declared in this scope
    7 |     cin >> A >> B >> C;
      |                      ^
Language: C++

#include <string>
#include <iostream>
#include <vector>
int main()
{
	string input;
	vector<int> length;
	while(getline(std::cin, input, ' '))
	{
		length.emplace_back(std::stoi(input));
	}

	if(length.empty())
	{
		std::cout<< "No" << std::endl;
		return 0;
	}
	for(int& num : length)
	{
		if(num != length[0])
		{
			std::cout<< "No" << std::endl;
		}
	}
	std::cout<< "Yes" << std::endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'string' was not declared in this scope
    6 |         string input;
      |         ^~~~~~
a.cc:6:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<int> length;
      |         ^~~~~~
a.cc:7:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:16: error: expected primary-expression before 'int'
    7 |         vector<int> length;
      |                ^~~
a.cc:8:33: error: 'input' was not declared in this scope; did you mean 'int'?
    8 |         while(getline(std::cin, input, ' '))
      |                                 ^~~~~
      |                                 int
a.cc:10:17: error: 'length' was not declared in this scope
   10 |                 length.emplace_back(std::stoi(input));
      |                 ^~~~~~
a.cc:13:12: error: 'length' was not declared in this scope
   13 |         if(length.empty())
      |            ^~~~~~
a.cc:18:24: error: 'length' was not declared in this scope
   18 |         for(int& num : length)
      |                        ^~~~~~