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

#include <iostream>
#include <string>
#include <map>
#include <algorithm>
#include <vector>
using namespace std;

int main(){
    int N;
    cin>>N;
    map<string, int> data;
    for(int i=0;i<N;i++){
        string s;
        cin>>s;
        data[s]+=1;
    }
    int datamax=0;
    for(auto d;data;){
        datamax=max(datamax,d.second);   
    }
    vector<string> ans;
    for(auto d;data;){
        if (d.second == d_max) {
            ans.push_back(d.first);
    }
  }
  
  sort(ans.begin(), ans.end());
  
  for (auto a : ans;) {
    cout << a << endl;
  }
  
  return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: declaration of 'auto d' has no initializer
   18 |     for(auto d;data;){
      |         ^~~~
a.cc:18:16: error: could not convert 'data' from 'std::map<std::__cxx11::basic_string<char>, int>' to 'bool'
   18 |     for(auto d;data;){
      |                ^~~~
      |                |
      |                std::map<std::__cxx11::basic_string<char>, int>
a.cc:22:9: error: declaration of 'auto d' has no initializer
   22 |     for(auto d;data;){
      |         ^~~~
a.cc:22:16: error: could not convert 'data' from 'std::map<std::__cxx11::basic_string<char>, int>' to 'bool'
   22 |     for(auto d;data;){
      |                ^~~~
      |                |
      |                std::map<std::__cxx11::basic_string<char>, int>
a.cc:23:25: error: 'd_max' was not declared in this scope; did you mean 'datamax'?
   23 |         if (d.second == d_max) {
      |                         ^~~~~
      |                         datamax
a.cc:30:20: error: expected ')' before ';' token
   30 |   for (auto a : ans;) {
      |       ~            ^
      |                    )
a.cc:30:21: error: expected primary-expression before ')' token
   30 |   for (auto a : ans;) {
      |                     ^
a.cc: At global scope:
a.cc:36:1: error: expected declaration before '}' token
   36 | }
      | ^
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 if(a==c&&a!=b){
    cout<<"Yes";
  }
  else if(b==c&&a!=b){
    cout<<"Yes";
  }
  else if{
    cout<<"No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: expected '(' before '{' token
   16 |   else if{
      |          ^
      |          (
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 if(a==c&&a!=b){
    cout<<"Yes";
  }
  else if(b==c%%a!=b){
    cout<<"Yes";
  }
  else if{
    cout<<"No";
  }
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: expected primary-expression before '%' token
   13 |   else if(b==c%%a!=b){
      |                ^
a.cc:16:10: error: expected '(' before '{' token
   16 |   else if{
      |          ^
      |          (
Language: C++

main()
{
  char a;
  char b;
  char c;
  scanf_s("%c",&a);
  scanf_s("%c",&b);
  scanf_s("%c",&c);
  
  if(a == b && a != c){ printf("Yes"); return; }  
  if(a == c && a != b){ printf("Yes"); return; }  
  if(b == c && b != a){ printf("Yes"); return; }  
  printf("No");
}


Compiler output:
a.cc:1:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    1 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf_s' was not declared in this scope
    6 |   scanf_s("%c",&a);
      |   ^~~~~~~
a.cc:10:25: error: 'printf' was not declared in this scope
   10 |   if(a == b && a != c){ printf("Yes"); return; }
      |                         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | main()
a.cc:10:40: error: return-statement with no value, in function returning 'int' [-fpermissive]
   10 |   if(a == b && a != c){ printf("Yes"); return; }
      |                                        ^~~~~~
a.cc:11:25: error: 'printf' was not declared in this scope
   11 |   if(a == c && a != b){ printf("Yes"); return; }
      |                         ^~~~~~
a.cc:11:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:11:40: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |   if(a == c && a != b){ printf("Yes"); return; }
      |                                        ^~~~~~
a.cc:12:25: error: 'printf' was not declared in this scope
   12 |   if(b == c && b != a){ printf("Yes"); return; }
      |                         ^~~~~~
a.cc:12:25: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
a.cc:12:40: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |   if(b == c && b != a){ printf("Yes"); return; }
      |                                        ^~~~~~
a.cc:13:3: error: 'printf' was not declared in this scope
   13 |   printf("No");
      |   ^~~~~~
a.cc:13:3: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include<iostream>
using namespace std;
int main()
{
int i,j,k;
cin>>i,j,k;
if(i==j && j ==k)
{
cout<<"No";
return 0;
}
  if(i == j && j != k && k!= i)
  {
    cout<<"Yes";
    reutrn 0;
  }
  if(j == k && i != k && j!= i)
  {
    cout<<"Yes";
    reutrn 0;
  }
  if(i == k && j != i && k!= j)
  {
    cout<<"Yes";
    reutrn 0;
  }
  else
  {
  cout<<"No";
  }
  
 return 0;
}

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

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

    if (A==B && B==C) {
        cout << "No" << endl;
        return 0;
    }

    if (A!=B && B!=C && C!=A) {
        cout << "No" << endl;
        return 0;
    }
    cout << "Yes" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> A >> B >> C;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "No" << endl;
      |         ^~~~
a.cc:6:25: error: 'endl' was not declared in this scope
    6 |         cout << "No" << endl;
      |                         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "No" << endl;
      |         ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |         cout << "No" << endl;
      |                         ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |     cout << "Yes" << endl;
      |                      ^~~~
Language: C++

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

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

const int mod = 1000000007;
const int mod = 998244353;

struct mint {
    ll x; // typedef long long ll;
    mint(ll x=0):x((x%mod+mod)%mod){}
    mint operator-() const { return mint(-x);}
    mint& operator+=(const mint a) {
        if ((x += a.x) >= mod) x -= mod;
        return *this;
    }
    mint& operator-=(const mint a) {
        if ((x += mod-a.x) >= mod) x -= mod;
        return *this;
    }
    mint& operator*=(const mint a) { (x *= a.x) %= mod; return *this;}
    mint operator+(const mint a) const { return mint(*this) += a;}
    mint operator-(const mint a) const { return mint(*this) -= a;}
    mint operator*(const mint a) const { return mint(*this) *= a;}
    mint pow(ll t) const {
        if (!t) return 1;
        mint a = pow(t>>1);
        a *= a;
        if (t&1) a *= *this;
        return a;
    }

    // for prime mod
    mint inv() const { return pow(mod-2);}
    mint& operator/=(const mint a) { return *this *= a.inv();}
    mint operator/(const mint a) const { return mint(*this) /= a;}
};
istream& operator>>(istream& is, const mint& a) { return is >> a.x;}
ostream& operator<<(ostream& os, const mint& a) { return os << a.x;}


template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; }}
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; }}

ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

[mint]
// combination mod prime
// https://www.youtube.com/watch?v=8uowVvQ_-Mo&feature=youtu.be&t=1619
struct combination {
    vector<mint> fact, ifact;
    combination(int n):fact(n+1),ifact(n+1) {
        assert(n < mod);
        fact[0] = 1;
        for (int i = 1; i <= n; ++i) fact[i] = fact[i-1]*i;
        ifact[n] = fact[n].inv();
        for (int i = n; i >= 1; --i) ifact[i-1] = ifact[i]*i;
    }
    mint operator()(int n, int k) {
        if (k < 0 || k > n) return 0;
        return fact[n]*ifact[k]*ifact[n-k];
    }
};
int main() {
    int A, B, C;
    cin >> A >> B >> C;
    
    if (A==B || B == C| C==A) {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}


Compiler output:
a.cc:8:11: error: redefinition of 'const int mod'
    8 | const int mod = 998244353;
      |           ^~~
a.cc:7:11: note: 'const int mod' previously defined here
    7 | const int mod = 1000000007;
      |           ^~~
a.cc:49:1: error: expected unqualified-id before '[' token
   49 | [mint]
      | ^
Language: C++

#include <iostream>
using namespace std;

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


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

package 競プロ;

import java.util.Scanner;

public class Main {

	public static void main {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		if(A==B && A!=C) {
			System.out.println("Yes");
		}
		else if(B==C && A!=C) {
			System.out.println("Yes");
		}
		else if(A==C && A!=B) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}


	}

}


Compiler output:
Main.java:7: error: '(' expected
	public static void main {
	                        ^
1 error
Language: Java

import java.util.Scanner;

public class A_Poor {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner scan = new Scanner(System.in);

		int A = scan.nextInt();
		int B = scan.nextInt();
		int C = scan.nextInt();

		if(A==B && A!=C) {
			System.out.println("Yes");
		}
		else if(B==C && A!=C) {
			System.out.println("Yes");
		}
		else if(A==C && A!=B) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}


	}

}


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

#include<iostream>
using namespace std; 
int main () 
{
int a,b,c; cout<<"Enter the numbers" <<endl; 

cin>>a>>b>>c; 

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

return 0;

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

include<iostream>
using namespace std; 
int main () 
{
int a,b,c; cout<<"Enter the numbers" <<endl; 

cin>>a>>b>>c; 

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

return 0;

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:12: error: 'cout' was not declared in this scope
    5 | int a,b,c; cout<<"Enter the numbers" <<endl;
      |            ^~~~
a.cc:5:40: error: 'endl' was not declared in this scope
    5 | int a,b,c; cout<<"Enter the numbers" <<endl;
      |                                        ^~~~
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>a>>b>>c;
      | ^~~
a.cc:18:10: error: expected '}' at end of input
   18 | return 0;
      |          ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: no matching function for call to 'sort(<unresolved overloaded function type>, <unresolved overloaded function type>)'
    8 |   sort(s.begin, s.end);
      |   ~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   template argument deduction/substitution failed:
a.cc:8:7: note:   couldn't deduce template parameter '_RAIter'
    8 |   sort(s.begin, s.end);
      |   ~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 2 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 2 provided
Language: C++

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

int main(){
  int a, b, c, x, y, z;
  cin >> a >> b >> c;
  x=a-b, y=b-c, z=c-a;
  if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
  else << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '<<' token
    9 |   else << "No" << endl;
      |        ^~
Language: C++

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

int main(){
  int a, b, c, x, y, z;
  cin >> a >> b >> c;
  x==a-b, y==b-c, z==c-a;
  if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
  else << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: expected primary-expression before '<<' token
    9 |   else << "No" << endl;
      |        ^~
Language: C++

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  int x==a-b, y==b-c, z==c-a;
  if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
  else << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: expected initializer before '==' token
    7 |   int x==a-b, y==b-c, z==c-a;
      |        ^~
a.cc:8:6: error: 'x' was not declared in this scope
    8 |   if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
      |      ^
a.cc:8:8: error: 'y' was not declared in this scope
    8 |   if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
      |        ^
a.cc:8:10: error: 'z' was not declared in this scope
    8 |   if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
      |          ^
a.cc:8:28: error: no matching function for call to 'max(<brace-enclosed initializer list>)'
    8 |   if(x*y*z==0 && x+y+z==max({abs(x), abs(y), abs(z)})) cout << "Yes" << endl;
      |                         ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   candidate expects 2 arguments, 1 provided
a.cc:9:8: error: expected primary-expression before '<<' token
    9 |   else << "No" << endl;
      |        ^~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'if'
    7 |   if(a=b&&b!=c) ans="Yes";
      |   ^~
Language: C++

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


Compiler output:
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else
      | ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'entl' was not declared in this scope
    7 |     cout<<"Yes"<<entl;
      |                  ^~~~
a.cc: At global scope:
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else
      | ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

int main(void){
  int a[3];
  bool ans=0;
  for (size_t i = 0; i < 3; i++) {
    cin >> a[i];
    if(i>0 && a[i]!=a[i-1]){
      ans=1;
    }
  }
  if(ans){
    cout << "Yes" << endl
  }else{
    cout << "No" << endl;
  }
  return 0;
}

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

#include<bits/stdc++.h>

int main(void){
  int a[3];
  bool ans=0;
  for (size_t i = 0; i < 3; i++) {
    cin >> a[i];
    if(i>0 && a[i]!=a[i-1]){
      ans=1;
    }
  }
  if(ans){
    cout << "Yes" << endl
  }else{
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |     cin >> a[i];
      |     ^~~
      |     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:13:5: 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:22: 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/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |     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:15:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |     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: Java

import java.util.*;
public 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)&&
      (A==C)){System.out.println("No");}
    else if((((!(A==B))&&
            (!(B==C)))&&
            (!(C==A)))){System.out.println("No");}
    else{System.out.println("Yes");}
  }
}

Compiler output:
Main.java:8: error: cannot find symbol
    if((A==B)&&
        ^
  symbol:   variable A
  location: class Main
Main.java:8: error: cannot find symbol
    if((A==B)&&
           ^
  symbol:   variable B
  location: class Main
Main.java:9: error: cannot find symbol
      (A==C)){System.out.println("No");}
       ^
  symbol:   variable A
  location: class Main
Main.java:9: error: cannot find symbol
      (A==C)){System.out.println("No");}
          ^
  symbol:   variable C
  location: class Main
Main.java:10: error: cannot find symbol
    else if((((!(A==B))&&
                 ^
  symbol:   variable A
  location: class Main
Main.java:10: error: cannot find symbol
    else if((((!(A==B))&&
                    ^
  symbol:   variable B
  location: class Main
Main.java:11: error: cannot find symbol
            (!(B==C)))&&
               ^
  symbol:   variable B
  location: class Main
Main.java:11: error: cannot find symbol
            (!(B==C)))&&
                  ^
  symbol:   variable C
  location: class Main
Main.java:12: error: cannot find symbol
            (!(C==A)))){System.out.println("No");}
               ^
  symbol:   variable C
  location: class Main
Main.java:12: error: cannot find symbol
            (!(C==A)))){System.out.println("No");}
                  ^
  symbol:   variable A
  location: class Main
10 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sn = new Scanner(System.in);
    
    int A = sn.nextInt();
    int B = sn.nextInt();
    int C = sn.nextInt();
    
    if(( A == B && A != C )
       || ( A == C && A != B )
       || ( B == C && B != A )) {
      System.out.print("Yes");
    } else {
      System.out.print("No");
  }
}


Compiler output:
Main.java:17: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

Compiler output:
a.cc:2:1: error: expected initializer before 'cin'
    2 | cin >> a >> b >>c;
      | ^~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if(a==b&&b==c)
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else if {
      | ^~~~
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0
      | ^~~~~~
Language: Java

import java.util.*;
public 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&&a<>c)||(b==c&&a<>b)||(c==a&&a<>b)){
        System.out.println("Yes");
        return;
    }
    System.out.println("No");
  }
  

  
}


Compiler output:
Main.java:8: error: illegal start of expression
    if((a==b&&a<>c)||(b==c&&a<>b)||(c==a&&a<>b)){
                ^
Main.java:8: error: illegal start of expression
    if((a==b&&a<>c)||(b==c&&a<>b)||(c==a&&a<>b)){
                              ^
Main.java:8: error: illegal start of expression
    if((a==b&&a<>c)||(b==c&&a<>b)||(c==a&&a<>b)){
                                            ^
3 errors
Language: C++

lst = list(map(int, input().split()))
lst.sort()
if lst[0] == lst[1] and lst[0] != lst[2]:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
a.cc:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'lst' does not name a type
    1 | lst = list(map(int, input().split()))
      | ^~~
Language: C

#include <stdio.h>

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

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

    if((a != b && b != c　&& c != a) || (a == b && b == c)){
        printf("No\n");
    }else{
        printf("Yes\n");
    }
}


Compiler output:
main.c: In function 'main':
main.c:8:25: error: stray '\343' in program
    8 |     if((a != b && b != c<U+3000>&& c != a) || (a == b && b == c)){
      |                         ^~~~~~~~
Language: C++

    include<bits/stdc++.h> 
    using namespace std;
    signed main(){
      	int a,b,c;
      	cin>>a>>b>>c;
      	if((a==b)&&(b!=c))
          	cout<<"Yes";
      	else if((a==c)&&(b!=c))
          	cout<<"Yes";
      	else if((c==b)&&(a!=c))
          	cout<<"Yes";
      	else
          	cout<<"NO";
    }

Compiler output:
a.cc:1:5: error: 'include' does not name a type
    1 |     include<bits/stdc++.h>
      |     ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b>>c;
      |         ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout<<"Yes";
      |                 ^~~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<"Yes";
      |                 ^~~~
a.cc:11:17: error: 'cout' was not declared in this scope
   11 |                 cout<<"Yes";
      |                 ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout<<"NO";
      |                 ^~~~
Language: C++

include<bits/stdc++.h> 
using namespace std;
signed main(){
  	int a,b,c;
  	cin>>a>>b>>c;
  	if((a==b)&&(b!=c))
      	cout<<"Yes";
  	else if((a==c)&&(b!=c))
      	cout<<"Yes";
  	else if((c==b)&&(a!=c))
      	cout<<"Yes";
  	else
      	cout<<"NO";
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin>>a>>b>>c;
      |         ^~~
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout<<"Yes";
      |         ^~~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout<<"Yes";
      |         ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"Yes";
      |         ^~~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"NO";
      |         ^~~~
Language: C++

#include <stdio.h>
main(A,B,C){scanf("%d%d%d",&A,&B,&C);puts((!(B^=(A^=C)^C)&&!A)||(A&&B&&B^A)?"No":"Yes");}


Compiler output:
a.cc:2:5: error: expected constructor, destructor, or type conversion before '(' token
    2 | main(A,B,C){scanf("%d%d%d",&A,&B,&C);puts((!(B^=(A^=C)^C)&&!A)||(A&&B&&B^A)?"No":"Yes");}
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'vector' was not declared in this scope
    8 |   vector<int> n(a,b,c);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:8:10: error: expected primary-expression before 'int'
    8 |   vector<int> n(a,b,c);
      |          ^~~
a.cc:9:8: error: 'n' was not declared in this scope
    9 |   sort(n.begin(), n.end());
      |        ^
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(n.begin(), n.end());
      |   ^~~~
      |   short
a.cc:13:9: error: invalid types 'int[int]' for array subscript
   13 |     if(a[i] == a[i-1])
      |         ^
a.cc:13:17: error: invalid types 'int[int]' for array subscript
   13 |     if(a[i] == a[i-1])
      |                 ^
a.cc:14:7: error: 'flag' was not declared in this scope
   14 |       flag++;
      |       ^~~~
a.cc:17:6: error: 'flag' was not declared in this scope
   17 |   if(flag == 1)
      |      ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         print("No");
      |         ^~~~~
      |         printf
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         print("No")
      |         ^~~~~
      |         printf
main.c:9:20: error: expected ';' before '}' token
    9 |         print("No")
      |                    ^
      |                    ;
   10 |   }
      |   ~
Language: C++

#define _LIBCPP_DEBUG 0
#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >> N;
  vector<string> S(N);
  vector<int> C(N);
  for(int i=0; i < N; i++){
    cin >> S[i];
  }
  
  sort(S.begin(),S.end());
  int pin=0;
  int nowmax=0;
  for(int i=0; i < N; i++){
    if(!S[pin]==S[i]){
      pin=i
    } 
    C[pin] = 1;
    nowmax = max(C[pin],nowmax);
  }
  for(int i=0; i < N; i++){
    if(C[i]==nowmax){
     cout << S[i] << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:8: error: no match for 'operator!' (operand type is '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'})
   17 |     if(!S[pin]==S[i]){
a.cc:17:8: note: candidate: 'operator!(bool)' (built-in)
a.cc:17:8: note:   no known conversion for argument 1 from '__gnu_cxx::__alloc_traits<std::allocator<std::__cxx11::basic_string<char> >, std::__cxx11::basic_string<char> >::value_type' {aka 'std::__cxx11::basic_string<char>'} to 'bool'
a.cc:18:12: error: expected ';' before '}' token
   18 |       pin=i
      |            ^
      |            ;
   19 |     }
      |     ~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <algorithm>
#include <stdint.h>
#include <queue>
#include <bitset>
#include <iomanip>
#define PI (3.14159265358979323846)
#define INF (1e+9)
#define DIV_NUM (1000000007)

using namespace std;

int main()
{

	/*--------------------------------*/
		/* 数字宣言と入力*/
	int N;
	cin >> N;
	vector<int> vecX(N);

	for (i=0;1<N;i++){
      cin >> vecX[i];
      if(vex[i]%2){
        if(vex[i]/3==0 ||vex[i]/5==0){
         	a=1; 
        }
        else{
          	a=0;
        }
      }
    }	

	if(a==1){
 		cout <<"APPROVED"  << endl;
    }
  	else{
 		cout <<"DENIED"  << endl;
    }
		
	cout << vecX[0] << " " << vecX[1] << " " << vecX[2] << endl;


	/*----------------------------------*/
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:14: error: 'i' was not declared in this scope
   25 |         for (i=0;1<N;i++){
      |              ^
a.cc:27:10: error: 'vex' was not declared in this scope
   27 |       if(vex[i]%2){
      |          ^~~
a.cc:29:17: error: 'a' was not declared in this scope
   29 |                 a=1;
      |                 ^
a.cc:32:17: error: 'a' was not declared in this scope
   32 |                 a=0;
      |                 ^
a.cc:37:12: error: 'a' was not declared in this scope
   37 |         if(a==1){
      |            ^
Language: C

#include<stdio.h>
int main()
{
    int A,B,C
    scanf("%d,%d,%d",&A&B&C);{
    if(A==B&&A!=C);
    printf("yes/n");
    else
        printf("no/n");}
    
    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |     scanf("%d,%d,%d",&A&B&C);{
      |     ^~~~~
main.c:6:17: error: 'C' undeclared (first use in this function)
    6 |     if(A==B&&A!=C);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else
      |     ^~~~
Language: C

#include<stdio.h>
int main()
{
    int A,B,C
    scanf("%d,%d,%d",&A&B&C);
    if(A==B&&A!=C);
    printf("yes/n");
    else
        printf("no/n");
    
    return 0;

}


Compiler output:
main.c: In function 'main':
main.c:5:5: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 |     scanf("%d,%d,%d",&A&B&C);
      |     ^~~~~
main.c:6:17: error: 'C' undeclared (first use in this function)
    6 |     if(A==B&&A!=C);
      |                 ^
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else
      |     ^~~~
Language: C

#include<stdio.h>

int main()
 
 {
     int A,B,C;
     scanf("%d,%d,%d",&A,&B,&C);
 }   if (A==B&&A!=C);     
printf("yes/n");
else
    printf("No/n");

    
    return 0;
    
    
    }

Compiler output:
main.c:8:6: error: expected identifier or '(' before 'if'
    8 |  }   if (A==B&&A!=C);
      |      ^~
main.c:9:8: error: expected declaration specifiers or '...' before string constant
    9 | printf("yes/n");
      |        ^~~~~~~
main.c:10:1: error: expected identifier or '(' before 'else'
   10 | else
      | ^~~~
main.c:14:5: error: expected identifier or '(' before 'return'
   14 |     return 0;
      |     ^~~~~~
main.c:17:5: error: expected identifier or '(' before '}' token
   17 |     }
      |     ^
Language: C

#include<stdio.h>
int main()
{
    int A,B,c;
    scanf("%d %d %d" &a,&b,&c);
    
    if(a>b,a>c);
    else if(b>a,b>c);
    else(c);
    printf("d%\n",c)
    
    
    return 0;
    
    
}

Compiler output:
main.c: In function 'main':
main.c:5:23: error: 'a' undeclared (first use in this function)
    5 |     scanf("%d %d %d" &a,&b,&c);
      |                       ^
main.c:5:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:26: error: 'b' undeclared (first use in this function)
    5 |     scanf("%d %d %d" &a,&b,&c);
      |                          ^
main.c:10:21: error: expected ';' before 'return'
   10 |     printf("d%\n",c)
      |                     ^
      |                     ;
......
   13 |     return 0;
      |     ~~~~~~
Language: C

#include<stdio.h>
int main()
{
   int A, B, C;
   { 
   scanf("%d,%d,%d");
   }
   if(A=B,<C);
        printf("%d,poor\n");

   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:11: error: expected expression before '<' token
    8 |    if(A=B,<C);
      |           ^
Language: C++

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


int main()
{

    int a, b, c;
    cin >> a >> b >> c;

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

}

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: expected primary-expression before ';' token
   19 |     cout << ;
      |             ^
Language: Java

	HashSet<Integer> set = new HashSet<>();
    Scanner sc = new Scanner (System.in);
    int a = sc.nextInt(); 
    int b = sc.nextInt(); 
    int c = sc.nextInt();
    set.add(a); 
    set.add(b); 
    set.add(c);  
    if (set.size() == 2) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    }



Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
	HashSet<Integer> set = new HashSet<>();
	^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
    set.add(a); 
    ^
Main.java:7: error: class, interface, enum, or record expected
    set.add(b); 
    ^
Main.java:8: error: class, interface, enum, or record expected
    set.add(c);  
    ^
Main.java:9: error: class, interface, enum, or record expected
    if (set.size() == 2) {
    ^
Main.java:11: error: class, interface, enum, or record expected
    } else {
    ^
Main.java:13: error: class, interface, enum, or record expected
    }
    ^
7 errors
Language: C++

// #define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define rep(i, n) for (int i = 0; i < n; ++i)
#define REP(i, n) for (int i = 0; i < n; ++i)
#define range(i,a,b) ((a)<=(i) && (i)<(b))
#define debug(x) cout << #x << ' ' << '=' << ' ' << (x) << endl;
#define fs first
#define sc second
#define pb push_back
#define eb emplace_back
typedef long long ll;
typedef pair<ll, ll> P;
typedef tuple<ll, ll, ll> T;
typedef vector<ll> vec;
typedef vector<P> pvec;
typedef vector<vector<ll>> vvec;
typedef vector<vector<P>> pvvec;
typedef priority_queue<ll> PQI;
typedef priority_queue<P> PQP;
typedef priority_queue<ll,vector<ll>,greater<ll>> PQIG;
typedef priority_queue<P,vector<P>,greater<P>> PQPG;
const vector<int> dx = {0, -1, 0, 1, 1, 1, -1, -1};
const vector<int> dy = {1, 0, -1, 0, 1, -1, 1, -1};
const int MOD = (1000000007);
// const int MOD = (998244353);
// const int INF = (1 << 30);
const int INF = (1LL << 60);
const double EPS = (1 >> 30);
template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b; return 1;} return 0;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b; return 1;} return 0;}



signed main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << fixed << setprecision(15);
    //---------------------------------------------
    
    int a[3];
  cout<<a[0.543]<<endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:46:10: error: invalid types 'long long int [3][double]' for array subscript
   46 |   cout<<a[0.543]<<endl;
      |          ^
Language: C++

#include <iostream>
#incldue <algorithm>
using namespace std;
typedef long long ll;


int main(void){
  int a[3];
  
  cin >> a[0] >> a[1] >> a[2];
  
  sort(a,a+3);
  
  if ((a[0]==a[1] || a[1]==a[2]) && a[0]!=a[2]){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #incldue; did you mean #include?
    2 | #incldue <algorithm>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:12:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   12 |   sort(a,a+3);
      |   ^~~~
      |   short
Language: C++

#inclide<iostream>
using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | #inclide<iostream>
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |      cout << "Yes" << endl;
      |      ^~~~
a.cc:8:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:23: error: 'endl' was not declared in this scope
    8 |      cout << "Yes" << endl;
      |                       ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inclide<iostream>
a.cc:11:6: error: 'cout' was not declared in this scope
   11 |      cout << "No" << endl;
      |      ^~~~
a.cc:11:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |      cout << "No" << endl;
      |                      ^~~~
a.cc:11:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<char> vchar;
typedef vector<vector<char>> vvchar;
typedef vector<int> vint;
typedef vector<vector<int>> vvint;
typedef vector<long long> vll;
typedef vector<vector<long long>> vvll;
typedef priority_queue<long long> prque;
#define ain(i,n,a) for(long long i=0;i<(long long)(n);i++){cin>>a[i];}
#define aout(i,n,a) for(long long i=0;i<(long long)(n);i++){if(i){cout<<" ";}cout<<a[i];if(i==n-1){cout<<endl;}}
#define rep(i,n) for(long long i=0;i<(long long)(n);i++)
#define vsort(v) sort((v).begin(),(v).end())
#define vrsort(v) sort((v).rbegin(),(v).rend())
#define vreverse(v) reverse((v).begin(),(v).end())
#define pf(a) push_front(a)
#define pb(a) push_back(a)
#define INF 1998021900
#define MOD 1000000007
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  //input
  vll j(3);cin>>j[0]>>j[1]>>j[2];sort(j);
  if(((j[0]==j[1])&&(j[1]!=j[2]))||((j[2]==j[1])&&(j[1]!=j[0]))){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
  //caricurate
  //output
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:38: error: no matching function for call to 'sort(vll&)'
   25 |   vll j(3);cin>>j[0]>>j[1]>>j[2];sort(j);
      |                                  ~~~~^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided