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

 int x = int.Parse(Console.ReadLine());

            if (x == 3||x==5||x==7)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");

            Console.ReadKey();

Compiler output:
a.cc:1:10: error: expected primary-expression before 'int'
    1 |  int x = int.Parse(Console.ReadLine());
      |          ^~~
a.cc:3:13: error: expected unqualified-id before 'if'
    3 |             if (x == 3||x==5||x==7)
      |             ^~
a.cc:5:13: error: expected unqualified-id before 'else'
    5 |             else
      |             ^~~~
a.cc:8:13: error: 'Console' does not name a type
    8 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

 int x = int.Parse(Console.ReadLine());

            if (x == 3||x==5||x==7)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");

Compiler output:
a.cc:1:10: error: expected primary-expression before 'int'
    1 |  int x = int.Parse(Console.ReadLine());
      |          ^~~
a.cc:3:13: error: expected unqualified-id before 'if'
    3 |             if (x == 3||x==5||x==7)
      |             ^~
a.cc:5:13: error: expected unqualified-id before 'else'
    5 |             else
      |             ^~~~
Language: C++

 class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());

            if (x == 3||x==5||x==7)
                Console.WriteLine("YES");
            else
                Console.WriteLine("NO");



        }
    }

Compiler output:
a.cc:3:26: error: 'string' has not been declared
    3 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:3:35: error: expected ',' or '...' before 'args'
    3 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:15:6: error: expected ';' after class definition
   15 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:5:21: error: expected primary-expression before 'int'
    5 |             int x = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:8:17: error: 'Console' was not declared in this scope
    8 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:10:17: error: 'Console' was not declared in this scope
   10 |                 Console.WriteLine("NO");
      |                 ^~~~~~~
Language: C++

  class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());

            if (x == 3)
                Console.WriteLine("Yes");
            else if (x == 5)
                 Console.WriteLine("Yes");
            else if (x==7)
                Console.WriteLine("Yes");
            else
                Console.WriteLine("No");



        }
    }

Compiler output:
a.cc:3:26: error: 'string' has not been declared
    3 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:3:35: error: expected ',' or '...' before 'args'
    3 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:19:6: error: expected ';' after class definition
   19 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:5:21: error: expected primary-expression before 'int'
    5 |             int x = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:8:17: error: 'Console' was not declared in this scope
    8 |                 Console.WriteLine("Yes");
      |                 ^~~~~~~
a.cc:10:18: error: 'Console' was not declared in this scope
   10 |                  Console.WriteLine("Yes");
      |                  ^~~~~~~
a.cc:12:17: error: 'Console' was not declared in this scope
   12 |                 Console.WriteLine("Yes");
      |                 ^~~~~~~
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |                 Console.WriteLine("No");
      |                 ^~~~~~~
Language: C++

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

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

