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

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

int64_t pow2(int64_t X) {
	if (X == 0) return 1;
	if (X == 1) return 2;
	return pow2(X >> 1) * pow2(X >> 1) * pow2(X & 1);
}
int main() {
	int64_t N, X, patty = 0;
	cin >> N >> X;
	for (;N >= 0;-- N, -- X) {
		if (X >= pow2(N + 1) - 1) { // 半分より多い
			patty |= pow2(N);
			X -= pow2(N + 1) - 2;
		}
	}
	cout << patty;
	return 0;
}
/*
31536000のコメント解説欄
ここテンプレで用意してるから、A問題とかだとこの先空欄の危険あり
また、コンテスト後に https://31536000.hatenablog.com/ で解説していると思うので、良かったら読んでねー

まず、レベルLバーガーの枚数を考えてみるか(本題じゃないけど)
枚数をf(x)とする
この時、f(0)=1, f(x)=3+2f(x-1)より、f(x)=2^(x+2)-3
ということでXは最大で2^52-3が考えられるのでオーバーフローとかに注意、あとはO(X)は許されないっぽい

次に、バーガーの規則を考えていこう
まず、試しに5個だけ列挙
P
BPPPB
BBPPPBPBPPPBB
BBBPPPBPBPPPBBPBBPPPBPBPPPBBB
BBBBPPPBPBPPPBBPBBPPPBPBPPPBBBPBBBPPPBPBPPPBBPBBPPPBPBPPPBBBB
さて、これをどう考えるか考えてみよう
まず、全てのバーガーは対称な形をしているので、X≧2^(N+1)-1なら、答えはX-2^(N+1)+1と2^(N+1)-2の時の答え+1と表すことができる
ちなみに2^(N+1)-2の計算後の答えは2^N-1ね
さて、上の操作でまずXが半分を超えることは無くなった
次に、X-1は要するに1個上のバーガーなので、この時の答えが分かれば再帰的に求まる
よって、これを再帰でもメモ化再帰でもすれば求まる
今回は小さいし再帰しようか、O(N)ね
*/

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

#include <iostream>
#include <vector>
using ll =long long;
int main()
{
  int N;std::cin>>N;
  ll X;std::cin>>X;
  std::vector<ll> s(N+1,1),p(N+1,1);
  for(int i=1;i<=N;i++){
    s[i]=2*s[i-1]+3;
    p[i]=2*p[i-1]+1;
  }
  auto dp=[&](auto&& self,const int l,const ll x){
    if(l==0)return 1;
    if(x<=1)return 0;
    if(x<=1+s[l-1])return self(self,l-1,x-1);
    if(x==2+s[l-1])return 1+p[l-1];
    if(x<=2+2*s[l-1])return p[l-1]+1+self(self,l-1,x-2-s[l-1]);
  };
  std::cout<<dp(dp,N,X)<<std::endl;
}


Compiler output:
a.cc: In instantiation of 'main()::<lambda(auto:1&&, int, ll)> [with auto:1 = main()::<lambda(auto:1&&, int, ll)>&; ll = long long int]':
a.cc:20:16:   required from here
   20 |   std::cout<<dp(dp,N,X)<<std::endl;
      |              ~~^~~~~~~~
a.cc:17:28: error: inconsistent types 'int' and 'long long int' deduced for lambda return type
   17 |     if(x==2+s[l-1])return 1+p[l-1];
a.cc:18:37: error: inconsistent types 'int' and 'long long int' deduced for lambda return type
   18 |     if(x<=2+2*s[l-1])return p[l-1]+1+self(self,l-1,x-2-s[l-1]);
a.cc: In lambda function:
a.cc:19:3: warning: control reaches end of non-void function [-Wreturn-type]
   19 |   };
      |   ^
Language: C++

#include <iostream>
#include <vector>
using ll =long long;
int main()
{
  int N;std::cin>>N;
  ll X;std::cin>>X;
  std::vector<ll> s(N+1,1),p(N+1,1);
  for(int i=1;i<=N;i++){
    s[i]=2*s[i-1]+3;
    p[i]=2*p[i-1]+1;
  }
  auto dp=[&](auto&& self,const int l,const ll x){
    if(l==0)return 1;
    if(x<=1)return 0;
    if(x<=1+s[l-1])return self(self,l-1,x-1);
    if(x==2+1+s[l-1])return 1+self(self,l-1,x-1);
    if(x<=2+2*s[l-1])return p[l-1]+1+self(self,l-1,x-2-s[l-1]);
  };
  std::cout<<dp(dp,N,X)<<std::endl;
}


Compiler output:
a.cc: In instantiation of 'main()::<lambda(auto:1&&, int, ll)> [with auto:1 = main()::<lambda(auto:1&&, int, ll)>&; ll = long long int]':
a.cc:20:16:   required from here
   20 |   std::cout<<dp(dp,N,X)<<std::endl;
      |              ~~^~~~~~~~
a.cc:18:37: error: inconsistent types 'int' and 'long long int' deduced for lambda return type
   18 |     if(x<=2+2*s[l-1])return p[l-1]+1+self(self,l-1,x-2-s[l-1]);
a.cc: In lambda function:
a.cc:19:3: warning: control reaches end of non-void function [-Wreturn-type]
   19 |   };
      |   ^
Language: C++

