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

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

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

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

Compiler output:
a.cc:1:23: error: missing terminating > character
    1 | #include<bits/stdc++.h
      |                       ^
Language: C++

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

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

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

#include <cstdio>

using namespace std;

int main() {
  int x;
  scanf("%d", &x);
  if (x == y || x == 3 || x == 5)
    puts("YES");
  else
    puts("NO");
  return 0;
}

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

# include <bits/stdc++.h>
# define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(int i=((int)(n)); i>0; --i)
# define ALL(x) (x).begin(), (x).end()
# define SZ(x) ((int)(x).size())
# define pb push_back
# define optimize_cin() cin.tie(0); ios::sync_with_stdio(false)
using namespace std;
using lint = long long;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }

int ctoi(const char c)
{
    if ('0' <= c && c <= '9') return {c - '0'};
    return -1;
}

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

    vector<int> li;
    for (int i = 0; i < S.length() - 3; ++i)
    {
        int a = ctoi(S[i]);
        int b = ctoi(S[i + 1]);
        int c = ctoi(S[i + 2]);

        int d = 100*a + 10*b + c;

        li.pb(abs(753 - d));
    }

    sort(li.rbegin(), li.rend());

    cout << li[0] << "\n";

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:27: error: request for member 'length' in 'S', which is of non-class type 'int'
   27 |     for (int i = 0; i < S.length() - 3; ++i)
      |                           ^~~~~~
a.cc:29:23: error: invalid types 'int[int]' for array subscript
   29 |         int a = ctoi(S[i]);
      |                       ^
a.cc:30:23: error: invalid types 'int[int]' for array subscript
   30 |         int b = ctoi(S[i + 1]);
      |                       ^
a.cc:31:23: error: invalid types 'int[int]' for array subscript
   31 |         int c = ctoi(S[i + 2]);
      |                       ^
Language: C++

# include <iostream>

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:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> X;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:10:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:14:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         cout << "NO" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

import java.io.*;
import java.text.*;
import java.util.*;

public class Main{

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

}

Compiler output:
Main.java:8: error: ';' expected
		Scanner sc = new Scanner(System.in)
		                                   ^
Main.java:13: error: ')' or ',' expected
			System.out.println("NO";)
			                       ^
Main.java:13: error: illegal start of expression
			System.out.println("NO";)
			                        ^
3 errors
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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

        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:13:23: error: expected primary-expression before 'int'
   13 |             int con = int.Parse(Console.ReadLine());
      |                       ^~~
a.cc:16:17: error: 'Console' was not declared in this scope
   16 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
   20 |                 Console.WriteLine("NO");
      |                 ^~~~~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

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


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:24:6: error: expected ';' after class definition
   24 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ConsoleApp2::Program::Main(int*)':
a.cc:13:23: error: expected primary-expression before 'int'
   13 |             int con = int.Parse(Console.ReadLine());
      |                       ^~~
a.cc:16:17: error: 'Console' was not declared in this scope
   16 |                 Console.WriteLine("YES");
      |                 ^~~~~~~
a.cc:20:17: error: 'Console' was not declared in this scope
   20 |                 Console.WriteLine("NO");
      |                 ^~~~~~~
a.cc:22:13: error: 'Console' was not declared in this scope
   22 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,a,n) for(int i=a;i<n;i++)
using namespace std;
typedef long long ll;
const int maxn=1e9;
void read(int &xxxxx){scanf("%d",&xxxxx);}

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


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