namespace ABC114A
{
    class Program
    {
        static void Main(string[] args)
        {
            int x = int.Parse(Console.ReadLine());
            if (x==3||x==5||x==7)
            {
                Console.WriteLine("YES");
            }
            else
            {
                Console.WriteLine("NO");
            }
            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:5:26: error: 'string' has not been declared
    5 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:5:35: error: expected ',' or '...' before 'args'
    5 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:18:6: error: expected ';' after class definition
   18 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC114A::Program::Main(int*)':
a.cc:7:21: error: expected primary-expression before 'int'
    7 |             int x = int.Parse(Console.ReadLine());
      |                     ^~~
a.cc:10:17: error: 'Console' was not declared in this scope
   10 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:14:17: error: 'Console' was not declared in this scope
   14 |                 Console.WriteLine("NO");
      |                 ^~~~~~~
a.cc:16:13: error: 'Console' was not declared in this scope
   16 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <numeric>
#include <boost/math/common_factor_rt.hpp>
using namespace std;
#define rep(i, n) for(int i = 0;i < n;i++)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define ll long long

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

  if(N==3 || N==5 || N==7) cout >> "YES" >> endl;
  else cout >> "NO" >> endl;
}

Compiler output:
a.cc:5:10: fatal error: boost/math/common_factor_rt.hpp: No such file or directory
    5 | #include <boost/math/common_factor_rt.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<stdio.h>
int main(void) {
	int X;
	scanf_s("%d", &X);
	if (X == 3 || X == 5 || X == 7)
		printf("YES\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 |         scanf_s("%d", &X);
      |         ^~~~~~~
      |         scanf
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:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(iostream)
      |         ^
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> X;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include(iostream)
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "YES";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "NO";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#includo(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:1:2: error: invalid preprocessing directive #includo; did you mean #include?
    1 | #includo(iostream)
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> X;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includo(iostream)
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << "YES";
      |         ^~~~
a.cc:9:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "NO";
      |         ^~~~
a.cc:12:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#define _USE_MATH_DEFINES
#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <map>
#include <queue>
#include <unordered_map>
#include <bitset>
#include <unordered_set>
#include <stack>
#define speed ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define ll long long
#define eps 1e-7
#define inf 0x3f3f3f3f
#define mod 1000000007
using namespace std;

inline int FastI() {
	char c = ' '; int a = 0;
	while (c < '0' || c > '9') c = _getchar_nolock();
	while ('0' <= c && c <= '9') {
		a = a * 10 + c - '0';
		c = _getchar_nolock();
	}
	return a;
}

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

Compiler output:
a.cc: In function 'int FastI()':
a.cc:23:40: error: '_getchar_nolock' was not declared in this scope; did you mean 'getchar_unlocked'?
   23 |         while (c < '0' || c > '9') c = _getchar_nolock();
      |                                        ^~~~~~~~~~~~~~~
      |                                        getchar_unlocked
a.cc:26:21: error: '_getchar_nolock' was not declared in this scope; did you mean 'getchar_unlocked'?
   26 |                 c = _getchar_nolock();
      |                     ^~~~~~~~~~~~~~~
      |                     getchar_unlocked
Language: C++

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

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

}


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

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
x = int(input())
^
Main.java:2: error: unclosed character literal
print('YES' if x==7 or x==5 or x==3 else 'NO')
      ^
Main.java:2: error: unclosed character literal
print('YES' if x==7 or x==5 or x==3 else 'NO')
          ^
Main.java:2: error: unclosed character literal
print('YES' if x==7 or x==5 or x==3 else 'NO')
                                         ^
Main.java:2: error: unclosed character literal
print('YES' if x==7 or x==5 or x==3 else 'NO')
                                            ^
5 errors
Language: Java

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

Compiler output:
Main.java:6: error: cannot find symbol
      if(x == 7||x == 5||x == 3)System.out.println(YES);
                                                   ^
  symbol:   variable YES
  location: class Main
Main.java:7: error: cannot find symbol
      else System.out.println(NO);
                              ^
  symbol:   variable NO
  location: class Main
2 errors
Language: C++

#include <iostream>
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:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> X;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:6:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     cout << "YES" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     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 <cstdio> 
int main() 
{ 
    int X; 
    scanf("%d", X); 
    if (X == 7 or 5 or 3) 
    {
        printf("YES"); 
        
    } 
    
    else
    {
        printf("NO")
    }
    
}

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

#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <list>
#include <queue>
#include <deque>
#include <algorithm>
#include <numeric>
#include <utility>
#include <complex>
#include <functional>
using namespace std;
const int MOD = 1000000007;
typedef long long ll;
typedef pair<ll, ll> p;
const int INF = (1 << 28);
const int dx[4] = {0, 1, 0, -1}, dy[4] = {-1, 0, 1, 0};
const int Dx[8] = {0, 1, 1, 1, 0, -1, -1, -1}, Dy[8] = {-1, -1, 0, 1, 1, 1, 0, -1};
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
int n;
int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    cin >> n;
    if (n == 7)
        YES, return 0;
    if (n == 5)
        YES, return 0;
    if (n == 3)
        YES, return 0;
    NO;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:14: error: expected primary-expression before 'return'
   42 |         YES, return 0;
      |              ^~~~~~
a.cc:44:14: error: expected primary-expression before 'return'
   44 |         YES, return 0;
      |              ^~~~~~
a.cc:46:14: error: expected primary-expression before 'return'
   46 |         YES, return 0;
      |              ^~~~~~
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:5:6: error: expected ';' before 'x'
    5 |   cin x;
      |      ^~
      |      ;
Language: C++

#include <iostream>
using namespace std;

int 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:4:1: error: two or more data types in declaration of 'main'
    4 | int int main() {
      | ^~~
Language: C++

#include "stdafx.h"
#include<algorithm>
#include <iostream>
#include<cstdio>
#include<cmath>
#include<iomanip>
#include<string>
using namespace std;
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:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

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

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

#include<iostream>
using namespace std;

int main(){

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

return 0;
}

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected primary-expression before '=' token
    8 |   else if (X !== 3,5,7)
      |                ^
Language: Java

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

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

#include<iostream>
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:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include <stdio.h>

int pow_(int a, int n){
  if(n == 0) return 1;
  else{
    return a * pow_(a, n - 1);
  }
}

int g(int n){
  if(n > 3) return 3 * g(n - 1) + pow_(2, n - 1) * 3 - 6;
  if(n == 3) return 6;
}

int
main(int argc, char *argv[])
{
  int n;
  scanf("%d", &n);

  int ans = 0, s, f, t, z, temp, x = 0;

  for(int l = 1; l <= n; l++){
    temp = l;
    s = 0; f = 0; t = 0; z = 0;
    while(temp > 0){
      if(temp % 10 == 7) s++;
      else if(temp % 10 == 5) f++;
      else if(temp % 10 == 3) t++;
      else { z++; break;}
      temp /= 10;
    }
    if(s > 0 && t > 0 && f > 0 && z == 0) ans++; 
  }
  printf("%d\n", ans);
  }
 
	
    
  return 0;
}


Compiler output:
main.c:40:3: error: expected identifier or '(' before 'return'
   40 |   return 0;
      |   ^~~~~~
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^
Language: C

#include <stdio.h>

int pow_(int a, int n){
  if(n == 0) return 1;
  else{
    return a * pow_(a, n - 1);
  }
}

int g(int n){
  if(n > 3) return 3 * g(n - 1) + pow_(2, n - 1) * 3 - 6;
  if(n == 3) return 6;
}

int
main(int argc, char *argv[])
{
  int n;
  scanf("%d", &n);

  int ans = 0, s, f, t, z, temp, x = 0;

  if(n <= 999){
  for(int l = 1; l <= n / 2; l++){
    temp = 2 * l - 1;
    s = 0; f = 0; t = 0; z = 0;
    while(temp > 0){
      if(temp % 10 == 7) s++;
      else if(temp % 10 == 5) f++;
      else if(temp % 10 == 3) t++;
      else { z++; break;}
      temp /= 10;
    }
    if(s > 0 && t > 0 && f > 0 && z == 0) ans++; 
  }
  printf("%d\n", ans);
  }
  else{
    int d = 0;
    temp = n;
    while(temp > 0){
      temp /= 10;
      d++;
    }
    for(int i = 3; i < d; i++){
      ans += g(i);
    }
    for(int i = pow_(10, d - 1); i <= n; i += 1{
      temp = i;
      s = 0; f = 0; t = 0, z = 0;
      while(temp > 0){
	if(temp % 10 == 7) s++;
	else if(temp % 10 == 5) f++;
	else if(temp % 10 == 3) t++;
	else {z++;break;}
	temp /= 10;
      }
      if(s > 0 && t > 0 && f > 0 && z == 0)ans++;
    }
    printf("%d\n", ans);
  }
	
    
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:48:48: error: expected ')' before '{' token
   48 |     for(int i = pow_(10, d - 1); i <= n; i += 1{
      |        ~                                       ^
      |                                                )
main.c:61:3: error: expected expression before '}' token
   61 |   }
      |   ^
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope
    4 |   cin a;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<string>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:5:6: error: 'a' was not declared in this scope
    5 |   if(a=="7"||a=="5"||a=="3"){
      |      ^
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<"YES"<<endl;}
      |   ^~~~
a.cc:6:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<"YES"<<endl;}
      |                ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include<string>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |   else {cout<<"NO"<<endl;}
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:21: error: 'endl' was not declared in this scope
    7 |   else {cout<<"NO"<<endl;}
      |                     ^~~~
a.cc:7:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

var x : integer;
begin
  readln(x);
  if (x = 3) or (x = 5) or (x = 7) then writeln('Yes')
  else writeln('No');
end.

Compiler output:
a.cc:4:49: warning: multi-character character constant [-Wmultichar]
    4 |   if (x = 3) or (x = 5) or (x = 7) then writeln('Yes')
      |                                                 ^~~~~
a.cc:5:16: warning: multi-character character constant [-Wmultichar]
    5 |   else writeln('No');
      |                ^~~~
a.cc:1:1: error: 'var' does not name a type
    1 | var x : integer;
      | ^~~
a.cc:2:1: error: 'begin' does not name a type
    2 | begin
      | ^~~~~
a.cc:4:3: error: expected unqualified-id before 'if'
    4 |   if (x = 3) or (x = 5) or (x = 7) then writeln('Yes')
      |   ^~
a.cc:6:1: error: 'end' does not name a type
    6 | end.
      | ^~~
Language: C++

#include <iostream>
using namespace std;

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

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

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

int main(){
    int n;
    cin >> n;
    int a,b,c;
    int k,m,l,x;
    int cnt = 0;

    if(n >= 777777753){
        cout << 26484 << endl;
        return 0;
    }

    for(int i = 357;i <=n;){
        if((i%100)/10!=3&&(i%100)/10!=5&&(i%100)/10!=7){
            if(i%10 == 3 || i % 10 == 5){
                i += 2;
            }else if(i % 10 == 7){
                i += 6;
            }

        if((i%1000)/100!=3&&(i%1000)/100!=5&&(i%1000)/100!=7){
            if(i%10 == 3 || i % 10 == 5){
                i += 2;
            }else if(i % 10 == 7){
                i += 6;
            }


            continue;
        }
        a = 0;
        b = 0;
        c = 0;
        k = 1;
        m = i;
        l = i;
        for(;;){
            if(m / 10 != 0){
                m /= 10;
                k ++;
            }else{
                break;
            }
        }

        for(int j = 0;j < k;j ++){
            x = l % 10;
            if(x == 3){
                a ++;
            }else if(x == 5){
                b ++;
            }else if(x == 7){
                c ++;
            }
            l /= 10;
        }

        if(a != 0 && b != 0 && c != 0 && a+b+c == k){
            cnt ++;
        }

        if(i%10 == 3 || i % 10 == 5){
            i += 2;
        }else if(i % 10 == 7){
            i += 6;
        }
    }

    cout << cnt << endl;
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: unable to find numeric literal operator 'operator""x'
    8 |   if(x==3||x==5x||==7)
      |               ^~
a.cc:8:19: error: expected primary-expression before '==' token
    8 |   if(x==3||x==5x||==7)
      |                   ^~
Language: C++

#include <iostream>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

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

#include <algorithm>
#include <array>
#include <bitset>
#include <cstdint>
#include <deque>
#include <functional>
#include <iostream>
#include <limits>
#include <memory>
#include <numeric>
#include <unordered_set>
#include <unordered_map>
#include <vector>

// constexpr std::int64_t INF = 1ull << 50;
constexpr int INF = 1 << 20;

auto main() -> int {
  int X;
  std::cin >> X;

  if (X == 7 || X == 5 || X == 3) {
    std::cout << "YES\n";
  } else {
    std::cout << "NO\n"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:24: error: expected ';' before '}' token
   25 |     std::cout << "NO\n"
      |                        ^
      |                        ;
   26 |   }
      |   ~
Language: C++

using namespace std;

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



Compiler output:
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope
    4 |     int x; cin >> x;
      |            ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:5:31: error: 'cout' was not declared in this scope
    5 |     if (x==3 or x==5 or x==7) cout << "YES" << endl;
      |                               ^~~~
a.cc:5:31: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:48: error: 'endl' was not declared in this scope
    5 |     if (x==3 or x==5 or x==7) 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 | using namespace std;
a.cc:6:10: error: 'cout' was not declared in this scope
    6 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:6:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |     else cout << "NO" << endl;
      |                          ^~~~
a.cc:6:26: 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;

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:8:18: error: expected ';' before '}' token
    8 |     cout << "YES"
      |                  ^
      |                  ;
    9 |   }else{
      |   ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'a' was not declared in this scope
    7 |   if(a == 3 || a == 5 || a == 7){
      |      ^
a.cc:8:18: error: expected ';' before '}' token
    8 |     cout << "YES"
      |                  ^
      |                  ;
    9 |   }else{
      |   ~
Language: C++

#include <iostream>

using namespace std;

int main(int argc, _TCHAR* argv[])
{

	int X;

	cin >> X;

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

	return 0;
}


Compiler output:
a.cc:5:20: error: '_TCHAR' has not been declared
    5 | int main(int argc, _TCHAR* argv[])
      |                    ^~~~~~
a.cc:5:5: warning: second argument of 'int main(int, int**)' should be 'char **' [-Wmain]
    5 | int main(int argc, _TCHAR* argv[])
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

int _tmain(int argc, _TCHAR* argv[])
{

	int X;

	cin >> X;

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

	return 0;
}


Compiler output:
a.cc:5:22: error: '_TCHAR' has not been declared
    5 | int _tmain(int argc, _TCHAR* argv[])
      |                      ^~~~~~
Language: C++

#include<iostream>
int x;
x << std::cin;
std::cout << (x==7 || x==5 || x==3) ? "YES" : "NO" << std::endl;

Compiler output:
a.cc:3:1: error: 'x' does not name a type
    3 | x << std::cin;
      | ^
a.cc:4:6: error: 'cout' in namespace 'std' does not name a type
    4 | std::cout << (x==7 || x==5 || x==3) ? "YES" : "NO" << std::endl;
      |      ^~~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include "stdafx.h"
#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:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h"
      |          ^~~~~~~~~~
compilation terminated.
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:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(X == 7 || X == 5 || && X == 3){
      |                            ~~~~~^~~~
a.cc:8:31: error: label 'X' used but not defined
    8 |     if(X == 7 || X == 5 || && X == 3){
      |                               ^
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:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(X == 7 || X == 5 || && X == 3||){
      |                            ~~~~~^~~~
a.cc:8:39: error: expected primary-expression before ')' token
    8 |     if(X == 7 || X == 5 || && X == 3||){
      |                                       ^
a.cc:8:31: error: label 'X' used but not defined
    8 |     if(X == 7 || X == 5 || && X == 3||){
      |                               ^
Language: C++

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

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

    if(X == 7 || X == || && X == ||){
        cout << "YES" << endl;
    }else{
        cout << "NO" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected primary-expression before '||' token
    8 |     if(X == 7 || X == || && X == ||){
      |                       ^~
a.cc:8:34: error: expected primary-expression before '||' token
    8 |     if(X == 7 || X == || && X == ||){
      |                                  ^~
a.cc:8:36: error: expected primary-expression before ')' token
    8 |     if(X == 7 || X == || && X == ||){
      |                                    ^
a.cc:8:29: error: label 'X' used but not defined
    8 |     if(X == 7 || X == || && X == ||){
      |                             ^
Language: C++

#include <iostream>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#define INF 1.0e9
using namespace std;
typedef long long ll;

int X;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'out' was not declared in this scope
   16 |     else out << "NO" << endl;
      |          ^~~
Language: C++

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

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


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

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

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


Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'YES' << endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'YES' << endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:5:8: error: found ':' in nested-name-specifier, expected '::'
    5 |   int X:
      |        ^
      |        ::
a.cc:5:7: error: 'X' has not been declared
    5 |   int X:
      |       ^
a.cc:6:7: error: qualified-id in declaration before '>>' token
    6 |   cin >> X:
      |       ^~
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else{
      |   ^~~~
a.cc:12:2: error: expected '}' at end of input
   12 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

typedef long long int ll;

#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define all(a) a.begin(), a.end()
#define sz(a) (ll)(a.size())
#define endl "\n"

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
  
  	ll X;
  	cin >> X;
  
  	if(X==3 || X==5 || X==7)
    {
      cout << "YES" << endl;
    }
  
  	else
    {
      cout << "NO" << endl
    }
    

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:5: error: expected ';' before '}' token
   31 |     }
      |     ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:28: error: expression cannot be used as a function
    7 |         if (X=='5')(X=='3')(X=='7') {
      |                    ~~~~~~~~^~~~~~~~
Language: C

#include <stdio.h>

int main(){
  int X;
  scanf("%d",&X);
  if( X=3 || X=5 || X=7 ){
    printf("YES");
  }else{
    printf("NO");
  }
}

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

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:3:3: error: 'cin' was not declared in this scope
    3 |   cin>>X;
      |   ^~~
a.cc:6:5: error: 'cout' was not declared in this scope
    6 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:6:18: error: 'endl' was not declared in this scope
    6 |     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;
      |                    ^~~~
Language: C++

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:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>X;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:8:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: 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 | using namespace std;
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else{cout<<"NO"<<endl;
      |        ^~~~
a.cc:10:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:20: error: 'endl' was not declared in this scope
   10 |   else{cout<<"NO"<<endl;
      |                    ^~~~
a.cc:10:20: 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;

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

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

#include<iostream>
using namespace std;
 
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: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |   if(X=3||X=5||X=7)
      |             ~^~~
Language: C++

#include <iostream>

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:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(a == 3 || a == 5 || a == 7) cout << "YES";
      |                                  ^~~~
      |                                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else cout << "NO";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:24: error: expected expression before ')' token
    6 |   if(a==3||a==5||a==7||){
      |                        ^
main.c:11:5: error: expected declaration or statement at end of input
   11 |     }
      |     ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ';' token
    7 |   cin >>;
      |         ^
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
using namespace std;
int main(void){
  int a;
  cin >>;
  if(a ==3 ||a==5||a==7)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: expected primary-expression before ';' token
    7 |   cin >>;
      |         ^
Language: C++

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

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

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

#include <iostream>

using namespace std;

int main(){
  int 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:11:17: error: expected ';' before 'endl'
   11 |     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:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin >> x;
      |   ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "YES" << endl;
      |     ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "NO" << endl;
      |     ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

x = int(input())
if x == 3 or x == 5 or X == 7:
    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>
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:9:2: 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 x;
cin >> x;
if (x==3 || x==5 || x==7){
cout << "YES" << endl;}
}else{
cout << "NO" << endl;}

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

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

#define pb push_back
#define FOR(i, s, e) for (int (i) = (s); (i) < (e); (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:12:44: error: 'YES' was not declared in this scope
   12 |     if(x == 3 || x == 5 || x == 7) cout << YES << endl;
      |                                            ^~~
a.cc:13:18: error: 'NO' was not declared in this scope
   13 |     else cout << NO << endl;
      |                  ^~
Language: C

#include<stdio.h>
int main(void){
int x;
scanf("%d",&x);
switch(x){
case(7):
case(5):
case(3):
printf("YES");
break;
default:
printf("NO");
break;
return 0;
}

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

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

Compiler output:
a.cc:2:21: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | using namespace std;main(){int x;cin>>x;if(x==3||x==5||x|==7)cout<<"YES";else cout<<"NO";}
      |                     ^~~~
a.cc: In function 'int main()':
a.cc:2:59: error: expected primary-expression before '=' token
    2 | using namespace std;main(){int x;cin>>x;if(x==3||x==5||x|==7)cout<<"YES";else cout<<"NO";}
      |                                                           ^