#include <bits/stdc++.h>
#include <cassert>
#define rep(i,N) for (int i = 0; i < (N); ++i)
#define rep2(i, a, b) for(ll i = a; i <= b; ++i)
#define rep3(i, a, b) for(ll i = a; i >= b; --i)
#define pb push_back
#define eb emplace_back
#define fi first
#define se second
#define all(c) begin(c), end(c)
#define ok() puts(ok?"Yes":"No");
template<class T> bool chmax(T &a, const T &b) { if(a < b) { a = b; return true; } return false; }
template<class T> bool chmin(T &a, const T &b) { if(a > b) { a = b; return true; } return false; }
using namespace std;
using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using ii = pair<int, int>;
using vvi = vector<vi>;
using vii = vector<ii>;
using gt = greater<int>;
using minq = priority_queue<int, vector<int>, gt>;
using P = pair<ll,ll>;
const ll LINF = 1e18L + 1;
const int INF = 1e9 + 1;
//clang++ -std=c++11 -stdlib=libc++ 

int x; 
int main() {
  cin >> x; 
  if (x == 3 || x==5||x==7)` puts("YES");
  else puts("NO");
  return 0;
} 


Compiler output:
a.cc:31:28: error: stray '`' in program
   31 |   if (x == 3 || x==5||x==7)` puts("YES");
      |                            ^
Language: C++

#include<iostream>
using namespace std;

int main(){
  int x;
  cin >> x;
  if(x == 3 || x == 5 || x == 7){
    cout << "YES;
  }
  else{
    cout << "NO";
  }
}

Compiler output:
a.cc:8:13: warning: missing terminating " character
    8 |     cout << "YES;
      |             ^
a.cc:8:13: error: missing terminating " character
    8 |     cout << "YES;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:9:3: error: expected primary-expression before '}' token
    9 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int N;cin >> N;
  int a[3]={7,5,3}
  for(int i=0;i<3;i++){
    if(a[i]==N){
      puts("Yes");
      return 0;
    }
  }
	puts("No");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'for'
    7 |   for(int i=0;i<3;i++){
      |   ^~~
a.cc:7:15: error: 'i' was not declared in this scope
    7 |   for(int i=0;i<3;i++){
      |               ^
Language: C++

//
// Created on 2020/08/28.
//

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower
#include <math.h>
#include <ios>
#include <iomanip>
#include <numeric>

#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
typedef long long ll;
using namespace std;
const long long LINF =1e18;
const int INF = 1e9;



int main() {
    int x;
    cin>>x;
    if(x == 7 || x==5 || x==3){
        cout"YES"<<endl;
    }else{
        cout<<"NO"<<endl;
    }
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:42:13: error: expected ';' before string constant
   42 |         cout"YES"<<endl;
      |             ^~~~~
      |             ;
Language: Java

import java.util.*;

public class Main {
	public static void main(String args[]) {
    	Scanner sc = new Scanner(System.in);
        int x = sc.nextInt()l
        if (x == 7 || x == 5 || x == 3) {
            System.out.println("YES");
        } else {
        	System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:6: error: ';' expected
        int x = sc.nextInt()l
                            ^
Main.java:6: error: ';' expected
        int x = sc.nextInt()l
                             ^
2 errors
Language: C++

// lcmとか__builtin_popcountとかはg++ -std=c++17 default.cppみたいなかんじで

#include <bits/stdc++.h>
#define mod 1000000007
#define INF LLONG_MAX
#define ll long long
#define ln cout<<endl
#define Yes cout<<"Yes"<<endl
#define NO cout<<"NO"<<endl
#define YES cout<<"YES"<<endl
#define No cout<<"No"<<endl
#define REP(i,m,n) for(ll i=(ll)(m);i<(ll)(n);i++)
#define rep(i,n) REP(i,0,n)
#define all(x) (x).begin(),(x).end()
#define rall(x) (x).rbegin(),(x).rend()
using namespace std;
ll dx[4]={1,0,-1,0};
ll dy[4]={0,1,0,-1};

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

    ll  a,b,c,d,e,n,k,maxi=0,f=0,mini=INF,sum=0,q;
	string str,stra,straa;
    ll x,y,z;
    char ca,cb,cc;
    cin>>a;
    if(a==5||a==3||a==7) YEs;
    else NO;

    

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:26: error: 'YEs' was not declared in this scope; did you mean 'Yes'?
   29 |     if(a==5||a==3||a==7) YEs;
      |                          ^~~
      |                          Yes
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int x;
  cin >> x;
  if(x==7||x=5||x=3){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
    6 |   if(x==7||x=5||x=3){
      |              ~^~~
Language: C++

#include <iostream>
#include <iomanip>
typedef long long ll;
using namespace std;
const  ll INF = 1e9;
const  ll MOD = 1e9 + 7;
#define repi(i,n,init) for(ll i=init;i<(n);i++)

int main()
{
    cin >> x;
    if(x == 7 || x == 5 || x == 3){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'x' was not declared in this scope
   11 |     cin >> x;
      |            ^
Language: Java

import java.util.Scanner;

public class seven {

	public static void main(String[] args) {
		Scanner scan=new Scanner(System.in);
		int X=scan.nextInt();
		if(X==7) {
			System.out.println("Yes");
		}
		else if(X==5) {
			System.out.println("Yes");
		}
		else if(X==3) {
			System.out.println("Yes");
		}
		else {
			System.out.println("No");
		}
	}
}

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

#include <iostream>
using namespace std;

int main() {
	int n;
  cin >> n;
  if(n==7||n==5||n==3){
    cout << "YES";
  }else{
    cout << "NO"
  }
	return 0;
}


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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<set>
#include<iomanip>
#define rep(i, a, n) for(int i = a; i < n; i++)
using namespace std;
int main(){
int a;
cin >> a:
if(a== 3 || a == 5 || a == 7){
  cout << "YES";
}
  else{
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ';' before ':' token
   11 | cin >> a:
      |         ^
      |         ;
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a;
  cin>>a;
  if(a==3||a==5||a==7){cout<<"YES"<<endl;}
  else(cout<<"NO"<<endl;)
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ')' before ';' token
    7 |   else(cout<<"NO"<<endl;)
      |       ~                ^
      |                        )
a.cc:7:25: error: expected primary-expression before ')' token
    7 |   else(cout<<"NO"<<endl;)
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a == 3 || a == 5 || x == 7) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: 'x' was not declared in this scope
    6 |   if (a == 3 || a == 5 || x == 7) {
      |                           ^
Language: C++

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

int main()
{
    int a;
    cin >> a;
    if(a==7 or a==5 or a=3)cout << "YES";
    else            cout << "NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |     if(a==7 or a==5 or a=3)cout << "YES";
      |        ~~~~~~~~~~~~~^~~~
Language: C

#include<stdio.h>
int main(void){
  int x;
  scanf("%d",&x);
  if ((x=7) || (x=5) || (x=3))
    printf("Yes\n");
  else printf("No\n")

Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected ';' at end of input
    7 |   else printf("No\n")
      |                      ^
      |                      ;
main.c:7:3: error: expected declaration or statement at end of input
    7 |   else printf("No\n")
      |   ^~~~
Language: C

#include<stdio.h>
int main(void){
  int x;
  scanf("%d",&x);
  if (x=7||x=5||x=3)
    printf("Yes\n");
  else printf("No\n")

Compiler output:
main.c: In function 'main':
main.c:5:18: error: lvalue required as left operand of assignment
    5 |   if (x=7||x=5||x=3)
      |                  ^
main.c:7:22: error: expected ';' at end of input
    7 |   else printf("No\n")
      |                      ^
      |                      ;
main.c:7:3: error: expected declaration or statement at end of input
    7 |   else printf("No\n")
      |   ^~~~
Language: C++

//┏━┓┏┓
//┃//┃┗╋┓
//┃//┗━╋┛
//┃//////┃
//┃//┏━┛
//┃//┣━┓
//┗┳┛//┗┓ド
//　┗┓//┏┛　キ
//　┏┛//┗┓
//ド┗┓//┏(⌒⌒)
//　キ┗━┛ ＼／

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


int main() {
int s;
  cin>>s;
  vector<int> sum((int)s.size()-2);
  for(int i=0;i<(int)s.size-2){
  string a=s[i]+s[i+1]+s[i+2];
    int b=(int)a;
    sum[i]=b;
  }
  int ryo=1000;
  for(int j=0;j<(int)s.size-2;j++){
    ryo= min(abs(sum[j]-753),ryo);
  }
  cout <<ryo <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:26: error: request for member 'size' in 's', which is of non-class type 'int'
   22 |   vector<int> sum((int)s.size()-2);
      |                          ^~~~
a.cc:23:24: error: request for member 'size' in 's', which is of non-class type 'int'
   23 |   for(int i=0;i<(int)s.size-2){
      |                        ^~~~
a.cc:23:30: error: expected ';' before ')' token
   23 |   for(int i=0;i<(int)s.size-2){
      |                              ^
      |                              ;
a.cc:24:13: error: invalid types 'int[int]' for array subscript
   24 |   string a=s[i]+s[i+1]+s[i+2];
      |             ^
a.cc:24:18: error: invalid types 'int[int]' for array subscript
   24 |   string a=s[i]+s[i+1]+s[i+2];
      |                  ^
a.cc:24:25: error: invalid types 'int[int]' for array subscript
   24 |   string a=s[i]+s[i+1]+s[i+2];
      |                         ^
a.cc:25:11: error: invalid cast from type 'std::string' {aka 'std::__cxx11::basic_string<char>'} to type 'int'
   25 |     int b=(int)a;
      |           ^~~~~~
a.cc:29:24: error: request for member 'size' in 's', which is of non-class type 'int'
   29 |   for(int j=0;j<(int)s.size-2;j++){
      |                        ^~~~
Language: C++

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

int main(){
  
  int X;
  cin >> X;
  
  if(X == 3 || X == 5 || X == 7){
    cout << "YES" << endl;
    return 0
  }
  cout << "NO" << endl;
  return 0  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before '}' token
   11 |     return 0
      |             ^
      |             ;
   12 |   }
      |   ~          
a.cc:14:11: error: expected ';' before '}' token
   14 |   return 0
      |           ^
      |           ;
   15 | }
      | ~
Language: Java

import java.util.*;
 
public class Main {
 	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int min = Integer.MAX_VALUE;
 
		String[] x = new String[S.length()];
		for(int i=0; i<S.length(); i++){
			String str = String.valueOf(S.charAt(i));
			x[i] = str;
			if(i>1){
				int X = Integer.parseInt(x[i-2]+x[i-1]+x[i]);
				//System.out.println(X);
				int d = Math.abs(753-X);
				if(d<min){
					min = d;
				}
			}
		}
		System.out.println(min);
	}
}

提出情報

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

import java.util.*;
 
public class Main {
 	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int min = Integer.MAX_VALUE;
 
		String[] x = new String[S.length()];
		for(int i=0; i<S.length(); i++){
			String str = String.valueOf(S.charAt(i));
			x[i] = str;
			if(i>1){
				int X = Integer.parseInt(x[i-2]+x[i-1]+x[i]);
				//System.out.println(X);
				int d = Math.abs(753-X);
				if(d<min){
					min = d;
				}
			}
		}
		System.out.println(min);
	}
}
import java.util.*;
 
public class Main {
 	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
		String S = sc.next();
		int min = Integer.MAX_VALUE;

		String[] x = new String[S.length()];
		for(int i=0; i<S.length(); i++){
			String str = String.valueOf(S.charAt(i));
			x[i] = str;
			if(i>1){
				int X = Integer.parseInt(x[i-2]+x[i-1]+x[i]);
				//System.out.println(X);
				int d = Math.abs(753-X);
				if(d<min){
					min = d;
				}
			}
		}
		System.out.println(min);
	}
}
提出情報

Compiler output:
Main.java:25: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:49: error: reached end of file while parsing
????
^
2 errors
Language: Java



import java.io.IOException;
import java.util.Scanner;

public class Main {

	public static void main(String[] args) throws IOException {

		Scanner scan = new Scanner(System.in);

		int X;
		X = scan.nextInt();

		if (X == 3 || X == 5 || X == 7) {
			System.out.println("YES");

		} else {
			ystem.out.println("NO");
		}
	}

	//***********************以下共通関数************************************************
	/**
	 * 文字列を反転して返す
	 * @param pStr 文字列
	 * @return 反転した文字列
	 */
	public static String myReverse(String pStr) {
		if (pStr.length() < 1) {
			return "";
		}

		StringBuffer sb = new StringBuffer(pStr);
		return sb.reverse().toString();
	}

	/**
	 * 余りを求める。
	 * @param a
	 * @param b
	 * @return 余り。余りがマイナスの時はプラスで返す。
	 */
	public static long myMod(long a, long b) {
		long ret = 0;

		ret = a % b;

		if (ret < 0) {
			ret += b;
		}

		return ret;
	}

	/**
	 * 乗数を求める ※mod対応
	 * @param kisu 基数
	 * @param josu 乗数
	 * @param primeNumMod_0 法 mod値 使わない場合は「0」
	 * @return
	 */
	public static long myPowWithMod(long kisu, long josu, long primeNumMod_0) {

		long ans = 1;

		//乗数が0の場合→1
		if (josu == 0)
			return 1;

		if (primeNumMod_0 == 0) {
			//modを使わないとき

			while (josu > 0) {

				if (josu % 2 == 0) {
					//累乗が偶数の時

					kisu *= kisu;
					josu = josu / 2;
				} else {
					//累乗が奇数の時
					ans *= kisu;
					josu--;
				}
			}

			return ans;

		} else {
			//modを使うとき

			//初めに桁を落とす
			kisu = myMod(kisu, primeNumMod_0);

			while (josu > 0) {

				if (josu % 2 == 0) {
					//累乗が偶数の時

					kisu *= myMod(kisu, primeNumMod_0);
					josu = josu / 2;

				} else {
					//累乗が奇数の時
					ans *= myMod(kisu, primeNumMod_0);
					josu--;

				}
			}

			return myMod(ans, primeNumMod_0);

		}

	}

}


Compiler output:
Main.java:19: error: package ystem does not exist
			ystem.out.println("NO");
			     ^
1 error
Language: Java

import java.util.Scanner;
public class Main {
 
	public static void main(String[] args) {
		  Scanner sc = new Scanner(System.in);
	         
          int X = sc.nextInt();
      if(X==7){
        System.out.println("Yes");
      }else if(X==5){
		System.out.println("Yes");
      }else if(X==3){
        System.out.println("Yes");
      }else{
        System.out.println("No");
    }
}

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

#include<stdio.h>

int main(void)
{
  int X;
  scanf("%d",&X);
  switch (X) {
    case 3:
    case 5:
    case 7:
    printf("YES");
    break;
      default:
      printf("NO");
      break:
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:15:12: error: expected ';' before ':' token
   15 |       break:
      |            ^
      |            ;
Language: C

#include<stdio.h>

int main(void)
{
  int X;
  scanf("%d",&X);
  switch(X){
    case 3:
    case 5:
    case 7:
    printf("YES");
    break;
      default:
      printf("NO");
      break:
  }
  return 0;
}
        

Compiler output:
main.c: In function 'main':
main.c:15:12: error: expected ';' before ':' token
   15 |       break:
      |            ^
      |            ;
Language: C++

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

int main(){
  int h;
  cin >> h;
  if(h==7 || h==5 || h==3){
    cout << "YES" << endl;
  }
 else{
   cout << "NO" << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: expected '}' at end of input
   12 |  }
      |   ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
    int N;cin >> N;
    if(N == 3 || N == 5 || N == 7){
        cout << "Yes" << endl;
    }else[
        cout << "No" << endl;
    ]
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: warning: capture of variable 'std::cout' with non-automatic storage duration
    9 |         cout << "No" << endl;
      |         ^~~~
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:63:18: note: 'std::ostream std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:13: error: expected ',' before '<<' token
    9 |         cout << "No" << endl;
      |             ^~~
      |             ,
a.cc:9:14: error: expected identifier before '<<' token
    9 |         cout << "No" << endl;
      |              ^~
a.cc:9:29: error: expected ']' before ';' token
    9 |         cout << "No" << endl;
      |                             ^
      |                             ]
a.cc: In lambda function:
a.cc:9:29: error: expected '{' before ';' token
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before ']' token
   10 |     ]
      |     ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>


int main () {
   int x: std::cin >> x;

   if(x == 3 || x == 5 || x == 7) {
      std::cout << "Yes" << std::endl;
   } else {
      std::cout << "No" << std::endl;
   }
   
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: found ':' in nested-name-specifier, expected '::'
    8 |    int x: std::cin >> x;
      |         ^
      |         ::
a.cc:8:8: error: 'x' has not been declared
    8 |    int x: std::cin >> x;
      |        ^
a.cc:8:20: error: qualified-id in declaration before '>>' token
    8 |    int x: std::cin >> x;
      |                    ^~
a.cc:10:7: error: 'x' was not declared in this scope
   10 |    if(x == 3 || x == 5 || x == 7) {
      |       ^
Language: C++

n=int(input())
print('YES' if n==7 or n==5 or n==3 else 'NO')

Compiler output:
a.cc:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('YES' if n==7 or n==5 or n==3 else 'NO')
      |       ^~~~~
a.cc:2:42: warning: multi-character character constant [-Wmultichar]
    2 | print('YES' if n==7 or n==5 or n==3 else 'NO')
      |                                          ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n=int(input())
      | ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int A
    cin >> A ;
    if(A == 5 || A == 7 || A == 3){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
}


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

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

int main() {
	
int x ;    
cin >> x ;
 cout << (x==7 || x==5 || x==3) ? "Yes" : "Mo" << endl ;
  	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:48: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |  cout << (x==7 || x==5 || x==3) ? "Yes" : "Mo" << endl ;
      |                                           ~~~~~^~~~~~~
Language: C++

x=int(input())
if x==5 or x==7 or x==3:
    print('YES')
else:
    print('NO')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('YES')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'x' does not name a type
    1 | x=int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
using ll = long long;
int main(){
    int x;
    cin >> x;
    if (x == 7 || x = 5 || x == 3)cout << "YES";
    else "NO";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: lvalue required as left operand of assignment
    8 |     if (x == 7 || x = 5 || x == 3)cout << "YES";
      |         ~~~~~~~^~~~
Language: C++

#include <algorithm>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
typedef long long ll;
#define all(x) (x).begin(), (x).end()  // sortなどの引数を省略
#define rep(i, n) for (ll i = 0; i < (ll)(n); i++)
#define max3(x, y, z) max(x, max(y, z))

#ifdef _MSC_FULL_VER  //デバッグ出力
#define dout cout
#define debug() if (true)
#define check(x) std::cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) std::cout << "☆" << x << endl
#else
#define dout \
  if (false) cout
#define debug() if (false)
#define check(x) \
  if (false) cout << "★" << #x << "の値:" << (x) << endl
#define pass(x) \
  if (false) cout << "☆" << x << endl
#endif
using namespace std;
int main() {
  int a;
  cin >> a;
  if (a==3 or a == 5 or a==7){
    cout << "YES";
  } else {
    cout << "NO":
  }
}
  /*
//よく使うやつ
int N;
cin >> N;
vector<int> list(N);
for (int i = 0; i < N; i++) {
cin >> list[i];
}
// for文
for (int i = 0; i < N; i++) {
}
//配列
vector<int> list;
list.at(i)
vector<vector<int>> list(10, vector<int>(10));
sort(all(list));
sort(all(list), greater<int>());
  //配列の内容表示
dout << "====listの内容====\n";
for (int i = 0; i < N; i++) dout << list[i] << endl;
dout << "====ここまで====\n";
*/


Compiler output:
a.cc: In function 'int main()':
a.cc:32:17: error: expected ';' before ':' token
   32 |     cout << "NO":
      |                 ^
      |                 ;
Language: C++

#include <iostream>

 using namespace std;

int main(){
    cin >> x;
    if(x == 3 || x == 5 || x == 7){
        cout << "YES\n";
    }else{
        cout << "NO\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: 'x' was not declared in this scope
    6 |     cin >> x;
      |            ^
Language: Java

package tep;

import java.util.Scanner;

public class Sft {

	public static void main(String[] args) {
		int idade;
		Scanner scanner = new Scanner(System.in);
		idade = scanner.nextInt();
		if(idade == 7) {
			System.out.println("YES\n");
		} else if (idade == 5){
			System.out.println("YES\n");
		} else if (idade == 3) {
			System.out.println("YES\n");
		}else
			System.out.println("NO\n");
	}

}


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

#include <iostream>

int main()
{
  int X;

  std::cin >> X;
  if(X == 3){
    std::cout << "YES" << std::endl;
    std::cout << "The growth of a three-year-old child will be celebrated."<< std::endl;
  }else{
    if(X == 5){
      std::cout << "YES" << std::endl;
      std::cout << "The growth of a five-year-old child will be celebrated."<< std::endl;
    }else{
      if(X == 5){
      std::cout << "YES" << std::endl;
      std::cout << "The growth of a seven-year-old child will be celebrated." << std::endl;
    }else{
      if(X == 5){
      std::cout << "NO" << std::endl;
      std::cout << "See you next year."<< std::endl;
    }
    
    }
  }
  return 0;
}


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

#include <iostream>

int main()
{
  int X;

  std::cin >> X;
  if(X == 3){
    std::cout << "YES" << std::endl;
    std::cout << "The growth of a three-year-old child will be celebrated."<< std::endl;
  }else{
    if(x == 5){
      std::cout << "YES" << std::endl;
      std::cout << "The growth of a five-year-old child will be celebrated."<< std::endl;
    }else{
      if(x == 5){
      std::cout << "YES" << std::endl;
      std::cout << "The growth of a seven-year-old child will be celebrated." << std::endl;
    }else{
      if(x == 5){
      std::cout << "NO" << std::endl;
      std::cout << "See you next year."<< std::endl;
    }
    
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: 'x' was not declared in this scope
   12 |     if(x == 5){
      |        ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iosream>
using namespace std;
int main(){
  int A;
  cin>>A;
  if(105%A==0)cout<<"YES";
  else cout<<"NO";
  cout<<endl;
}

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

#include <iostream>
using namespace std;
int main() {
	int age;
	cin >> age
		if (age == 3 || age == 5 || age == 7) {
			cout << "YES" << endl;
		}
		else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected ';' before 'if'
    5 |         cin >> age
      |                   ^
      |                   ;
    6 |                 if (age == 3 || age == 5 || age == 7) {
      |                 ~~ 
a.cc:9:17: error: 'else' without a previous 'if'
    9 |                 else cout << "NO" << endl;
      |                 ^~~~
Language: C++

#include<iostream>
#include<stdio.h>
#include<vector>//s1.erase(n)=文字列s1の、n文字目以降削除
#include<algorithm>//辞書順=next_permutation
#include<set>
#include<string>//char 小文字のほうが32大きい
#include<sstream>
#include<string.h>
#include<complex>
#include<time.h>
#include<random>
#include<cmath>
#include<math.h>
#include<queue>
#include<time.h>
#include<iomanip>
#include<locale>
#include<utility>//swap=数値交換
#define rt "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define rop(i,n) for(int i=1;i<=n;i++)
#define drep(i,n) for(int i=n-1;0<=i;i--)
#define drop(i,n) for(int i=n;0<i;i--)
#define yes(ans) if(ans)cout<<"yes"<<rt;else cout<<"no"<<rt;
#define Yes(ans) if(ans)cout<<"Yes"<<rt;else cout<<"No"<<rt;
#define YES(ans) if(ans)cout<<"YES"<<rt;else cout<<"NO"<<rt;
#define sec(a,b,ans) if(ans)cout<<a<<rt;else cout<<b<<rt;
#define vcin(s,n) rep(i,n)cin>>s[i];//vcin(配列名),(繰り返し回数)
#define sort(s) sort(s.begin(),s.end())//標準=昇順
#define reve(s) reverse(s.begin(),s.end())
#define asas int ans=0
#define llcncn llint cnt=0
#define llasas llint ans=0
#define str string
#define please return
#define AC 0
#define Rapid cin.tie(0);ios::sync_with_stdio(false)
#define Pi 3.1415926535897932384626
#define nine 1000000000

using namespace std;
typedef vector<int> vint;
typedef vector<string> vstr;
typedef vector<char> vchar;
typedef vector<double> vdou;
typedef long long int llint;
typedef pair<int, int> pint;
typedef pair<llint, llint> pllint;
typedef vector<llint> vllint;
typedef vector<pint> vpint;
typedef vector<pair<llint, llint>> vpllint;
typedef vector<vector<int>> vvint;
typedef vector<vector<char>> vvchar;
typedef vector<vector<llint>> vvllint;
typedef vector<vector<string>> vvstr;
typedef vector<vector<bool>> vvbool;
typedef vector<vector<pint>> vvpint;
typedef vector<bool> vbool;

long long GCD(long long a, long long b) {
	if (b == 0) return a;
	else return GCD(b, a % b);
}

long long LCM(long long a, long long b) {
	return a * b / GCD(a, b);
}

unsigned GetDigit(unsigned num) {
	return std::to_string(num).length();
}

int tow(int n) {//2のn乗
	if (n == 0)return 1;
	int x = tow(n / 2);
	x *= x;
	if (n % 2 == 1)x *= 2;
	return x;//@domino
}

/*

 (char)toupper(a[n])=文字列のn文字目を大文字で出力

  pow(a,b)=aのb乗

  */


int main(void) {

	int x;
	cin >> x;
	YES(x == (3 || 5 || 7);

	please AC;
}

Compiler output:
a.cc:97:2: error: unterminated argument list invoking macro "YES"
   97 | }
      |  ^
a.cc: In function 'int main()':
a.cc:94:9: error: 'YES' was not declared in this scope
   94 |         YES(x == (3 || 5 || 7);
      |         ^~~
a.cc:94:12: error: expected '}' at end of input
   94 |         YES(x == (3 || 5 || 7);
      |            ^
a.cc:90:16: note: to match this '{'
   90 | int main(void) {
      |                ^
Language: Java

//package AtCoder.C114;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.OutputStream;
import java.io.PrintWriter;
import java.util.StringTokenizer;

public
class A {

    static InputStream inputStream = System.in;
    static OutputStream outputStream = System.out;
    static InputReader in = new InputReader(inputStream);
    static PrintWriter out = new PrintWriter(outputStream);

    public static void main(String[] args) {
        int x = in.NI();
        if (x==3 || x==5 || x==7)
            out.println("YES");
        else
            out.println("NO");
        out.close();
    }


    static class InputReader {
        public BufferedReader reader;
        public StringTokenizer tokenizer;

        public InputReader(InputStream stream) {
            reader = new BufferedReader(new InputStreamReader(stream), 32768);
            tokenizer = null;
        }

        public String next() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    tokenizer = new StringTokenizer(reader.readLine());
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return tokenizer.nextToken();
        }

        public int NI() {
            return Integer.parseInt(next());
        }

        public long NL() {
            return Long.parseLong(next());
        }

    }


}


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

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

int main(){
    int x cin >> x;
    cout << ((x==3 || x==5 || x==7) ? "Yes" : "No") << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:11: error: expected initializer before 'cin'
   21 |     int x cin >> x;
      |           ^~~
a.cc:22:15: error: 'x' was not declared in this scope
   22 |     cout << ((x==3 || x==5 || x==7) ? "Yes" : "No") << endl;
      |               ^
Language: C++

#include <iostream>
#include <iomanip>
#include <utility>
#include <cmath>
#include <random>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <stack>
#include <string>
#include <algorithm>
using namespace std;

#define rep(i,n) for(int i = 0; i<n; ++i)
const int INF = 100100100;
const int MOD = (int)1e9 + 7;
typedef long long ll;

int main(){
    double x: cin >> x;
    cout << ((x==3 || x==5 || x==7) ? "Yes" : "No") << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: found ':' in nested-name-specifier, expected '::'
   21 |     double x: cin >> x;
      |             ^
      |             ::
a.cc:21:12: error: 'x' has not been declared
   21 |     double x: cin >> x;
      |            ^
a.cc:21:19: error: qualified-id in declaration before '>>' token
   21 |     double x: cin >> x;
      |                   ^~
a.cc:22:15: error: 'x' was not declared in this scope
   22 |     cout << ((x==3 || x==5 || x==7) ? "Yes" : "No") << endl;
      |               ^
Language: C++

//   _/                _/                 _/_/_/   _/
//_/_/_/_/   _/_/   _/_/_/_/   _/_/    _/       _/_/
// _/     _/    _/   _/     _/    _/  _/_/_/     _/
//_/     _/    _/   _/     _/    _/  _/    _/   _/
// _/_/   _/_/       _/_/   _/_/      _/_/     _/
#include<iostream>
#include<algorithm>
#include<cmath>
#include<iomanip>
#include<set>
#include<map>
#include<queue>
#include<vector>
#include<string>
using namespace std;
typedef long long ll;
const int MOD=1e9+7;
const double pi=3.14159265358979323846;
const int inf=2e9;
const ll INF=5e18;
typedef pair<int,int> P;
signed main() {
  cin.tie(0),cout.tie(0);
  ios::sync_with_stdio(false);
 if(n==7||n==5||n==3) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:5: error: 'n' was not declared in this scope; did you mean 'yn'?
   25 |  if(n==7||n==5||n==3) {
      |     ^
      |     yn
Language: C++

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

int main() {
    int x;
    cin >> x;
    if (x == 3 || x == 5 || x = 7)
    cout << "YES" << endl;
    else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: lvalue required as left operand of assignment
    9 |     if (x == 3 || x == 5 || x = 7)
      |         ~~~~~~~~~~~~~~~~~^~~~
Language: Java

mport java.util.Scanner;

public class Main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int x = sc.nextInt();
		sc.close();

		if (x == 7 || x == 5 || x == 3) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

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

int main() {
    int x;

    cin >> x;

    if(x == 7 || x == 3 || x == 5){
        cout << "Yes";
    }
    }else{
        cout << "No";
    }
   
    return 0;
}

Compiler output:
a.cc:12:6: error: expected unqualified-id before 'else'
   12 |     }else{
      |      ^~~~
a.cc:16:5: error: expected unqualified-id before 'return'
   16 |     return 0;
      |     ^~~~~~
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

int main() {

int n; cin>>n;
  if(n==3||N==5||n==7)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: 'N' was not declared in this scope
    8 |   if(n==3||N==5||n==7)cout<<"YES"<<endl;
      |            ^
Language: C++

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

int main() {
  int x;
  cin >> x;
  if ((x==3) || (x==5) || (x==7)) cout << "YES" << endl;
  else cout << "NO"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before '}' token
    8 |   else cout << "NO"
      |                    ^
      |                    ;
    9 | }
      | ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
using vd= vector<double>;
using vvd= vector<vd>;
using vc= vector<char>;
using vb= vector<bool>;
#define rep(i,x,n) for(int i=x; i<n; i++)
#define all(x) x.begin(), x.end()


int main(){
  int x;
  cin >> x;

  if(x==3 || x==5 || x==7){
    cout << YES << endl;
  }else{
    cout << NO << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:13: error: 'YES' was not declared in this scope
   19 |     cout << YES << endl;
      |             ^~~
a.cc:21:13: error: 'NO' was not declared in this scope
   21 |     cout << NO << endl;
      |             ^~
Language: C++

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

int main() {

int x;
cin >> x;

  if(x = 3 || x = 5 || x = 7 ) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |   if(x = 3 || x = 5 || x = 7 ) {
      |                   ~~^~~~
Language: C++

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

int main() {

int x;
cin >> x;

  if(x = 3 || x = 5 || x = 7 ) {
    cout << YES << endl;
  }
  else {
    cout << NO << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: lvalue required as left operand of assignment
    9 |   if(x = 3 || x = 5 || x = 7 ) {
      |                   ~~^~~~
a.cc:10:13: error: 'YES' was not declared in this scope
   10 |     cout << YES << endl;
      |             ^~~
a.cc:13:13: error: 'NO' was not declared in this scope
   13 |     cout << NO << endl;
      |             ^~
Language: C++

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

int main() {
  	int a;
  	cin >> a;
  	if(a==3 || a==5 || a==7) cout << "YES" << endl;
  	else cout << "NO" << endl;
 	return 0; 
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce 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;
      |         ^~~
      |         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:7:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(a==3 || a==5 || a==7) cout << "YES" << endl;
      |                                  ^~~~
      |                                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:51: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if(a==3 || a==5 || a==7) 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:8:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         else cout << "NO" << endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |         else cout << "NO" << endl;
      |                              ^~~~
      |                              std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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

int main() 
{
    int n;
    cin >> n;
    cout << (n==3||n==5||n=7?"YES":"NO");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: lvalue required as left operand of assignment
    9 |     cout << (n==3||n==5||n=7?"YES":"NO");
      |              ~~~~~~~~~~^~~
Language: C++

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


int main() {
	int n;
	cin >> n;
	if(n == 3 ||　n == 5 || n == 7){
		cout << "Yes" << endl;
	}else{
		cout << "No" << endl;
	}
}


Compiler output:
a.cc:8:21: error: extended character 　 is not valid in an identifier
    8 |         if(n == 3 ||　n == 5 || n == 7){
      |                     ^
a.cc: In function 'int main()':
a.cc:8:21: error: '\U00003000n' was not declared in this scope
    8 |         if(n == 3 ||　n == 5 || n == 7){
      |                     ^~~
Language: C++

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

int main() {
	int x;
	cin >> x;
	string k = "NO";
	if(x == 3 || x == 5 || x == 7))
	{
		k = "YES";
	}
	cout << k << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: expected primary-expression before ')' token
    8 |         if(x == 3 || x == 5 || x == 7))
      |                                       ^
Language: C++

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

int main() {
    string s;
    cin>>s;
    int ans=642;

    for(int i=0; i<s.size()-2; i++)　ans=min(abs(753-((s.at(i)-48)*100)-((s.at(i+1)-48)*10)-(s.at(i+2)-48)),ans);

    cout<<ans<<endl;

}


Compiler output:
a.cc:9:36: error: extended character 　 is not valid in an identifier
    9 |     for(int i=0; i<s.size()-2; i++)　ans=min(abs(753-((s.at(i)-48)*100)-((s.at(i+1)-48)*10)-(s.at(i+2)-48)),ans);
      |                                    ^
a.cc: In function 'int main()':
a.cc:9:36: error: '\U00003000ans' was not declared in this scope
    9 |     for(int i=0; i<s.size()-2; i++)　ans=min(abs(753-((s.at(i)-48)*100)-((s.at(i+1)-48)*10)-(s.at(i+2)-48)),ans);
      |                                    ^~~~~
Language: C

#include<stdio.h>
    int main(){
        int X;
            scanf("%d", &X);
                if(X = 3 || X = 5 || X = 7){
                    printf("YES");
                }
                    else{
                        printf("NO");
                    }
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:5:40: error: lvalue required as left operand of assignment
    5 |                 if(X = 3 || X = 5 || X = 7){
      |                                        ^
Language: C

#include<stdio.h>
    int main(){
        int X;
            scanf("%d", $X);
                if(X = 3, 5, 7){
                    printf("YES");
                }
                    else{
                        printf("NO");
                    }
    return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:4:25: error: '$X' undeclared (first use in this function); did you mean 'X'?
    4 |             scanf("%d", $X);
      |                         ^~
      |                         X
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
    int main(){
        int X;
            scanf("%d", $X);
                if(X = 3, 5, 7){
                    printf("YES");
                }
                    else{
                        printf("NO");
                    }
    }

Compiler output:
main.c: In function 'main':
main.c:4:25: error: '$X' undeclared (first use in this function); did you mean 'X'?
    4 |             scanf("%d", $X);
      |                         ^~
      |                         X
main.c:4:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int main()
{
  int x; cin>>x;
  if(x==3||x==5||x==7) cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
  return 0;
}

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:6:10: error: 'cin' was not declared in this scope
    6 |   int x; cin>>x;
      |          ^~~
a.cc:7:24: error: 'cout' was not declared in this scope
    7 |   if(x==3||x==5||x==7) cout<<"YES"<<endl;
      |                        ^~~~
a.cc:7:37: error: 'endl' was not declared in this scope
    7 |   if(x==3||x==5||x==7) cout<<"YES"<<endl;
      |                                     ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout<<"NO"<<endl;
      |        ^~~~
a.cc:8:20: error: 'endl' was not declared in this scope
    8 |   else cout<<"NO"<<endl;
      |                    ^~~~