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

#include <iostream>
#using namespace std;

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

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #using
    2 | #using namespace std;
      |  ^~~~~
a.cc: In function 'int main()':
a.cc:6:9: 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:30: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(a == b && a == c) 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:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     else 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(void)
{
  int a,b,c,;
  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:6:13: error: expected unqualified-id before ';' token
    6 |   int a,b,c,;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     int a,b,c; 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
      |                  ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'll' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |     ^~
a.cc:3:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     ll a,b,c; 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:3:22: error: 'a' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                      ^
a.cc:3:27: error: 'b' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                           ^
a.cc:3:32: error: 'c' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                                ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'll' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |     ^~
a.cc:3:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     ll a,b,c; 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:3:22: error: 'a' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                      ^
a.cc:3:27: error: 'b' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                           ^
a.cc:3:32: error: 'c' was not declared in this scope
    3 |     ll a,b,c; cin >> a >> b >> c;
      |                                ^
a.cc:4:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |     cout << ((a==b && b==c)?"Yes":"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:4:44: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    4 |     cout << ((a==b && b==c)?"Yes":"No") << 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<iostream>
#include<algorithm>
#include<string>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    cout << (a == b && B == c ? "Yes" : "No") << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'B' was not declared in this scope
    8 |     cout << (a == b && B == c ? "Yes" : "No") << endl;
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b <= c ) f = false;
  else if (a+c <= b) f = false;
  else if (b+c <= a) f = false;
  
  if (f) cout << "Yes" << endl;
  else coout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'coout' was not declared in this scope
   12 |   else coout << "No" << endl;
      |        ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b <= c ) f = false;
  else if (a+c <= b) f = false;
  else if (b+c <= a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:18: error: 'Yes' was not declared in this scope
   11 |   if (f) cout << Yes << endl;
      |                  ^~~
a.cc:12:8: error: 'coout' was not declared in this scope
   12 |   else coout << No << endl;
      |        ^~~~~
a.cc:12:17: error: 'No' was not declared in this scope
   12 |   else coout << No << endl;
      |                 ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b =< c ) f = false;
  else if (a+c =< b) f = false;
  else if (b+c =< a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected primary-expression before '<' token
    7 |   if (a+b =< c ) f = false;
      |            ^
a.cc:8:17: error: expected primary-expression before '<' token
    8 |   else if (a+c =< b) f = false;
      |                 ^
a.cc:9:17: error: expected primary-expression before '<' token
    9 |   else if (b+c =< a) f = false;
      |                 ^
a.cc:11:18: error: 'Yes' was not declared in this scope
   11 |   if (f) cout << Yes << endl;
      |                  ^~~
a.cc:12:8: error: 'coout' was not declared in this scope
   12 |   else coout << No << endl;
      |        ^~~~~
a.cc:12:17: error: 'No' was not declared in this scope
   12 |   else coout << No << endl;
      |                 ^~
Language: C++

#include<bais/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b =< c ) f = false;
  else if (a+c =< b) f = false;
  else if (b+c =< a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

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

#include<bias/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b =< c ) f = false;
  else if (a+c =< b) f = false;
  else if (b+c =< a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

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

#include<bias\stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b =< c ) f = false;
  else if (a+c =< b) f = false;
  else if (b+c =< a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

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

#include<bais\stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  bool f = true;
  cin >> a >> b >> c;
  if (a+b =< c ) f = false;
  else if (a+c =< b) f = false;
  else if (b+c =< a) f = false;
  
  if (f) cout << Yes << endl;
  else coout << No << endl;
}

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

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

int main() {
  int a, r=0;
  cin >> a;
  string n;
  cin >> n;
  for(int i=0;i<a;i++){
    if(n[i]=="R"){
      r+=1;
    }
  }
  if(r>a-r){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
}


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

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

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

#include<iostream>
#include<bits/stdc++.h>
#include<cstdio>
#include<cstream>
using namespace std;
int main(){
  std::ios_base::sync_with_stdio(false);
  cin.tie(0);
  cout.tie(0);
  int a,b,c;
  cin>>a>>b>>c;
  if(a==b && b==c)
  { cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double lf;
typedef pair<ll,ll> ii;
#define REP(i,n) for(int i=0;i<n;i++)
#define REP1(i,n) for(ll i=1;i<=n;i++)
#define RST(i,n) memset(i,n,sizeof i)
#define SZ(a) (int)a.size()
#define ALL(a) a.begin(),a.end()
#define X first
#define Y second
#define mkp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#ifdef cold66
#define debug(...) do{\
    fprintf(stderr,"%s - %d (%s) = ",__PRETTY_FUNCTION__,__LINE__,#__VA_ARGS__);\
    _do(__VA_ARGS__);\
}while(0)
template<typename T>void _do(T &&_x){cerr<<_x<<endl;}
template<typename T,typename ...S> void _do(T &&_x,S &&..._t){cerr<<_x<<", ";_do(_t...);}
template<typename _a,typename _b> ostream& operator << (ostream &_s,const pair<_a,_b> &_p){return _s<<"("<<_p.X<<","<<_p.Y<<")";}
template<typename It> ostream& _OUTC(ostream &_s,It _ita,It _itb)
{
    _s<<"{";
    for(It _it=_ita;_it!=_itb;_it++)
    {
        _s<<(_it==_ita?"":",")<<*_it;
    }
    _s<<"}";
    return _s;
}
template<typename _a> ostream &operator << (ostream &_s,vector<_a> &_c){return _OUTC(_s,ALL(_c));}
template<typename _a> ostream &operator << (ostream &_s,set<_a> &_c){return _OUTC(_s,ALL(_c));}
template<typename _a,typename _b> ostream &operator << (ostream &_s,map<_a,_b> &_c){return _OUTC(_s,ALL(_c));}
template<typename _t> void pary(_t _a,_t _b){_OUTC(cerr,_a,_b);cerr<<endl;}
#define IOS()
#else
#define debug(...)
#define pary(...)
#define endl '\n'
#define IOS() ios_base::sync_with_stdio(0);cin.tie(0);
#endif // cold66
//}
template<class T> inline bool chkmax(T &a, const T &b) { return b > a ? a = b, true : false; }
template<class T> inline bool chkmin(T &a, const T &b) { return b < a ? a = b, true : false; }
template<class T> using MaxHeap = priority_queue<T>;
template<class T> using MinHeap = priority_queue<T, vector<T>, greater<T>>;

const ll MAXn=1e5+5,MAXlg=__lg(MAXn)+2;
const ll MOD=1000000007;
const ll INF=0x3f3f3f3f;

ll d[11];
int main(){
    IOS();
    REP (i,3) cin >> d[i];
    sort(d,d+n);
    if (d[0] == d[2]) cout << "Yes" << endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:60:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   60 |     sort(d,d+n);
      |              ^
      |              yn
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d,%d,%d",&a,&b,&c);
      |   ^~~~~
a.cc:6:5: error: 'printf' was not declared in this scope
    6 |     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(void){
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("No\n");
      |     ^~~~~~
a.cc:9:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> triangle = new ArrayList<Integer>();
        for(int i=0; i<3; i++){
            triangle.add(sc.nextInt());
        }

        if((triangle.get(0)==(triangle.get(1)) &&triangle.get(0)==triangle.get(1))){
            System.out.println("YES");
        }
        else{
            System.out.println("NO");
        }
    }
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:40: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |   std::cout << (a==b&&b==c)?"Yes":"No" << std::endl;
      |                                   ~~~~~^~~~~~~~~~~~
Language: C++

#include <iostream> int main(){int a, b, c; std::cin >> a >> b >> c; std::cout << (a==b==c)?"Yes":"No" << std::enedl; return 0;}

Compiler output:
a.cc:1:21: warning: extra tokens at end of #include directive
    1 | #include <iostream> int main(){int a, b, c; std::cin >> a >> b >> c; std::cout << (a==b==c)?"Yes":"No" << std::enedl; return 0;}
      |                     ^~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#Include <iostream>

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #Include; did you mean #include?
    1 | #Include <iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin>>A>>B>>C;
      |        ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #Include <iostream>
a.cc:9:10: error: 'cout' is not a member of 'std'
    9 |     std::cout<<"Yes"<<std::endl;
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:28: error: 'endl' is not a member of 'std'
    9 |     std::cout<<"Yes"<<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 | #Include <iostream>
a.cc:12:10: error: 'cout' is not a member of 'std'
   12 |     std::cout<<"No"<<std::endl;
      |          ^~~~
a.cc:12:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:27: error: 'endl' is not a member of 'std'
   12 |     std::cout<<"No"<<std::endl;
      |                           ^~~~
a.cc:12:27: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

Include <iostream>

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

Compiler output:
a.cc:1:1: error: 'Include' does not name a type
    1 | Include <iostream>
      | ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected identifier before '(' token
    9 |     if (a==b) && (b==c){
      |                  ^
Language: C++

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

#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long

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

Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:5: error: expected primary-expression before 'int'
    8 |     int a,b,c;
      |     ^~~
a.cc:8:5: error: expected '}' before 'int'
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:5: error: 'cin' does not name a type
    9 |     cin>>a>>b>>c;
      |     ^~~
a.cc:10:5: error: expected unqualified-id before 'if'
   10 |     if(a==b&&b==c) cout<<"Yes"<<endl;
      |     ^~
a.cc:11:5: error: expected unqualified-id before 'else'
   11 |     else cout<<"No"<<endl;
      |     ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

#define rep(int i,int n) for(int i=0;i<n;i++)
#define ll long long

int main{
    int A,B,C;
    cin>>A>>B>>C;
    int s=A+B+C;
    if(s-max({A,B,C})>min({A,B,C})) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc:4:17: error: expected ',' or ')', found "i"
    4 | #define rep(int i,int n) for(int i=0;i<n;i++)
      |                 ^
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:5: error: expected primary-expression before 'int'
    8 |     int A,B,C;
      |     ^~~
a.cc:8:5: error: expected '}' before 'int'
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:5: error: 'cin' does not name a type
    9 |     cin>>A>>B>>C;
      |     ^~~
a.cc:10:11: error: 'A' was not declared in this scope
   10 |     int s=A+B+C;
      |           ^
a.cc:10:13: error: 'B' was not declared in this scope
   10 |     int s=A+B+C;
      |             ^
a.cc:10:15: error: 'C' was not declared in this scope
   10 |     int s=A+B+C;
      |               ^
a.cc:11:5: error: expected unqualified-id before 'if'
   11 |     if(s-max({A,B,C})>min({A,B,C})) cout<<"Yes"<<endl;
      |     ^~
a.cc:11:21: error: expected unqualified-id before ')' token
   11 |     if(s-max({A,B,C})>min({A,B,C})) cout<<"Yes"<<endl;
      |                     ^
a.cc:11:34: error: expected unqualified-id before ')' token
   11 |     if(s-max({A,B,C})>min({A,B,C})) cout<<"Yes"<<endl;
      |                                  ^
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else cout<<"No"<<endl;
      |     ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

#define rep(int i,int n) for(int i=0;i<n;i++)
#define ll long long

int main{
    int A,B,C;
    cin>>A>>B>>C;
    int s=A+B+C;
    if(s-max({A,B,C})>min({A,B,C})) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

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

include<iostream>

using namespace std;

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

	cin >> A;
	cin >> B;
	cin >> C;

	if (A == B == C)
		cout << "yes" << endl;
	else 
		cout << "no" << endl;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A;
      |         ^~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout << "yes" << endl;
      |                 ^~~~
a.cc:13:34: error: 'endl' was not declared in this scope
   13 |                 cout << "yes" << endl;
      |                                  ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "no" << endl;
      |                 ^~~~
a.cc:15:33: error: 'endl' was not declared in this scope
   15 |                 cout << "no" << endl;
      |                                 ^~~~
Language: C++

#include<iostream>

using namespace std;

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

	cin >> A;
	cin >> B;
	cin >> C;

	if (A == B == C)
		cout << "yes" << endl;
	else if
		cout << "no" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected '(' before 'cout'
   15 |                 cout << "no" << endl;
      |                 ^~~~
      |                 (
Language: Java

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
if (a==b && b==c && c==a){
^
Main.java:3: error: class, interface, enum, or record expected
}
^
Main.java:6: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

int main(void){
  int a,b,c;
  int i;//制御用
    scanf("%d",&a);
    scanf("%d",&b);
    scanf("%d",&c);
  if(a==b&&b==c)
    printf("Yes");
  else
    printf("No)

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |     scanf("%d",&a);
      |     ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |     scanf("%d",&a);
      |     ^~~~~
main.c:4:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("Yes");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   10 |     printf("No)
      |     ^~~~~~
main.c:10:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:12: warning: missing terminating " character
   10 |     printf("No)
      |            ^
main.c:10:12: error: missing terminating " character
   10 |     printf("No)
      |            ^~~~
main.c:10:5: error: expected expression at end of input
   10 |     printf("No)
      |     ^~~~~~
main.c:10:5: error: expected declaration or statement at end of input
Language: C++

#include <iostream>
using std;

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'std'
    2 | using 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:13:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |           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:13:28: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |           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:17:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |       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:17:23: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |       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:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     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:22:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void){
  int len[3];
  for(int i=0;i<3;i++){
    scanf("%d",len[i]);
  }
  int flg=1;
  if(len[0]==len[1]){
    if(len[1]==len[2]){
      if(len[2]==len[0]){
      }else{
        flg=0;
    }else{
      flg=0;
  }else{
 	flg=0;
	}
if (flg==1){
  print("Yes");
  else{
    print("No");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:6: error: expected '}' before 'else'
   14 |     }else{
      |      ^~~~
main.c:16:4: error: expected '}' before 'else'
   16 |   }else{
      |    ^~~~
main.c:20:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   20 |   print("Yes");
      |   ^~~~~
      |   printf
main.c:21:3: error: expected '}' before 'else'
   21 |   else{
      |   ^~~~
Language: C++

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

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

#include<bits/stdc++>

using namespace std;

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

    if(a == b && b == c){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}


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

#include <iostream>
using namespace std;

int main(){
     int N = 4;
    string s = "RRBR";

/*
    int N;
    string s;
    cin >> N >> s;
    int cnt_R = 0;
*/
    for (int i = 0; i < s.size(); i++){
        if (s[i] == 'R'){
            cnt_R++;
        }
    }
    int cnt_B = s.size() - cnt_R;

    if (cnt_R > cnt_B){
        cout << "Yes" << endl;
    }
    else{
        cout << "No" << endl;
    }
    return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'cnt_R' was not declared in this scope
   16 |             cnt_R++;
      |             ^~~~~
a.cc:19:28: error: 'cnt_R' was not declared in this scope; did you mean 'cnt_B'?
   19 |     int cnt_B = s.size() - cnt_R;
      |                            ^~~~~
      |                            cnt_B
Language: C++

#include<bits/stdc++.h>
using namespace std;
int gcd(int a,int b){
        if(a==0)return b;
        else return gcd(b%a,a);
}

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

        return 0;
}
~                                                                                                                                                                                                           
~                                                                                                                                                                                                           
~          

Compiler output:
a.cc:21:1: error: expected class-name before '~' token
   21 | ~
      | ^
Language: C++

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

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


}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |     if(a = b|| b = c){
      |            ~^~~~
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
using namespace std;
int main(){

vector<int> a(3);
cin>>a[0]>>a[1]>>a[2];
  sort(a.begin(),a.end());
  cout<<(a[0]+a[1]>a[2])?"Yes":"No"<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:36: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |   cout<<(a[0]+a[1]>a[2])?"Yes":"No"<<endl;
      |                                ~~~~^~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a, b, c;
  cin >> a >> b >> c;
  if(a==b && b== c)
  {
    cout << "Yes" << enld;
  }
  else
  {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: 'enld' was not declared in this scope
    9 |     cout << "Yes" << enld;
      |                      ^~~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main() {
  vector<int> a(3);
  for (int i = 0; i < 3; ++i) cin >> a[i];
  sort(a.begin(), a.end());
  if (a.back() == a[0]) cout << "Yes" << endl;
  else cout << "No" << endl
   ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |   sort(a.begin(), a.end());
      |   ^~~~
      |   short
Language: C++

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


int main(){
	int x1,x2,x3,x4;
  	cin>>x1>>x2>>x3;
  	x4 = x1*x1+x2*x2;
  	if((x1==x2==x3)&&(sqrt(x4)==(x3*x3))){
    	cout << "Yes" <<endl;
    }else{
    	cout << "No" <<endl;
    }
    
     
    	
    return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'sqrt' was not declared in this scope
   10 |         if((x1==x2==x3)&&(sqrt(x4)==(x3*x3))){
      |                           ^~~~
Language: C++

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


int main(){
	int x1,x2,x3;
  	cin>>x1>>x2>>x3;
  	
  	if((x1==x2==x3)&&(sqrt(x1*x1+x2*x2)==(x3*x3))){
    	cout << "Yes" <<endl;
    }else{
    	cout << "No" <<endl;
    }
    
     
    	
    return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'sqrt' was not declared in this scope
   10 |         if((x1==x2==x3)&&(sqrt(x1*x1+x2*x2)==(x3*x3))){
      |                           ^~~~
Language: C++

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


int main(){
	int x1,x2,x3;
  	cin>>x1>>x2>>x3;
  	
  	if((x1==x2==x3)&&(sqrt(x1*X1+x2*x2)==(x3*x3))){
    	cout << "Yes" <<endl;
    }else{
    	cout << "No" <<endl;
    }
    
     
    	
    return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:35: error: 'X1' was not declared in this scope; did you mean 'x1'?
   10 |         if((x1==x2==x3)&&(sqrt(x1*X1+x2*x2)==(x3*x3))){
      |                                   ^~
      |                                   x1
a.cc:10:27: error: 'sqrt' was not declared in this scope
   10 |         if((x1==x2==x3)&&(sqrt(x1*X1+x2*x2)==(x3*x3))){
      |                           ^~~~
Language: C++

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


int main(){
	int x1,x2,x3;
  	cin>>x1>>x2>>x3;
  	
  	if((x1==x2==x3)&&(sqrt(x1*x2)==(x3*x3))){
    	cout << "Yes" <<endl;
    }else{
    	cout << "No" <<endl;
    }
    
     
    	
    return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'sqrt' was not declared in this scope
   10 |         if((x1==x2==x3)&&(sqrt(x1*x2)==(x3*x3))){
      |                           ^~~~
Language: C++

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


int main(){
	int x1,x2,x3;
  	cin>>x1>>x2>>x3;
  	
  	if((x1==x2==x3)&&(sqrt(x1*x2)==x3*x3)){
    	cout << "Yes" <<endl;
    }else{
    	cout << "No" <<endl;
    }
    
     
    	
    return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'sqrt' was not declared in this scope
   10 |         if((x1==x2==x3)&&(sqrt(x1*x2)==x3*x3)){
      |                           ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:8: error: 'size_t' is not a member of 'std'
    2 |   std::size_t a, b, c;
      |        ^~~~~~
a.cc:3:8: error: 'cin' is not a member of 'std'
    3 |   std::cin >> a >> b >> c;
      |        ^~~
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:3:15: error: 'a' was not declared in this scope
    3 |   std::cin >> a >> b >> c;
      |               ^
a.cc:3:20: error: 'b' was not declared in this scope
    3 |   std::cin >> a >> b >> c;
      |                    ^
a.cc:3:25: error: 'c' was not declared in this scope
    3 |   std::cin >> a >> b >> c;
      |                         ^
a.cc:5:10: error: 'cout' is not a member of 'std'
    5 |     std::cout << "Yes" << std::endl;
      |          ^~~~
a.cc:5:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:32: error: 'endl' is not a member of 'std'
    5 |     std::cout << "Yes" << 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() {
a.cc:8:10: error: 'cout' is not a member of 'std'
    8 |     std::cout << "No" << std::endl;
      |          ^~~~
a.cc:8:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:31: error: 'endl' is not a member of 'std'
    8 |     std::cout << "No" << std::endl;
      |                               ^~~~
a.cc:8:31: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

A, B, C = [int(i) for i in input().split()]
print('Yes' if A == B == C else 'No')

Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if A == B == C else 'No')
      |       ^~~~~
a.cc:2:33: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if A == B == C else 'No')
      |                                 ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = [int(i) for i in input().split()]
      | ^
Language: C

#include<stdio.h>
int main(){
  int n,q;
  scanf("%d%d",&n,&q);
  char s[200002];
  int g[200002];
  int i,j;
  for(i=1;i=<n;i++) g[i]=1;
  scanf("%s",s);
  char t,d;
  for(i=0;i<q;i++){
    scanf("%c%c",t,d);
    for(j=1;j=<n;j++){
      if(t==s[j]){
        if(d=='L') g[j-1]+=g[j];
        else g[j+1]+=g[j];
        g[j]=0;
      }
    }
  }
  printf("%d",n-g[0]-g[n+1]);
  return 0;
}
      
  


Compiler output:
main.c: In function 'main':
main.c:8:13: error: expected expression before '<' token
    8 |   for(i=1;i=<n;i++) g[i]=1;
      |             ^
main.c:13:15: error: expected expression before '<' token
   13 |     for(j=1;j=<n;j++){
      |               ^
Language: C

#include <studio.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:1:10: fatal error: studio.h: No such file or directory
    1 | #include <studio.h>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
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:4:26: error: 'C' was not declared in this scope
    4 |     int a,b,c;cin>>a>>b>>C;
      |                          ^
Language: C++

#include<bits/stdc++.h>
using namepace 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:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     int a,b,c;cin>>a>>b>>C;
      |               ^~~
      |               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:4:26: error: 'C' was not declared in this scope
    4 |     int a,b,c;cin>>a>>b>>C;
      |                          ^
a.cc:5:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a==b&&b==c)cout<<"Yes";else 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:5:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a==b&&b==c)cout<<"Yes";else 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 namaepace 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:2:7: error: expected nested-name-specifier before 'namaepace'
    2 | using namaepace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:4:15: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |     int a,b,c;cin>>a>>b>>C;
      |               ^~~
      |               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:4:26: error: 'C' was not declared in this scope
    4 |     int a,b,c;cin>>a>>b>>C;
      |                          ^
a.cc:5:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a==b&&b==c)cout<<"Yes";else 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:5:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |     if(a==b&&b==c)cout<<"Yes";else 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 <iostream>
#include <vector>
#include <map>
#include <string>
using namespace std;

int N,Q;
string s;
vector<int> counter;
map<char, vector<int>> indexes;
int main(){
  cin >> N >> Q;
  cin >> s;
  //char mass[N] = s.c_str();
  counter.resize(N,1);
  
  for(int i=0; i<N; i++){
    indexes[s[i]].push_back(i);
  }
  
  for(int i=0; i<Q; i++){
    char t,d;
    cin >> t >> d;
    if(indexes.find(t) != indexes.end()){
      for(int j=0; j < indexes[t].size(); j++){
        int index = indexes[t][j];

        if(d == "R" && index != N - 1){
		  counter[index + 1] += counter[index];  
        }else if(d == "L" && index != 0){
          counter[index - 1] += counter[index];
        }
        counter[index] = 0;
      }
    }
  }
  int count = 0;
  for(int i=0; i<N; i+;){
    count += counter[i];
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |         if(d == "R" && index != N - 1){
      |            ~~^~~~~~
a.cc:30:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   30 |         }else if(d == "L" && index != 0){
      |                  ~~^~~~~~
a.cc:38:23: error: expected primary-expression before ';' token
   38 |   for(int i=0; i<N; i+;){
      |                       ^
a.cc:38:23: error: expected ')' before ';' token
   38 |   for(int i=0; i<N; i+;){
      |      ~                ^
      |                       )
a.cc:38:24: error: expected primary-expression before ')' token
   38 |   for(int i=0; i<N; i+;){
      |                        ^
Language: C

#include<stdio.h>

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

}

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

#include <iostream>
#include <algorithm>

using namespace std;

int main(){
    set<int> a;

    for(int i = 0; i < 3; i++) cin >> x; a.insert(x);

    if(a.size() == 1) cout << "Yes" << endl;
    else cout << "No" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'set' was not declared in this scope
    7 |     set<int> a;
      |     ^~~
a.cc:3:1: note: 'std::set' is defined in header '<set>'; this is probably fixable by adding '#include <set>'
    2 | #include <algorithm>
  +++ |+#include <set>
    3 | 
a.cc:7:9: error: expected primary-expression before 'int'
    7 |     set<int> a;
      |         ^~~
a.cc:9:39: error: 'x' was not declared in this scope
    9 |     for(int i = 0; i < 3; i++) cin >> x; a.insert(x);
      |                                       ^
a.cc:9:42: error: 'a' was not declared in this scope
    9 |     for(int i = 0; i < 3; i++) cin >> x; a.insert(x);
      |                                          ^
a.cc:9:51: error: 'x' was not declared in this scope
    9 |     for(int i = 0; i < 3; i++) cin >> x; a.insert(x);
      |                                                   ^