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

#include<bits/stdc++.h>
using namespace std;
int n[20],s;
int fc(int n1)
{
	int i;
	for(i=0;n1!=0;i++)
	{
		n[i]=n1%10;
		n1/=10;
	}
	return i;
}

int main()
{
	scanf("%d",&s);
	int t=fc(s);
	int min_=0
	for(int i=t-3;i>=0;i++)
	{
		int f=a[i]*100+a[i+1]*10+a[i+2];
		if(abs(f-753)<abs(min_-753))
			min_=f;
	}
	printf("%d",main_);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ',' or ';' before 'for'
   20 |         for(int i=t-3;i>=0;i++)
      |         ^~~
a.cc:20:23: error: 'i' was not declared in this scope
   20 |         for(int i=t-3;i>=0;i++)
      |                       ^
a.cc:26:21: error: 'main_' was not declared in this scope; did you mean 'min_'?
   26 |         printf("%d",main_);
      |                     ^~~~~
      |                     min_
Language: C

#include<stdio.h>
int main(void){
int no;
scanf("%d",&no);
switch(no){
case 1;puts("No"); break;
case 2:puts("No"); break;
case 3:puts("Yes"); break;
case 4:puts("No"); break;
case 5:puts("Yes"); break;
case 6:puts("No"); break;
case 7:puts("Yes"); break;
case 8:puts("No"); break;
case 9:puts("No"); break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: expected ':' or '...' before ';' token
    6 | case 1;puts("No"); break;
      |       ^
main.c:6:8: warning: statement will never be executed [-Wswitch-unreachable]
    6 | case 1;puts("No"); break;
      |        ^~~~~~~~~~
Language: C

#include<stdio.h>
int main(void){
int no;
scanf("%d",&no);
swich(no){
case 1;puts("No"); break;
case 2:puts("No"); break;
case 3:puts("Yes"); break;
case 4:puts("No"); break;
case 5:puts("Yes"); break;
case 6:puts("No"); break;
case 7:puts("Yes"); break;
case 8:puts("No"); break;
case 9:puts("No"); break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    5 | swich(no){
      | ^~~~~
main.c:5:10: error: expected ';' before '{' token
    5 | swich(no){
      |          ^
      |          ;
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main()
{
	int *s;
	int n[10], min, i, j;
	scanf("%ls", s);
	for (i = 0; *(s + i) != '\0'; i++) {
		n[i] = atoi(&s[i]);
	}
	int a[i-2], b[i-2];
	for (j = 0; j < i - 2; j++) {
		a[j] = 100*n[j] + 10*n[j+1] + n[j+2];
	}
	min = abs(753-a[0]);
	for (j = 1; j < i - 2; j++) {
		if (min > abs(753-a[j])) {
			min = abs(753-a[j]);
		}
	}
	printf("%d\n", min);
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: cannot convert 'int*' to 'const char*'
   11 |                 n[i] = atoi(&s[i]);
      |                             ^~~~~
      |                             |
      |                             int*
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/c++/14/stdlib.h:36,
                 from a.cc:2:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
Language: C

#include<stdio.h>
int main(void){
int no;
scanf_s("%d",&no);
swich(no){
case 1;puts("No"); break;
case 2:puts("No"); break;
case 3:puts("Yes"); break;
case 4:puts("No"); break;
case 5:puts("Yes"); break;
case 6:puts("No"); break;
case 7:puts("Yes"); break;
case 8:puts("No"); break;
case 9:puts("No"); break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:1: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 | scanf_s("%d",&no);
      | ^~~~~~~
      | scanf
main.c:5:1: error: implicit declaration of function 'swich' [-Wimplicit-function-declaration]
    5 | swich(no){
      | ^~~~~
main.c:5:10: error: expected ';' before '{' token
    5 | swich(no){
      |          ^
      |          ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: expected ';' before 'else'
   10 |     std::cout << "YES"
      |                       ^
      |                       ;
   11 |   else
      |   ~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> n;
      |   ^~~
      |   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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> n;
      |   ^~~
      |   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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout << "YES"
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define mp make_pair
#define pb push_back
#define INF 2147438647
#define nl '\n'
#define si(i) scanf("%d", &i);
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;

string n;
int mi = INF;

int main(){
    cin >> n;
    int lnt = n.size();
    for( int i1 = 0 ;  i1 < lnt ; i1++ ){
        for( int i2 = i1 + 1 ; i2 < lnt  ; i2++ ){
            for( int i3 = i2 + 1 ; i3 < lnt ; i3++ ){
                int x = (int(s[i1]) - '0') * 100 + (int(s[i2]) - '0' ) * 10 + ( int(s[i3]) - '0);
                mi = min( abs(x - 753), mi);
            }
        }
    }
    cout << mi << nl;
}


Compiler output:
a.cc:23:94: warning: missing terminating ' character
   23 |                 int x = (int(s[i1]) - '0') * 100 + (int(s[i2]) - '0' ) * 10 + ( int(s[i3]) - '0);
      |                                                                                              ^
a.cc:23:94: error: missing terminating ' character
   23 |                 int x = (int(s[i1]) - '0') * 100 + (int(s[i2]) - '0' ) * 10 + ( int(s[i3]) - '0);
      |                                                                                              ^~~~
a.cc: In function 'int main()':
a.cc:23:30: error: 's' was not declared in this scope
   23 |                 int x = (int(s[i1]) - '0') * 100 + (int(s[i2]) - '0' ) * 10 + ( int(s[i3]) - '0);
      |                              ^
a.cc:24:44: error: expected ')' before ';' token
   24 |                 mi = min( abs(x - 753), mi);
      |                                            ^
      |                                            )
a.cc:23:79: note: to match this '('
   23 |                 int x = (int(s[i1]) - '0') * 100 + (int(s[i2]) - '0' ) * 10 + ( int(s[i3]) - '0);
      |                                                                               ^
Language: Java

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

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

#include <iostream>

using namespace std;

void calc(int N)
{
    int map[100] = {};
    for (int i = 0; i < N; i++)
    {
        if (sosuu(i) == false)
        {
            continue;
        }
        map[i] = divide(i, N);
    }

    int ans3 = 0, ans5 = 0;
    for (int i = 0; i < N; i++)
    {
        if (3 <= map[i] && map[i] < 5)
            ans3++;
        if (5 <= map[i])
            ans5++;
    }
    cout << ans3 * ans5 * (ans5 - 1) << endl;
}

bool sosuu(int i)
{
    for (int j = 2; j < i / 2; j++)
    {
        if (i % j == 0)
            return false;
    }

    return true;
}

int divide(int i, int k)
{
    int ans = 0;
    while (k % i == 0)
    {
        ans++;
        k = k / i;
    }
    return ans;
}

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

    calc(N);
}

Compiler output:
a.cc: In function 'void calc(int)':
a.cc:10:13: error: 'sosuu' was not declared in this scope
   10 |         if (sosuu(i) == false)
      |             ^~~~~
a.cc:14:18: error: 'divide' was not declared in this scope
   14 |         map[i] = divide(i, N);
      |                  ^~~~~~
Language: C++

#include <stdio.h>
#include <string.h>
#include <stdlib.h>

int main(void){
	char buf[64];
	int num=strlen(buf)-2;
	int i;
	int h = 10;
	int h1 = 10;
	int m1 = 10;
	int l1 = 10;
	int l = 10;
	int val;
	int m = 10;

	scanf_s("%s",buf);

	for(i=0;i<strlen(buf)-2;i++){
		val = abs(7-(buf[i]-'0'));
		if(h > val){
			h = val;
			num = i;
			h1 = buf[i]-'0';
		}
	}
	printf("%d\n",h);

	for(i=num+1;i<strlen(buf)-1;i++){
		val = abs(5-(buf[i]-'0'));
		if(m > val){
			m = val;
			num = i;
			m1 = buf[i]-'0';
		}
	}

	for(i=num+1;i<strlen(buf);i++){
		val = abs(3-(buf[i]-'0'));
		if(l > val){
			l = val;
			l1 = buf[i]-'0';
		}
	}

	printf("%d",abs(753-(h1*100+m1*10+l1)));

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:17:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
   17 |         scanf_s("%s",buf);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <iostream>

int main()
{
    using namespace std;
    //----------------
    
    int a;
    cin >> a;
    if( a == 3 || a == 5 || a== 7 )
    { cout << "Yes"; }
    else
    { cout  << "No" }
    
    //----------------
    return 0;
}

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

#include<stdio.h>
#include<stdlib.h>

 int main(void)
 {
     char s[10];
     int num[10];
     int n,count = 0;

    gets(s);

    for(int i=0; s[i] != '\0' ;i++)
    {
        num[i] = s[i] - '0';
        count++;
    }

    n = abs(753-(num[0]*100 + num[1]*10 + num[2]));

    for(int i=1; i < count-2 ;i++)
    {
        if(abs(753-(num[i]*100+num[i+1]*10+num[i+2])) < n)
            n= abs(753-(num[i]*100+num[i+1]*10+num[i+2]));
    }

    printf("%d",n);

     return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
   10 |     gets(s);
      |     ^~~~
      |     getw
Language: Java



import java.util.*;
import java.lang.*;
import java.io.*;


public class Ideone
{
	 static int ans=0;
	 static int m;
	public static void main (String[] args) throws java.lang.Exception
	{
		  Scanner in = new Scanner(System.in);
		 m=in.nextInt();
		 generate(0,0,0,0);
		  System.out.println(ans);
	}
	static void generate(long n,int s,int f,int t){
	if(n>m) {
		return;
	}
	if(s>=1&&f>=1&&t>=1) {
		ans++;
	
	}
	generate(n*10+7,s+1,f,t);
	generate(n*10+5,s,f+1,t);
	generate(n*10+3,s,f,t+1);
}
}

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

#include <iostream>
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: In function 'int main()':
a.cc:8:17: error: 'YES' was not declared in this scope
    8 |         cout << YES << endl;
      |                 ^~~
a.cc:10:17: error: 'NO' was not declared in this scope
   10 |         cout << NO << endl;
      |                 ^~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:5: error: expected '(' before 'printf'
   15 |     printf("NO");
      |     ^~~~~~
      |     (
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	scanf("%d",&n);
	if(n==7||n==5||n===3)
		printf("YES");
	else
		printf("NO");
	return 0;
}

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

#include<stdio.h>
int main(void){
  int a;
scanf("%d",&a);
if(A=7){
printf("YES");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:4: error: 'A' undeclared (first use in this function)
    5 | if(A=7){
      |    ^
main.c:5:4: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 | scanf_s("%d", &i);
      | ^~~~~~~
      | scanf
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: 'else' without a previous 'if'
    6 |     else if(x==3)
      |     ^~~~
Language: C++

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

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

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'else' without a previous 'if'
   11 |   else if
      |   ^~~~
main.c:12:5: error: expected '(' before 'printf'
   12 |     printf("NO");
      |     ^~~~~~
      |     (
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: lvalue required as left operand of assignment
    5 | if(X=3 ||X=5||X=7){
      |            ~^~~
a.cc:9:13: error: expected ';' before '}' token
    9 | printf("NO")}
      |             ^
      |             ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:13: error: lvalue required as left operand of assignment
    5 | if(X=3 ||X=5||X=7){
      |            ~^~~
a.cc:9:13: error: expected ';' before '}' token
    9 | printf("NO")}
      |             ^
      |             ;
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:4: error: 'else' without a previous 'if'
    6 |    else if(x==3)
      |    ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'else' without a previous 'if'
   14 |   else
      |   ^~~~
Language: C++

X = int(input())
if X != 3 and X != 5 and X != 7:
  print('NO')
else:
  print('YES')

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

#include <stdio.h>

int main()
{
  	int n;
	scanf("%d", &n);
  
  	if (n = 7 || n = 5 || n = 3){
    	printf("Yes");
    } else {
    	printf("No");
    }
}

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

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

Compiler output:
main.c: In function 'main':
main.c:14:3: error: 'else' without a previous 'if'
   14 |   else{
      |   ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
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: In function 'int main()':
a.cc:14:6: error: expected '}' at end of input
   14 |     }
      |      ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include <algorithm>
#include <string>
#include <math.h>
#include<map>
#include <utility>
using namespace std;
#define REP(i,n) for(int i=0;i<n;i++)
typedef unsigned long ul;
typedef pair<ul, ul> P;
 
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:14:5: error: 'cin' was not declared in this scope
   14 |     cin >> n;
      |     ^~~
a.cc:6:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    5 | #include <utility>
  +++ |+#include <iostream>
    6 | using namespace std;
a.cc:16:9: error: 'cout' was not declared in this scope
   16 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:16:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:6:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    5 | #include <utility>
  +++ |+#include <ostream>
    6 | using namespace std;
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |         cout<<"NO"<<endl;
      |                     ^~~~
a.cc:18:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

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

#include <bits/stdc++.h>
using namespace std;
#define MOD 1000000007
//#define INF 10000000000000009
#define INF 9223372036854775807
typedef long long ll;
#define REP(i,n) for(int i=0;i<(n);++i)
#define OREP(i,n) for(int i=1;i<=(n);++i)
#define ORREP(i,n) for(int i=(n);i>=1;--i)
#define ZREP(i,n) for(int i=1;i<(n);++i)
#define RREP(i,n) for(int i=(n)-1;i>=0;--i)
#define rollcall cout<<"I'm Sucu."<<endl;
#define YES(s) s?cout << "YES" << endl:cout << "NO" << endl
#define Yes(s) s?cout << "Yes" << endl:cout << "No" << endl
#define Taka(s) s?cout << "Takahashi" << endl:cout << "Aoki" << endl
#define out(s,t,u) s?cout << t << endl:cout << u << endl
#define int ll
#define Endl endl


signed main(){
    int X;
    xin >> X;
    YES(X==3||X==5||X==7);
    return 0;
}   


Compiler output:
a.cc: In function 'int main()':
a.cc:23:5: error: 'xin' was not declared in this scope; did you mean 'sin'?
   23 |     xin >> X;
      |     ^~~
      |     sin
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:7:33: error: extended character “ is not valid in an identifier
    7 |   if (x==3||x==5||x==7){cout << “YES” << endl;
      |                                 ^
a.cc:7:33: error: extended character ” is not valid in an identifier
a.cc:8:19: error: extended character “ is not valid in an identifier
    8 |   } else {cout << “NO” << endl;}
      |                   ^
a.cc:8:19: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:33: error: '\U0000201cYES\U0000201d' was not declared in this scope
    7 |   if (x==3||x==5||x==7){cout << “YES” << endl;
      |                                 ^~~~~
a.cc:8:19: error: '\U0000201cNO\U0000201d' was not declared in this scope
    8 |   } else {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:8:13: error: extended character “ is not valid in an identifier
    8 |     cout << “YES” << endl;
      |             ^
a.cc:8:13: error: extended character ” is not valid in an identifier
a.cc:10:12: error: extended character “ is not valid in an identifier
   10 |    cout << “NO” << endl;}
      |            ^
a.cc:10:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:8:13: error: '\U0000201cYES\U0000201d' was not declared in this scope
    8 |     cout << “YES” << endl;
      |             ^~~~~
a.cc:10:12: error: '\U0000201cNO\U0000201d' was not declared in this scope
   10 |    cout << “NO” << endl;}
      |            ^~~~
Language: C

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

Compiler output:
main.c:1:78: warning: extra tokens at end of #include directive
    1 | #include<stdio.h>                                                            2
      |                                                                              ^
main.c: In function 'main':
main.c:13:11: error: expected declaration or statement at end of input
   13 |           return 0;
      |           ^~~~~~
Language: C++

#include<stdio.h>
int main(void){
int no;
scanf_s("%d",&no);
swich(no){
case 1;puts("No"); break;
case 2:puts("No"); break;
case 3:puts("Yes"); break;
case 4:puts("No"); break;
case 5:puts("Yes"); break;
case 6:puts("No"); break;
case 7:puts("Yes"); break;
case 8:puts("No"); break;
case 9:puts("No"); break;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    4 | scanf_s("%d",&no);
      | ^~~~~~~
      | scanf
a.cc:5:1: error: 'swich' was not declared in this scope
    5 | swich(no){
      | ^~~~~
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;

	return 0;
}

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

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

Compiler output:
a.cc:2:16: error: expected identifier before ';' token
    2 | using namespace;
      |                ^
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>>n;
      |         ^~~
      |         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:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         cout<<"Yes"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         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:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |         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 <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected ';' before 'if'
    7 |         cin >> x
      |                 ^
      |                 ;
    8 |         if (x == 7 || x == 5 || x == 3)
      |         ~~       
a.cc:12:9: error: 'else' without a previous 'if'
   12 |         else
      |         ^~~~
Language: C

#include<stdio.h>

int main(void) {
	int X;

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

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:17: error: implicit declaration of function 'pritnf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |                 pritnf("NO");
      |                 ^~~~~~
      |                 printf
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:3:1: error: expected identifier or '(' before '}' token
    3 | }
      | ^
Language: C++

#include "bits/stdc++.h"

using namespace std;

#define print(s) cout << (s) << endl;
#define sp(x) cout<<setprecision(x);
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) FOR(i,0,n) 
#define all(a) (a).begin(), (a).end()
#define inf 10000000
 
int main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n; cin>>n;
    if (n==5||n==3||n==7){
        cout<<"Yes"<<endl;
    } else {
        cout<<"No"<<endl;
    }33
    
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: expected ';' before 'return'
   20 |     }33
      |        ^
      |        ;
   21 | 
   22 | return 0;
      | ~~~~~~
Language: C++

#include <cstdio>
#include <iostream>
#include <vector>
#include <set>
#include <cstring>
#include <string>
#include <map>
#include <cmath>
#include <ctime>
#include <algorithm>
#include <bitset>
#include <queue>
#include <sstream>
using namespace std;
#define mp make_pair
#define pb push_back
#define re return
#define fi first
#define se second
typedef vector<int> vi;
typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;
typedef vector<pii> vpii;
typedef vector<string> vs;
typedef vector<vi> vvi;
int main() {
    //freopen("input.txt","r",stdin);
	//freopen("output.txt","w",stdout);
	int a;
	cin>>a;
	if(a==7 || a==5 || a==3)cout<<"YES"<<endl;
	else cout<<NO"<<endl;
    return 0;
}

Compiler output:
a.cc:33:22: warning: missing terminating " character
   33 |         else cout<<NO"<<endl;
      |                      ^
a.cc:33:22: error: missing terminating " character
   33 |         else cout<<NO"<<endl;
      |                      ^~~~~~~~
a.cc: In function 'int main()':
a.cc:33:20: error: 'NO' was not declared in this scope
   33 |         else cout<<NO"<<endl;
      |                    ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected '(' before '{' token
   10 |   else if{cout<<"No"<<endl;}
      |          ^
      |          (
Language: C++

#include <stdio.h>
#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
using namespace std;
typedef long long ll;

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


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

#include <stdio.h>

int main()
{
	int a;

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

    if(a==3) { 
		printf("YES\n");
	else if(a==5){
		printf("YES\n");
	}
	else if(a==7){
		printf("YES\n");
	}
    else {
		printf("NO\n");
    }

	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '}' before 'else'
   11 |         else if(a==5){
      |         ^~~~
Language: Java

import java.util.*;
/**
 *
 * @author kouki
 */
public class sichigosan {

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

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

#include<iostream>
2.#include<string>
3.#include<vector>
4.#include<algorithm>
5. 
6.using namespace std;
7. 
8.int main()
9.{
10.	int a;
11.        cin >> a;
12.       if(a==3 || a==5 || a==7)cout << "YES" << endl;
13.       else cout << "NO" << endl;
14.       return 0;
15.}


Compiler output:
a.cc:2:3: error: stray '#' in program
    2 | 2.#include<string>
      |   ^
a.cc:3:3: error: stray '#' in program
    3 | 3.#include<vector>
      |   ^
a.cc:4:3: error: stray '#' in program
    4 | 4.#include<algorithm>
      |   ^
a.cc:2:1: error: expected unqualified-id before numeric constant
    2 | 2.#include<string>
      | ^~
a.cc:7:1: error: expected unqualified-id before numeric constant
    7 | 7.
      | ^~
Language: C

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

Compiler output:
main.c:3:1: error: unknown type name 'imt'; did you mean 'int'?
    3 | imt main(void){
      | ^~~
      | int
Language: C

#include <stdio.h>

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


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

#include <stdio.h>

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'scanf' was not declared in this scope
    3 |     scanf("%d", &x);
      |     ^~~~~
a.cc:5:9: error: 'printf' was not declared in this scope
    5 |         printf("YES");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main() {
a.cc:7:9: error: 'printf' was not declared in this scope
    7 |         printf("NO");
      |         ^~~~~~
a.cc:7: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(){
	int N;
	cin >> N;
  	if(N==3||N==5||N==7)cour << "YES" << endl;
  	else cout <<"NO"<<endl;
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: 'cour' was not declared in this scope
    6 |         if(N==3||N==5||N==7)cour << "YES" << endl;
      |                             ^~~~
Language: Java

import java.util.*;
public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    // 整数の入力
    int a = sc.nextInt();
    String result;
    if (a == 7 || a == 5 || a == 3) {
      result = "YES"
    } else {
       result = "NO"; 
    }
    // 出力
    System.out.println(result);
  } 
}

Compiler output:
Main.java:9: error: ';' expected
      result = "YES"
                    ^
1 error
Language: C

#include<stdio.h>

inmt main(void){
  
  int x;
  
  scanf("%d",&x);
  
  if(x == 7||x == 5||x == 3){
    puts("yes");
  }else{
    puts("No");
  }
  
  return 0;
}

Compiler output:
main.c:3:1: error: unknown type name 'inmt'; did you mean 'int'?
    3 | inmt main(void){
      | ^~~~
      | int
Language: C++

#inculude<iostream>

using namespace std;
int main(){
  int x;
  cin>>x;
  if(x==3)cout<<"Yes"<<endl;
  if(x==5)cout<<"Yes"<<endl;
  if(x==7)cout<<"Yes"<<endl;
  else{cout<<"No"<<endl;}
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude<iostream>
      |  ^~~~~~~~
      |  include
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 | #inculude<iostream>
a.cc:7:11: error: 'cout' was not declared in this scope
    7 |   if(x==3)cout<<"Yes"<<endl;
      |           ^~~~
a.cc:7:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:24: error: 'endl' was not declared in this scope
    7 |   if(x==3)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 | #inculude<iostream>
a.cc:8:11: error: 'cout' was not declared in this scope
    8 |   if(x==5)cout<<"Yes"<<endl;
      |           ^~~~
a.cc:8:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   if(x==5)cout<<"Yes"<<endl;
      |                        ^~~~
a.cc:8:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:9:11: error: 'cout' was not declared in this scope
    9 |   if(x==7)cout<<"Yes"<<endl;
      |           ^~~~
a.cc:9:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:24: error: 'endl' was not declared in this scope
    9 |   if(x==7)cout<<"Yes"<<endl;
      |                        ^~~~
a.cc:9:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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++

import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.math.*;
import java.util.*;

public class Main {

	public static void main(String[] args) throws IOException {
		 FastReader in = new FastReader(System.in);
		PrintWriter out = new PrintWriter(System.out);
		int n = in.nextInt();
		if (n == 7 || n == 3 || n == 5) {
			out.println("YES");
		} else {
			out.println("NO");
		}
		out.flush();
		out.close();

	}

	static class FastReader {
		StringTokenizer st;
		BufferedReader br;

		public FastReader(InputStream s) {
			br = new BufferedReader(new InputStreamReader(s));
		}

		public FastReader(FileReader fileReader) {
			br = new BufferedReader(fileReader);
		}

		public String next() throws IOException {
			while (st == null || !st.hasMoreTokens())
				st = new StringTokenizer(br.readLine());
			return st.nextToken();
		}

		public int nextInt() throws IOException {
			return Integer.parseInt(next());
		}

		public double nextDouble() throws IOException {
			return Double.parseDouble(next());
		}

		public long nextLong() throws IOException {
			return Long.parseLong(next());
		}

		public String nextLine() throws IOException {
			return br.readLine();
		}

		public boolean ready() throws IOException {
			return br.ready();
		}
	}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.FileReader;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.IOException;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.InputStream;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: 'import' does not name a type
    7 | import java.math.*;
      | ^~~~~~
a.cc:7:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:8:1: error: 'import' does not name a type
    8 | import java.util.*;
      | ^~~~~~
a.cc:8:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:10:1: error: expected unqualified-id before 'public'
   10 | public class Main {
      | ^~~~~~
Language: C++

print('YES') if input() in ('7','5','3') else print('NO')

Compiler output:
a.cc:1:7: warning: multi-character character constant [-Wmultichar]
    1 | print('YES') if input() in ('7','5','3') else print('NO')
      |       ^~~~~
a.cc:1:53: warning: multi-character character constant [-Wmultichar]
    1 | print('YES') if input() in ('7','5','3') else print('NO')
      |                                                     ^~~~
a.cc:1:6: error: expected constructor, destructor, or type conversion before '(' token
    1 | print('YES') if input() in ('7','5','3') else print('NO')
      |      ^
Language: C++

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>

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

    if(a==3)cout<<"YES";
    else if(a==5)cout<<"YES";
    else if(a==7)cout<<"YES";
    else cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     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:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     if(a==3)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:11:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     else if(a==5)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:12:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     else if(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:13:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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;
  if(n==3 || n== 5 || n== 7)cout << YES << endl;
  else cout << NO << endl;
  return 0;
}

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

#include<iostream>
#include<algorithm>
#include<string>
#include<math.h>

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

    if(a==3)cout>>"YES";
    else if(a==5)cout>>"YES";
    else if(a==7)cout>>"YES";
    else cout>>"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |     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:10:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     if(a==3)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:11:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     else if(a==5)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:12:18: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     else if(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:13:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     else cout>>"NO";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

int main() {
  int y;
  cin >> y;
  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:6: error: 'a' was not declared in this scope
    7 |   if(a==3||a==5||a==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");
    }
    return 0;
}

Compiler output:
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | int main{
      |         ^