#include <iostream>
 
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:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  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:8:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |  if(N==3||N==5||N==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:8:36: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |  if(N==3||N==5||N==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:7: 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:19: 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 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:10:29: error: 'YES' was not declared in this scope
   10 |  if(N==3||N==5||N==7) cout<<YES<<endl;
      |                             ^~~
a.cc:11:13: error: 'NO' was not declared in this scope; did you mean 'N'?
   11 |  else cout<<NO<<endl;
      |             ^~
      |             N
Language: C++

#include <iostream>

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:6:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |  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:8:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |  if(N==3||N==5||N==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:8:29: error: 'YES' was not declared in this scope
    8 |  if(N==3||N==5||N==7) cout<<YES<<endl;
      |                             ^~~
a.cc:8:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |  if(N==3||N==5||N==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:7: 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:13: error: 'NO' was not declared in this scope; did you mean 'N'?
    9 |  else cout<<NO<<endl;
      |             ^~
      |             N
a.cc:9:17: 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<stdio.h>
 int main(void)
 {
     int X;
     scanf("%d",&X);
     if(X==3 || X==5 || X==7)
     printf("YES");
     else
     printf("NO");
     return ;
 }

Compiler output:
main.c: In function 'main':
main.c:10:6: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   10 |      return ;
      |      ^~~~~~
main.c:2:6: note: declared here
    2 |  int main(void)
      |      ^~~~
Language: C

#include<stdio.h>
int main(void)
{
 int X;
 if(X=7||X=5||X=3)
  printf("yes");
 else
  printf("no");
 
return 0;
}

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

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

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

import sys

a = int(input())
if a > 9 or a < 1 :
    sys.exit()
if a == 3 or a == 5 or a == 7:
    print('YES')
else :
    print('NO')


Compiler output:
a.cc:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('YES')
      |           ^~~~~
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C

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

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

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'YES' was not declared in this scope
    7 |       cout << YES << endl;
      |               ^~~
a.cc:9:15: error: 'YES' was not declared in this scope
    9 |       cout << YES << endl;
      |               ^~~
a.cc:11:14: error: 'YES' was not declared in this scope
   11 |       cout <<YES << endl;
      |              ^~~
a.cc:13:15: error: 'NO' was not declared in this scope
   13 |       cout << NO << endl;
      |               ^~
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to int
        int x = sc.next();
                       ^
1 error
Language: C++

import java.io.*;
import java.util.StringTokenizer;

public class Main{

    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        InputReader in = new InputReader(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Twinkle little = new Twinkle();
        little.star(1, in, out);
        out.close();


    }
static class Twinkle {
        public void star(int testNumber, InputReader in, PrintWriter out) {
            int x = in.nextInt();
            if(x==5|| x==3 || x==7)
                System.out.println("YES");
            else
                System.out.println("NO");
}
}
  


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

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

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

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

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

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

        public boolean hasNext() {
            while (tokenizer == null || !tokenizer.hasMoreTokens()) {
                try {
                    String line = reader.readLine();
                    if (line == null) {
                        return false;
                    }
                    tokenizer = new StringTokenizer(line);
                } catch (IOException e) {
                    throw new RuntimeException(e);
                }
            }
            return true;
        }
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.*;
      | ^~~~~~
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.util.StringTokenizer;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main{
      | ^~~~~~
Language: C++

int main(void) {
  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:2:7: error: 'x' was not declared in this scope
    2 |   if (x == 3 || x == 5 || x == 7) {
      |       ^
a.cc:3:5: error: 'printf' was not declared in this scope
    3 |     printf("YES\n");
      |     ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(void) {
a.cc:5:5: error: 'printf' was not declared in this scope
    5 |     printf("NO\n");
      |     ^~~~~~
a.cc:5:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int x;

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

}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inculude; did you mean #include?
    1 | #inculude<bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     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<bits/stdc++.h>
a.cc:8:25: error: 'cout' was not declared in this scope
    8 |     if(x==5||x==3||x==7)cout<<"YES"<<endl;
      |                         ^~~~
a.cc:8:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:38: error: 'endl' was not declared in this scope
    8 |     if(x==5||x==3||x==7)cout<<"YES"<<endl;
      |                                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inculude<bits/stdc++.h>
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout<<"NO"<<endl;
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     else cout<<"NO"<<endl;
      |                      ^~~~
a.cc:9:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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 == 3 || X == 5 || X == 7)
  {
    cout << "YES";
  }else{
    cout << "NO";
  }
}

Compiler output:
a.cc:2:6: error: expected nested-name-specifier before '.' token
    2 | using.namespace.std;
      |      ^
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 >> X;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: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>
using.namespace.std;

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

Compiler output:
a.cc:2:6: error: expected nested-name-specifier before '.' token
    2 | using.namespace.std;
      |      ^
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 >> X;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc: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: Java

class main{
import java.util.Scanner;

  public static void main(String[] args(){
   Scanner scan = new Scanner(System.in);
	System.out.println("年齢を入力してください。");
    int X=scan.nextInt();
    if(X==3 || X==5||X==7){
    	System.out.println("yes");
    }else{
    	System.out.println("No");
    }
  }
}

Compiler output:
Main.java:2: error: illegal start of type
import java.util.Scanner;
^
Main.java:2: error: <identifier> expected
import java.util.Scanner;
                        ^
Main.java:4: error: ',', ')', or '[' expected
  public static void main(String[] args(){
                                       ^
3 errors
Language: C++

#include "pch.h"
#include <iostream>
using namespace std;

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

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int make()':
a.cc:14:1: warning: no return statement in function returning non-void [-Wreturn-type]
   14 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include<cstdio>
#include <map>
using namespace std;
int N;
int main(){
	cin >> N;
	map<int,int> m;
	for(int i=2;i<=N;i++){
		int s = i;
		for(int j=2;j*j<=N;j++){
			while(s%j==0){
				m[j]++;
				s /= j;
			}
		}
		if(s!=1) m[s]++;	
	}
	int ans = 0;
	int c_2 = 0,c_14 = 0,c_24 = 0,c_74 = 0;
	for(auto x:m){
		int s = x.second;
		if(s>=2) c_2++;
		if(s>=4) c_4++;
		if(s>=24) c_24++;
		if(s>=14) c_14++;
		if(s>=74) c_74++;
	}
	printf("%d\n",(c_2-2)*c_4*(c_4-1)/2 + (c_2-1)*c_24 + (c_4-1)*c_14 + c_74);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:26: error: 'c_4' was not declared in this scope; did you mean 'c_74'?
   24 |                 if(s>=4) c_4++;
      |                          ^~~
      |                          c_74
a.cc:29:31: error: 'c_4' was not declared in this scope; did you mean 'c_74'?
   29 |         printf("%d\n",(c_2-2)*c_4*(c_4-1)/2 + (c_2-1)*c_24 + (c_4-1)*c_14 + c_74);
      |                               ^~~
      |                               c_74
Language: C++

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

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

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

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

#include<iostream>
using namespace std;
int main(){
  int age;
  cin >> age;
  
  if(age != 9 && age != 1 age % 2 != 0){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: expected ')' before 'age'
    7 |   if(age != 9 && age != 1 age % 2 != 0){
      |     ~                    ^~~~
      |                          )
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
    string str;
    string target = "753";
    int ans = 1000;
    cin >> str;
    for(int i=0;i<str.size()-2;i++){
        int cost=0;
        for(int j=0;j<3;j++){
            int sa = abs(str[i+j]-str[j]);
            if(j==0) sa*=100;
            else if(j==1)   sa*=10;
            cost+=sa;
        }
        ans = min(cost,min);
    }
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: no matching function for call to 'min(int&, <unresolved overloaded function type>)'
   17 |         ans = min(cost,min);
      |               ~~~^~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 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/stl_algobase.h:233:5: note: candidate: 'constexpr const _Tp& std::min(const _Tp&, const _Tp&) [with _Tp = int]'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:36: note:   no known conversion for argument 2 from '<unresolved overloaded function type>' to 'const int&'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |                         ~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)'
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:281:5: note:   candidate expects 3 arguments, 2 provided
Language: C

#include<stdio.h>

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

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

#include<stdio.h>

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

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

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


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


}





Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected ';' before 'return'
   12 |         cout<<"NO"
      |                   ^
      |                   ;
   13 |     return 0;
      |     ~~~~~~
Language: C++

#include<iostream>
#include<string>

using namespace std;

int main(){
	int old;
	cin>>old;
	if(old=7||old=5||old=3){
		cout<<"YES";

	}else{
		cout<<"NO";
	}
}

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

<?php
$stdin = trim(fgets(STDIN));
if( $stdin === "7" || $stdin === "5" || $stdin === "3" ){
    echo "YES";
} else {
    echo "NO";
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before '<' token
    1 | <?php
      | ^
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if( $stdin === "7" || $stdin === "5" || $stdin === "3" ){
      | ^~
a.cc:5:3: error: expected unqualified-id before 'else'
    5 | } else {
      |   ^~~~
Language: C++

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

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

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

using System;
using System.Collections.Generic;

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

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


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:6:22: error: 'string' has not been declared
    6 |     static void Main(string[] args)
      |                      ^~~~~~
a.cc:6:31: error: expected ',' or '...' before 'args'
    6 |     static void Main(string[] args)
      |                               ^~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:8:9: error: 'var' was not declared in this scope
    8 |         var age = int.Parse(Console.ReadLine());
      |         ^~~
a.cc:10:14: error: 'age' was not declared in this scope
   10 |         if ((age == 3) || (age == 5) || (age == 7))
      |              ^~~
a.cc:12:13: error: 'Console' was not declared in this scope
   12 |             Console.WriteLine("YES");
      |             ^~~~~~~
a.cc:15:13: error: 'Console' was not declared in this scope
   15 |             Console.WriteLine("NO");
      |             ^~~~~~~
Language: Java


import java.util.Scanner;
public class main {
	public static void main(String[] args) throws Exception {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		String ans = "NO";
		for(int i = 3; i <= 7; i+=2) {
			if(i == n) {
				ans = "YES";
			}
		}
		System.out.println(ans);
		sc.close();
	}
}


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

#include<iostream>
using namespace std;

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

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

#include <iostream>
#include <algorithm>
using namespace std;
 
long long n;
int ans=0;
void dfs(long long x,bool a,bool b,bool c){
  if(x>n)return;
  
  if(a&&b&&c)ans++;
  dfs(x*10+7,true,b,c);
  dfs(x*10+5,a,true,c);
  dfs(x*10+3,a,b,true);
  
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main()
{
    int x[10];
    for (int i = 0; i < 10; i++)
        scanf("%d", &x[i]);

    int minValue = 9999999999;
    for (int i = 0; i < 10 - 2; i++)
    {
        int a = x[i] * 100 + x[i + 1] * 10 + x[i + 2];
        min(abs(753 - a), minValue);
    }

    printf("%d", minValue);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
   11 |     int minValue = 9999999999;
      |                    ^~~~~~~~~~
a.cc:15:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
   15 |         min(abs(753 - a), minValue);
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: Java

import java.util.Scanner;

public class Main1 {

	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int x= scan.nextInt();
		String event ="Seven-Five-Three";
		String S= (String) event.subSequence(0, 5);
		String F= (String) event.subSequence(6, 10);
		String T= (String) event.subSequence(11, 16);
		String num ="";
		if(x==7){
		     num = "Seven";
		}else if(x==5){
			num = "Five";	
		}else if(x==3){
			num = "Three";
		}
		
		if(num.equalsIgnoreCase(S) || num.equalsIgnoreCase(F) || num.equalsIgnoreCase(T)){
			System.out.println("YES");
		}
		else{
			System.out.println("No");
		}
		scan.close();
	}
}


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

#include <stdio.h>
#include <math.h>
int main()
{
    int x[10];
    for (int i = 0; i < 10; i++)
        scanf("%d", &x[i]);

    int minValue = 9999999999;
    for (int i = 0; i < 10 - 2; i++)
    {
        int a = x[i] * 100 + x[i + 1] * 10 + x[i + 2];
        min(abs(753 - a), minValue);
    }

    printf("%d", minValue);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: warning: overflow in conversion from 'long int' to 'int' changes value from '9999999999' to '1410065407' [-Woverflow]
    9 |     int minValue = 9999999999;
      |                    ^~~~~~~~~~
a.cc:13:9: error: 'min' was not declared in this scope; did you mean 'std::min'?
   13 |         min(abs(753 - a), minValue);
      |         ^~~
      |         std::min
In file included from /usr/include/c++/14/bits/specfun.h:43,
                 from /usr/include/c++/14/cmath:3906,
                 from /usr/include/c++/14/math.h:36,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h:281:5: note: 'std::min' declared here
  281 |     min(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
Language: C++

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


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

#include<stdio.h>
#include<string.h>
#include<math.h>
int main()
{
    int length=0,temp[999],i,k,t,flag;
    char digit[999];
    gets(digit);
    length=strlen(digit);
    for(i=0; i<=length-3; i++)
    {
        temp[i]=abs((digit[i]-'0')*100+(digit[i+1]-'0')*10+(digit[i+2]-'0')-753);
    }
    for(t=0; t<=i; t++)
    {
        flag=1;
        for(k=0;k<=i;k++)
            if(temp[t]>temp[k]){flag=0;break;}
        if(flag==1)break;
    }
    printf("%d",temp[t]);
}


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

//inlclude before define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<type_traits>
#include<numeric>
#include<assert.h>
//#include<deque>
#include<iomanip>
#include<set>
#include<tuple>
#include<map>
using namespace std;

//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef pair<int, int> P1;
typedef long long int ll;

//define
#define INF 1e9
#define NUM 1000000007
#define all(x) begin(x), end(x)
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define REP(i,a,b) for(int i=int(a);i<int(b);i++)
#define chmin(a,b) a=min((a),(b))
#define chmax(a,b) a=max((a),(b))


int main(void) {
	int n;
	cin>>n;

	cout<<(n==3 || n==7|| n==5)?"YES":"NO"<<endl;
}





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

import java.util.*;
public class susbus{
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:2: error: class susbus is public, should be declared in a file named susbus.java
public class susbus{
       ^
1 error
Language: C++

#include<iostream>

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

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     cout << "YES";
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:5: 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<stdio.h>
void main()
{
  int x;
  printf("enter the age");
  scanf("%d",&x);
  if(x==3)
    printf("yes");
  if else(x==5)
    printf("yes");
  if else(x==7)
    printf("yes");
  else 
    printf("no");
  
}

Compiler output:
main.c: In function 'main':
main.c:9:6: error: expected '(' before 'else'
    9 |   if else(x==5)
      |      ^~~~
      |      (
main.c:11:6: error: expected '(' before 'else'
   11 |   if else(x==7)
      |      ^~~~
      |      (
Language: C++

#include <iostream>

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

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

#include<stdio.h>

int main(void){
int a
scanf("%d", &a);

if(a==3 && a==5 && a==7){
     printf("YES");
}
else{
 printf("NO");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 | scanf("%d", &a);
      | ^~~~~
main.c:5:14: error: 'a' undeclared (first use in this function)
    5 | scanf("%d", &a);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

#include<stdio.h>

int main(void){
int a
scanf("%d", &a);

if(a==3 || a==5 || a==7){
     printf("YES");
}
else{
 printf("NO");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    5 | scanf("%d", &a);
      | ^~~~~
main.c:5:14: error: 'a' undeclared (first use in this function)
    5 | scanf("%d", &a);
      |              ^
main.c:5:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
int no;
scanf("%d",&no);
switch(no){
case1;puts("No");   break;
case2:puts("No");   break;
case3:puts("Yes");   break;
case4:puts("No");   break;
case5:puts("Yes");   break;
case6:puts("No");   break;
case7:puts("Yes");   break;
case8:puts("No");   break;
case9:puts("No");   break;
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'case1' undeclared (first use in this function)
    6 | case1;puts("No");   break;
      | ^~~~~
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: warning: statement will never be executed [-Wswitch-unreachable]
    6 | case1;puts("No");   break;
      |       ^~~~~~~~~~
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;
      |        ^~~~~~~~~~