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

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

Compiler output:
a.cc:1:1: error: stray '@' in program
    1 | @include <bits/stdc++.h>
      | ^
a.cc:1:2: 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:6:12: error: lvalue required as increment operand
    6 |   if (x == 3 ++ x == 5 ++ x == 7) puts("YES");
      |            ^
a.cc:6:16: error: expected ')' before 'x'
    6 |   if (x == 3 ++ x == 5 ++ x == 7) puts("YES");
      |      ~         ^~
      |                )
a.cc:6:35: error: 'puts' was not declared in this scope
    6 |   if (x == 3 ++ x == 5 ++ x == 7) puts("YES");
      |                                   ^~~~
a.cc:7:8: error: 'puts' was not declared in this scope
    7 |   else puts("NO");
      |        ^~~~
Language: C++

#include<cstdio>
int main()

int N;
scanf("%d", &N);
puts((N==3||N==5||N==7)?"YES":"NO");
return 0;{
  

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int N;
      | ^~~
a.cc:5:6: error: expected constructor, destructor, or type conversion before '(' token
    5 | scanf("%d", &N);
      |      ^
a.cc:6:5: error: expected constructor, destructor, or type conversion before '(' token
    6 | puts((N==3||N==5||N==7)?"YES":"NO");
      |     ^
a.cc:7:1: error: expected unqualified-id before 'return'
    7 | return 0;{
      | ^~~~~~
a.cc:7:10: error: expected unqualified-id before '{' token
    7 | return 0;{
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  
  	int n;
  	cin >> n;
  	
    (n == 5 || n == 3 || n== 7)?cout << "YES" << endl:cout << "NO" << endl;
  
	reurn 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'reurn' was not declared in this scope
   10 |         reurn 0;
      |         ^~~~~
Language: C++

#inlude<iostream>
using namespace std;
int main(){
  
  int X;
  scanf("%d",&X);
  
  if(X==3 || x==5 || X==7){
    printf("YES");
  }else{
   	printf("NO");
  }

  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'scanf' was not declared in this scope
    6 |   scanf("%d",&X);
      |   ^~~~~
a.cc:8:14: error: 'x' was not declared in this scope
    8 |   if(X==3 || x==5 || X==7){
      |              ^
a.cc:9:5: error: 'printf' was not declared in this scope
    9 |     printf("YES");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #inlude<iostream>
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |         printf("NO");
      |         ^~~~~~
a.cc:11:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <iostream>

using namespace std;
int main()
{
	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:6:16: error: 'x' was not declared in this scope
    6 |         cin >> x;
      |                ^
Language: C++

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

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


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

#include <bits/stdc++.h>
using namespace std;
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:6:57: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    6 |     cout << (x == 3 || x == 5 || x == 7) ? "YES" : "NO" << endl;
      |                                                    ~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#define ll  long long int 
int main()
{
	ll o;
	cin>>o;
	if(o==7||o==5||o==3) cout<<"YES"<<endl;
	else		      cout<<"NO"<<endl;
}

Compiler output:
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>>o;
      |         ^~~
      |         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:30: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         if(o==7||o==5||o==3) 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:43: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         if(o==7||o==5||o==3) 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:31: 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:43: 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 <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:10: error: '_' undeclared (first use in this function)
   10 |         }_
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:11: error: expected ';' before '}' token
   10 |         }_
      |           ^
      |           ;
   11 | }
      | ~
Language: C++

#include <bits/stdc++.h>

#if MYDEBUG
#include "lib/cp_debug.hpp"
#else
#define DBG(...) ;
#endif
#if __cplusplus <= 201402L
template <typename T>
T gcd(T a, T b) { return ((a % b == 0) ? b : gcd(b, a % b)); }
template <typename T>
T lcm(T a, T b) { return a / gcd(a, b) * b; }
#endif
using LL = long long;
constexpr LL LINF = 334ll << 53;
constexpr int INF = 15 << 26;
constexpr LL MOD = 1E9 + 7;

namespace Problem {
using namespace std;

class Solver {
 public:
  int n;
  Solver(LL n) : n(n){};

  void solve() {
    if(n==3 || n == 5 || n == 7 ) {
      cout<<"YES"<<endl;
    }else{
      cout<<"NO"<<endl;
  }
};
class Solver2 {
 public:
  int n, m;
  Solver2(LL n, LL m) : n(n), m(m){};

  void solve() {
  }
};
}  // namespace Problem

int main() {
  std::cin.tie(0);
  std::ios_base::sync_with_stdio(false);
  // std::cout << std::fixed << std::setprecision(12);
  long long n = 0;
  std::cin >> n;

  Problem::Solver sol(n);
  sol.solve();
  return 0;
}


Compiler output:
a.cc:42:2: error: expected ';' after class definition
   42 | }  // namespace Problem
      |  ^
      |  ;
a.cc:54:2: error: expected '}' at end of input
   54 | }
      |  ^
a.cc:19:19: note: to match this '{'
   19 | namespace Problem {
      |                   ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin>>x;
      |         ^~~
      |         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:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    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:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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 x;
cin>>x;
if(x==3||x==5||x==7)
cout<<”YES”<<endl;
else 
cout<<”NO”<<endl;
return 0;}

Compiler output:
a.cc:8:7: error: extended character ” is not valid in an identifier
    8 | cout<<”YES”<<endl;
      |       ^
a.cc:8:7: error: extended character ” is not valid in an identifier
a.cc:10:7: error: extended character ” is not valid in an identifier
   10 | cout<<”NO”<<endl;
      |       ^
a.cc:10:7: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:7: error: '\U0000201dYES\U0000201d' was not declared in this scope
    8 | cout<<”YES”<<endl;
      |       ^~~~~
a.cc:10:7: error: '\U0000201dNO\U0000201d' was not declared in this scope
   10 | cout<<”NO”<<endl;
      |       ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int current_age;
  cin >> current_age;
  int ages = [7, 5, 3];
  for (int i = 0; i < 3; i++) {
    if (ages[i] == (current_age + 1)) {
      cout << "True" << endl;
      return 0;
    }
  }
  cout << "False" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected identifier before numeric constant
    7 |   int ages = [7, 5, 3];
      |               ^
a.cc:7:16: error: expected ']' before ',' token
    7 |   int ages = [7, 5, 3];
      |                ^
      |                ]
a.cc: In lambda function:
a.cc:7:16: error: expected '{' before ',' token
a.cc: In function 'int main()':
a.cc:7:14: error: invalid user-defined conversion from 'main()::<lambda()>' to 'int' [-fpermissive]
    7 |   int ages = [7, 5, 3];
      |              ^~
a.cc:7:14: note: candidate is: 'constexpr main()::<lambda()>::operator void (*)()() const' (near match)
    7 |   int ages = [7, 5, 3];
      |              ^
a.cc:7:14: note:   no known conversion from 'void (*)()' to 'int'
a.cc:7:18: error: expected unqualified-id before numeric constant
    7 |   int ages = [7, 5, 3];
      |                  ^
a.cc:9:13: error: invalid types 'int[int]' for array subscript
    9 |     if (ages[i] == (current_age + 1)) {
      |             ^
Language: Java

package abc114;

import java.util.Scanner;

public class A {

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


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

import java.util.Scanner;

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

Compiler output:
Main.java:5: error: cannot find symbol
    int n = sc.nextInt();
            ^
  symbol:   variable sc
  location: class Main
1 error
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#define FOR(i, n) for(int i = 0; i < (n); i ++)
#define CIN(type, val) type val; cin >> val;
#define COUT(val) cout << (val) << "\n";
using namespace std;

int main(void){
    CIN(n);
    COUT(n == 7 || n == 5 || n == 3 ? "YES" : "NO");
}

Compiler output:
a.cc:11:10: error: macro "CIN" requires 2 arguments, but only 1 given
   11 |     CIN(n);
      |          ^
a.cc:6:9: note: macro "CIN" defined here
    6 | #define CIN(type, val) type val; cin >> val;
      |         ^~~
a.cc: In function 'int main()':
a.cc:11:5: error: 'CIN' was not declared in this scope
   11 |     CIN(n);
      |     ^~~
a.cc:12:10: error: 'n' was not declared in this scope
   12 |     COUT(n == 7 || n == 5 || n == 3 ? "YES" : "NO");
      |          ^
a.cc:7:28: note: in definition of macro 'COUT'
    7 | #define COUT(val) cout << (val) << "\n";
      |                            ^~~
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  int n =S.size();
  int x = 999;
  for(int i=0;i<n-3;i++){
    int w = (c[i] - "0") * 100 + (c[i+1] - "0") * 10 + (c[i+2] - "0");
    x = min(x, abs(w-753));
  }
  
  cout << x;
  
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'c' was not declared in this scope
   13 |     int w = (c[i] - "0") * 100 + (c[i+1] - "0") * 10 + (c[i+2] - "0");
      |              ^
Language: C++

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

int main(){
  string S;
  cin >> S;
  
  int n =S.size();
  int x = 999;
  for(int i=0;i<N-3;i++){
    int w = (c[i] - "0") * 100 + (c[i+1] - "0") * 10 + (c[i+2] - "0");
    x = min(x, abs(w-753));
  }
  
  cout << x;
  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'N' was not declared in this scope
   12 |   for(int i=0;i<N-3;i++){
      |                 ^
a.cc:13:14: error: 'c' was not declared in this scope
   13 |     int w = (c[i] - "0") * 100 + (c[i+1] - "0") * 10 + (c[i+2] - "0");
      |              ^
Language: C++

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

#include <iostream>
#include <vector>
#include <sstream>
#include <climits>
using namespace std;
 
 
std::vector<std::string> Split(const std::string& s)
{
  std::vector<std::string> v;
  std::stringstream ss{s};
  std::string buf;
  while (std::getline(ss, buf)) {
    if (!s.empty()) 
  		v.emplace_back();
  }
  return v;
}
 
 
int main()
{
  string S;
  cin >> S;
  auto ss = Split(S);
  
  int min_diff = INT_MAX;
  for(int i = 0; i < ss.size() - 2; i++)
  {
    three_num = std::stoi(ss[i] + ss[i+1] + ss[i+2]);
    int diff = abs(three_num - 753);
    if( diff < min_diff)
      min_diff = diff;
  }

  cout << min_diff;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:5: error: 'three_num' was not declared in this scope
   30 |     three_num = std::stoi(ss[i] + ss[i+1] + ss[i+2]);
      |     ^~~~~~~~~
Language: C++

#include <iostream>
#include <vector>
#include <sstream>
#include <climits>
using namespace std;
 
 
std::vector<std::string> Split(const std::string& s)
{
  std::vector<std::string> v;
  std::stringstream ss{s};
  std::string buf;
  while (std::getline(ss, buf)) {
    if (!s.empty()) 
  		v.emplace_back();
  }
  return v;
}
 
 
int main()
{
  string S;
  cin >> S;
  auto ss = Split(S);
  auto int_vec = new int[ss.size() - 2];
  
  for(int i = 0; i < ss.size() - 2; i++)
  {
    int_vec[i] = std::stoi(ss[i] + ss[i+1] + ss[i+2]);
  }
  
  int min_diff = INT_MAX;
  for(auto &it : int_vec)
  {
  	int diff = abs(it - 753);
    if( diff < min_diff)
      min_diff = diff;
  }
  
  cout << min_diff;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:18: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   34 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:34:18: error: 'end' was not declared in this scope; did you mean 'std::end'?
   34 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include <iostream>
#include <vector>
#include <sstream>
#include <climits>
using namespace std;
 
 
std::vector<std::string> Split(const std::string& s)
{
  std::vector<std::string> v;
  std::stringstream ss{s};
  std::string buf;
  while (std::getline(ss, buf, '')) {
    if (!s.empty() && s.back() == ',') 
  		v.emplace_back();
  }
  return v;
}
 
 
int main()
{
  string S;
  cin >> S;
  auto ss = Split(S);
  auto int_vec = new int[ss.size() - 2];
  
  for(int i = 0; i < ss.size() - 2; i++)
  {
    int_vec[i] = std::stoi(ss[i] + ss[i+1] + ss[i+2]);
  }
  
  int min_diff = INT_MAX;
  for(auto &it : int_vec)
  {
  	int diff = abs(it - 753);
    if( diff < min_diff)
      min_diff = diff;
  }
  
  cout << min_diff;
  return 0;
}


Compiler output:
a.cc:13:32: error: empty character constant
   13 |   while (std::getline(ss, buf, '')) {
      |                                ^~
a.cc: In function 'int main()':
a.cc:34:18: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   34 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:34:18: error: 'end' was not declared in this scope; did you mean 'std::end'?
   34 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
Language: C++

#include <iostream>
#include <vector>
using namespace std;
 
 
std::vector<std::string> Split(const std::string& s)
{
  std::vector<std::string> v;
  std::stringstream ss{s};
  std::string buf;
  while (std::getline(ss, buf, ',')) {
    v.push_back(buf);
  }
  return v;
}
 
 
int main()
{
  string S;
  cin >> S;
  auto ss = Split(S);
  auto int_vec = new int[ss.size() - 2];
  
  for(int i = 0; i < ss.size() - 2; i++)
  {
    int_vec[i] = std::stoi(ss[i] + ss[i+1] + ss[i+2]);
  }
  
  int min_diff = INT_MAX;
  for(auto &it : int_vec)
  {
  	int diff = abs(it - 753);
    if( diff < min_diff)
      min_diff = diff;
  }
  
  cout << min_diff;
  return 0;
}


Compiler output:
a.cc: In function 'std::vector<std::__cxx11::basic_string<char> > Split(const std::string&)':
a.cc:9:21: error: variable 'std::stringstream ss' has initializer but incomplete type
    9 |   std::stringstream ss{s};
      |                     ^~
a.cc: In function 'int main()':
a.cc:30:18: error: 'INT_MAX' was not declared in this scope
   30 |   int min_diff = INT_MAX;
      |                  ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include <vector>
  +++ |+#include <climits>
    3 | using namespace std;
a.cc:31:18: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
   31 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::begin
In file included from /usr/include/c++/14/string:53,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/range_access.h:114:37: note: 'std::begin' declared here
  114 |   template<typename _Tp> const _Tp* begin(const valarray<_Tp>&) noexcept;
      |                                     ^~~~~
a.cc:31:18: error: 'end' was not declared in this scope; did you mean 'std::end'?
   31 |   for(auto &it : int_vec)
      |                  ^~~~~~~
      |                  std::end
/usr/include/c++/14/bits/range_access.h:116:37: note: 'std::end' declared here
  116 |   template<typename _Tp> const _Tp* end(const valarray<_Tp>&) noexcept;
      |                                     ^~~
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:6: error: 'x' undeclared (first use in this function)
    5 |   if(x==3||x==5||x==7)
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
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<iostream>
using namespace std;

int main(){
  int x;
  cin >> x;
  if(x==5){
    cout<<'YES'<<endl;}
  else{
    cout<<'NO'<<endl;}
}

Compiler output:
a.cc:1:1: warning: missing terminating " character
    1 | "include<iostream>
      | ^
a.cc:1:1: error: missing terminating " character
    1 | "include<iostream>
      | ^~~~~~~~~~~~~~~~~~
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     cout<<'YES'<<endl;}
      |           ^~~~~
a.cc:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     cout<<'NO'<<endl;}
      |           ^~~~
a.cc: In function 'int main()':
a.cc:6:3: 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: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 | "include<iostream>
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<'NO'<<endl;}
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:17: error: 'endl' was not declared in this scope
   10 |     cout<<'NO'<<endl;}
      |                 ^~~~
a.cc:10:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
 main()
 {
   char s = getchar()
     if (s == '7' || s == '5' || s == '3')
          printf("YES")
     else
       printf("NO")
       }

Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:5:6: error: expected ',' or ';' before 'if'
    5 |      if (s == '7' || s == '5' || s == '3')
      |      ^~
main.c:9:8: error: expected declaration or statement at end of input
    9 |        }
      |        ^
Language: C

#include<stdio.h>
 main()
 {
   char s;
   s = getline();
     if (s == '7' || s == '5' || s == '3')
          printf("YES");
     else
       printf("NO");
       }

Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:5:8: error: too few arguments to function 'getline'
    5 |    s = getline();
      |        ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: declared here
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
Language: C

#include<stdio.h>
 main()
 {
   char s = getline()
     if (s == '7' || s == '5' || s == '3')
          printf("YES")
     else
       printf("NO")
       }

Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:4:13: error: too few arguments to function 'getline'
    4 |    char s = getline()
      |             ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: declared here
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:5:6: error: expected ',' or ';' before 'if'
    5 |      if (s == '7' || s == '5' || s == '3')
      |      ^~
main.c:9:8: error: expected declaration or statement at end of input
    9 |        }
      |        ^
Language: C

#include<stdio.h>
 main()
 {
   int s = getline()
     if (s == 7 || s == 5 || s == 3)
          printf("YES")
     else
       printf("NO")
       }

Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:4:12: error: too few arguments to function 'getline'
    4 |    int s = getline()
      |            ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: declared here
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:5:6: error: expected ',' or ';' before 'if'
    5 |      if (s == 7 || s == 5 || s == 3)
      |      ^~
main.c:9:8: error: expected declaration or statement at end of input
    9 |        }
      |        ^
Language: C

#include<stdio.h>
 main()
 {
   int s = getline()
     if (s == 7 | s == 5 | s == 3)
          printf("YES")
     else
       printf("NO")
       }

Compiler output:
main.c:2:2: error: return type defaults to 'int' [-Wimplicit-int]
    2 |  main()
      |  ^~~~
main.c: In function 'main':
main.c:4:12: error: too few arguments to function 'getline'
    4 |    int s = getline()
      |            ^~~~~~~
In file included from main.c:1:
/usr/include/stdio.h:697:18: note: declared here
  697 | extern __ssize_t getline (char **__restrict __lineptr,
      |                  ^~~~~~~
main.c:5:6: error: expected ',' or ';' before 'if'
    5 |      if (s == 7 | s == 5 | s == 3)
      |      ^~
main.c:9:8: error: expected declaration or statement at end of input
    9 |        }
      |        ^
Language: C++

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


Compiler output:
a.cc:3:2: error: 'cin' does not name a type
    3 |  cin<<x<<endl;
      |  ^~~
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'if'
    5 |   if(x==3||x==5||x==7){
      |   ^~
a.cc:5:3: error: expected '}' before 'if'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:8:3: error: expected unqualified-id before 'else'
    8 |   else{
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:8: error: 'x' was not declared in this scope
    5 |   cin<<x<<endl;
      |        ^
a.cc:5:15: error: expected '}' before ';' token
    5 |   cin<<x<<endl;
      |               ^
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if(x==3||x==5||x==7){
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else{
      |   ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C

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

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


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

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
        // Your code here!
        Scanner sc = new Scanner(System.in);
        int X = s.nextInt()
        if (X == 7 || x == 5 || x == 3){
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
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 == 3 || X == 7 || X==9){
      System.out.println("YES");
    }else{
      System.out.println("NO")
    }
  }
}
  

Compiler output:
Main.java:10: error: ';' expected
      System.out.println("NO")
                              ^
1 error
Language: Java

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

Compiler output:
Main.java:3: error: '{' expected
public class Main(String[] args){
                 ^
Main.java:6: error: illegal start of type
  	if(X == 3 || X == 7 || X==9){
  	^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	    ^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	              ^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	                        ^
Main.java:8: error: illegal start of type
    }else{
     ^
Main.java:9: error: ';' expected
      System.out.println("NO")
                              ^
7 errors
Language: Java

import java.util.:;

public class Main(String[] args){
	Scanner sc = new Scanner(System.in);
  	int X = sc.nextInt();
  	if(X == 3 || X == 7 || X==9){
      System.out.println("YES");
    }else{
      System.out.println("NO")
    }
}


Compiler output:
Main.java:1: error: <identifier> expected
import java.util.:;
                 ^
Main.java:3: error: '{' expected
public class Main(String[] args){
                 ^
Main.java:6: error: illegal start of type
  	if(X == 3 || X == 7 || X==9){
  	^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	    ^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	              ^
Main.java:6: error: <identifier> expected
  	if(X == 3 || X == 7 || X==9){
  	                        ^
Main.java:8: error: illegal start of type
    }else{
     ^
Main.java:9: error: ';' expected
      System.out.println("NO")
                              ^
8 errors
Language: C++

#include <iostream>

using namespace std;

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



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

int main(){
 int y;
 scanf(“%d”,&y);
 if(y==7 || y==5 || y==3){
  printf(“YES”);
 }else{
  printf(“NO”);
 }
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:2: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |  scanf(“%d”,&y);
      |  ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:2: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |  scanf(“%d”,&y);
      |  ^~~~~
main.c:3:2: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:8: error: stray '\342' in program
    3 |  scanf(<U+201C>%d<U+201D>,&y);
      |        ^~~~~~~~
main.c:3:9: error: expected expression before '%' token
    3 |  scanf(“%d”,&y);
      |         ^
main.c:3:11: error: stray '\342' in program
    3 |  scanf(<U+201C>%d<U+201D>,&y);
      |                  ^~~~~~~~
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf(“YES”);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:10: error: stray '\342' in program
    5 |   printf(<U+201C>YES<U+201D>);
      |          ^~~~~~~~
main.c:5:14: error: stray '\342' in program
    5 |   printf(<U+201C>YES<U+201D>);
      |                     ^~~~~~~~
main.c:5:11: error: 'YES' undeclared (first use in this function)
    5 |   printf(“YES”);
      |           ^~~
main.c:5:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    7 |   printf(“NO”);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:10: error: stray '\342' in program
    7 |   printf(<U+201C>NO<U+201D>);
      |          ^~~~~~~~
main.c:7:13: error: stray '\342' in program
    7 |   printf(<U+201C>NO<U+201D>);
      |                    ^~~~~~~~
main.c:7:11: error: 'NO' undeclared (first use in this function)
    7 |   printf(“NO”);
      |           ^~
Language: Java

package archiveBeginner;

import java.util.Scanner;

public class SevenFiveThree {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner sc = new Scanner(System.in);

		int X = sc.nextInt();

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

	}

}


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

import java.util.*;

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

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in());
		                               ^
  symbol:   method in()
  location: class System
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:4: error: <identifier> expected
	public class void main(String[] args){
	            ^
1 error
Language: Java

import java.util.*;

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

Compiler output:
Main.java:4: error: '{' expected
	public class main(String[] args){
	                 ^
Main.java:7: error: illegal start of type
		if(n == 3 || n == 5 || n == 7){
		^
Main.java:7: error: <identifier> expected
		if(n == 3 || n == 5 || n == 7){
		    ^
Main.java:7: error: <identifier> expected
		if(n == 3 || n == 5 || n == 7){
		              ^
Main.java:7: error: <identifier> expected
		if(n == 3 || n == 5 || n == 7){
		                        ^
Main.java:9: error: illegal start of type
		}else{
		 ^
6 errors
Language: Java

import java.util.*;

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

Compiler output:
Main.java:4: error: ';' expected
	public class main{String[] args}{
	                               ^
1 error
Language: C

#include<studio>
 
int main(void){
	
  int x;
  scanf("%d",&x);
  if(x==3||x==5||x==7){
  	printf("YES\n");
  }else{
  	printf("NO\n");
  }
  
 
}

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

#include<stuio>

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

}

Compiler output:
main.c:1:9: fatal error: stuio: No such file or directory
    1 | #include<stuio>
      |         ^~~~~~~
compilation terminated.
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:7:16: error: lvalue required as left operand of assignment
    7 |   if(a==3||a==5||a=7){
      |      ~~~~~~~~~~^~~
Language: C

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


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

#include <iostream>
using namespace std;
int main() {
   int X;
   cin >> X;
   switch (X) {
   case 3:
   case 5:
   case 7:
      cout << "YES";
      break;
   else:
      cout << "NO";
      break;
   }
   cout << endl;
   return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:4: error: 'else' without a previous 'if'
   12 |    else:
      |    ^~~~
a.cc:12:8: error: expected primary-expression before ':' token
   12 |    else:
      |        ^
Language: C++

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

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


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

#include<stdio.h>

void main(){

	int i;

	scanf("%d",&X);

	if(i==7||i==5||i==3)
		puts("YES");
	else
		puts("NO");

}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'X' undeclared (first use in this function)
    7 |         scanf("%d",&X);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

# A

s = input() # 1行読み込む（文字列）
X = int(s) # 文字列を数字に変換

if X == 3 or X == 5 or X == 7:
    print("YES")
else:
    print("NO")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #A
    1 | # A
      |   ^
a.cc:3:13: error: stray '#' in program
    3 | s = input() # 1行読み込む（文字列）
      |             ^
a.cc:4:12: error: stray '#' in program
    4 | X = int(s) # 文字列を数字に変換
      |            ^
a.cc:3:1: error: 's' does not name a type
    3 | s = input() # 1行読み込む（文字列）
      | ^
Language: C++

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


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:4:16: error: expected ',' or ')', found "i"
    4 | #define rep(ll i = 0;i < n;i++)
      |                ^
Language: C++

#include <iostream>
int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |     ^~~~
a.cc:2:10: error: expected primary-expression before 'int'
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |          ^~~
a.cc:2:10: error: expected '}' before 'int'
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |         ~^~~
a.cc:2:21: error: 'cin' in namespace 'std' does not name a type
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |                     ^~~
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:2:27: error: expected unqualified-id before 'if'
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |                           ^~
a.cc:2:66: error: expected unqualified-id before 'else'
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |                                                                  ^~~~
a.cc:2:88: error: expected unqualified-id before 'return'
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |                                                                                        ^~~~~~
a.cc:2:97: error: expected declaration before '}' token
    2 | int main{int i;std::cin>i;if(i==3||i==5||i==7){std::cout<<"YES";}else{std::cout<<"NO";}return 0;}
      |                                                                                                 ^
Language: C++

#include <iostream>
using namespace std;

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

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

include<iostream>

void main(){

  int X;
  cin >> X;
  strings ans;

  if(X == 7 || X == 5 || X == 3){

    ans = "Yes";

  }else{

    ans = "No";

  }

  cout << ans << endl;

}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
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;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:38: error: 'YES' was not declared in this scope
    7 |   if( x==3 || x==5 || x==7 ) cout << YES << endl;
      |                                      ^~~
a.cc:8:38: error: 'NO' was not declared in this scope
    8 |   else                       cout << NO << endl;
      |                                      ^~
Language: Java

int X;

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


Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
int X;
^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
if(X==3 || X==5 || X==7){
^
Main.java:5: error: class, interface, enum, or record expected
}else{
^
Main.java:7: error: class, interface, enum, or record expected
}
^
4 errors
Language: C

#include <stdio.h>

int main(){
    int x;
    scans("%d", &x);
    printf("%s", (x == 7 || x == 5 || x == 3) ? "YES" : "NO");
    return 0;
}

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

import java.util.Scanner

object Main extends App {
  val sc = new Scanner(System.in)
  val N = sc.nextInt()
  println {
    N match {
      case 3|5|7 => "YES"
      case _ => "NO"
    }
  }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C

#include<studio.h>

int main(void){

	int B;
	scanf("%d",&B);
	if(B==7||B==5||B==3){

		printf("YES\n");

			}else{

		printf("NO\n");

			}

return 0;

}

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

#include<stdio.h>

int main(void){

	int a;

	scanf("%d",&a);

	if(a==7 || a==5 || a=3){

		printf("YES");

			}else{

		printf("NO");

			}

return 0;

}

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

#include<studio.h>

int main(void){

	int a;

	scanf("%d",&a);

	if(a==7 || a==5 || a=3){

		printf("YES");

			}else{

		printf("NO");

			}

return 0;

}

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