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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: invalid types 'int[int]' for array subscript
   12 |         if(age[0]==5 || age[0]==7 || age[0]==3)
      |               ^
a.cc:12:28: error: invalid types 'int[int]' for array subscript
   12 |         if(age[0]==5 || age[0]==7 || age[0]==3)
      |                            ^
a.cc:12:41: error: invalid types 'int[int]' for array subscript
   12 |         if(age[0]==5 || age[0]==7 || age[0]==3)
      |                                         ^
Language: C++

#includen<iostream>

using namespace std;

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #includen; did you mean #include?
    1 | #includen<iostream>
      |  ^~~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #includen<iostream>
a.cc:9:33: error: 'cout' was not declared in this scope
    9 |   if(n == 3 || n == 5 || n == 7)cout << "YES";
      |                                 ^~~~
a.cc:9:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:8: error: 'cout' was not declared in this scope
   10 |   else cout << "NO";
      |        ^~~~
a.cc:10:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: 'K' was not declared in this scope
    6 |   if(K=3||k=5||k=7){
      |      ^
a.cc:6:14: error: lvalue required as left operand of assignment
    6 |   if(K=3||k=5||k=7){
      |             ~^~~
Language: C++

#include<cstdio>
#include<iostream>

int main(void){
  
  int o;
  
  cin>>o;
  
  if(o!=3&&o!=5&&o!=7)
    cout<<"NO"<<endl;
  else
    cout<<"YES"<<endl;
  
  return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>o;
      |   ^~~
      |   std::cin
In file included from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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:11:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout<<"NO"<<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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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:13:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     cout<<"YES"<<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){
  
  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:5:6: error: 'X' undeclared (first use in this function)
    5 |   if(X==3){
      |      ^
main.c:5:6: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <cstdio>
using namespace std;

int main(){

  int X;  cin >> X;
  if(X == 3 or X == 5 or X == 7)cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: 'cin' was not declared in this scope
    6 |   int X;  cin >> X;
      |           ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:33: error: 'cout' was not declared in this scope
    7 |   if(X == 3 or X == 5 or X == 7)cout << "Yes" << endl;
      |                                 ^~~~
a.cc:7:33: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:50: error: 'endl' was not declared in this scope
    7 |   if(X == 3 or X == 5 or X == 7)cout << "Yes" << endl;
      |                                                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <cstdio>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "No" << endl;
      |        ^~~~
a.cc:8:8: 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 |   else cout << "No" << endl;
      |                        ^~~~
a.cc:8:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: Java

import java.util.Scanner;

public class Abc114a{
  public static void main(String [] args){
    Scanner scanner = new Scanner(System.in);
    int number = Integer.parseInt( scanner.nextLine() );
    
    if (number == 3 || number ==5 || number == 7){
      System.out.println("OK");
    }
    else{
      System.out.println("NG");
    }

    scanner.close();
  }
}

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

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> x;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                 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:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                 cout << "YES" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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++

int main() {
  string s;
  int k=0;
  int a,b,c;
  int min =999;
  cin >> s;
  for(int i =0;i<s.size() -2;i++){
    a = (int)s[i];
    b = (int)s[i+1];
    c = (int)s[i+2];
    k = (a-48)*100 + (b-48)*10 + (c-48);
    cout << k << endl;
    if(abs(k - 753)<min) min = abs(k - 753);
   }
  cout << min << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string s;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'min'?
    6 |   cin >> s;
      |   ^~~
      |   min
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << k << endl;
      |     ^~~~
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     cout << k << endl;
      |                  ^~~~
a.cc:13:8: error: 'abs' was not declared in this scope
   13 |     if(abs(k - 753)<min) min = abs(k - 753);
      |        ^~~
a.cc:15:3: error: 'cout' was not declared in this scope
   15 |   cout << min << endl;
      |   ^~~~
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |   cout << min << endl;
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> X;
      |     ^~~
a.cc:5:9: error: 'cout' was not declared in this scope
    5 |         cout << "YES" << endl;
      |         ^~~~
a.cc:5:26: error: 'endl' was not declared in this scope
    5 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "NO" << endl;
      |         ^~~~
a.cc:8:25: error: 'endl' was not declared in this scope
    8 |         cout << "NO" << endl;
      |                         ^~~~
Language: C++

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


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

#include <iostream>
using namepspace 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:7: error: expected nested-name-specifier before 'namepspace'
    2 | using namepspace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: 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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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>
#include <cstdlib>
using namespace std;

int main(){
    string s;
    cin >> s;
    int x, ans=0; x=s.size();

    for (int i=2; i < x ; i++ ){
        int u;
        u=(atoi(s[i-2]))*100 + (atoi(s[i-1]))*10 + (atoi(s[i]));
        if ( abs(u-753) <= abs(ans-753) ) ans=u;
    }

    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=(atoi(s[i-2]))*100 + (atoi(s[i-1]))*10 + (atoi(s[i]));
      |            ~~~~^~~~~~~~
      |                |
      |                __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:37: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=(atoi(s[i-2]))*100 + (atoi(s[i-1]))*10 + (atoi(s[i]));
      |                                 ~~~~^~~~~~~~
      |                                     |
      |                                     __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:57: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=(atoi(s[i-2]))*100 + (atoi(s[i-1]))*10 + (atoi(s[i]));
      |                                                     ~~~~^~~~~~
      |                                                         |
      |                                                         __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/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 <bits/stdc++.h>
#include <cstdlib>
using namespace std;

int main(){
    string s;
    cin >> s;
    int x, ans=0; x=s.size();

    for (int i=2; i < x ; i++ ){
        int u;
        u=atoi(s[i-2])*100 + atoi(s[i-1])*10 + atoi(s[i]);
        if ( abs(u-753) <= abs(ans-753) ) ans=u;
    }

    cout << ans << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=atoi(s[i-2])*100 + atoi(s[i-1])*10 + atoi(s[i]);
      |           ~~~~^~~~~~~~
      |               |
      |               __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:34: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=atoi(s[i-2])*100 + atoi(s[i-1])*10 + atoi(s[i]);
      |                              ~~~~^~~~~~~~
      |                                  |
      |                                  __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/usr/include/stdlib.h:105:30: note:   initializing argument 1 of 'int atoi(const char*)'
  105 | extern int atoi (const char *__nptr)
      |                  ~~~~~~~~~~~~^~~~~~
a.cc:12:52: error: invalid conversion from '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} to 'const char*' [-fpermissive]
   12 |         u=atoi(s[i-2])*100 + atoi(s[i-1])*10 + atoi(s[i]);
      |                                                ~~~~^~~~~~
      |                                                    |
      |                                                    __gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type {aka char}
/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 <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc:4:13: error: expected initializer before '\U0000ff5b'
    4 | int main () ｛
      |             ^~
a.cc:5:9: error: 'cin' does not name a type
    5 | int i ; cin >>i;
      |         ^~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(i == 3 ||i==5||i==7)
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else cout<<"NO"<<endl;
      | ^~~~
a.cc:9:1: error: expected declaration before '}' token
    9 | }
      | ^
Language: Java

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

Compiler output:
Main.java:7: error: bad operand types for binary operator '||'
      if(a == 3||5||7){
               ^
  first type:  boolean
  second type: int
1 error
Language: Java


import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      　if(a == 3||5||7){
       System.out.println("YES");
       }else{
         System.out.println("NO");
       }
		sc.close();
	}
}

Compiler output:
Main.java:9: error: illegal character: '\u3000'
      ?if(a == 3||5||7){
      ^
1 error
Language: C++

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

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


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

#include <stdio.h>
int main(void){
  int f;
  scanf("%d",&f);
  if((f>2)&&(f<8)&&(f%2)){printf("YES\n")}else{printf("NO\n")}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:42: error: expected ';' before '}' token
    5 |   if((f>2)&&(f<8)&&(f%2)){printf("YES\n")}else{printf("NO\n")}
      |                                          ^
      |                                          ;
main.c:5:62: error: expected ';' before '}' token
    5 |   if((f>2)&&(f<8)&&(f%2)){printf("YES\n")}else{printf("NO\n")}
      |                                                              ^
      |                                                              ;
Language: C++

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

int main(void){
    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:23: error: missing terminating > character
    1 | #include<bits/stdc++.h
      |                       ^
Language: Java

#include<iostream>
using namespace std;

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


Compiler output:
Main.java:1: error: illegal character: '#'
#include<iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include<iostream>
        ^
Main.java:6: error: not a statement
	cin >> x;
	    ^
Main.java:7: error: not a statement
	cout << (x==3||x==5||x==7?"Yes":"No") << endl;
	                                      ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
5 errors
Language: C++

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

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


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

#include <bits/stdc++.h>
#define ll long long
#define REP(i, n) for(int i = 0;i < n;i++)
#define INF 999999999

using namespace std;

int main() {
	string s;
	cin >> s;
	ll ans = INF;
	REP(i, s.size()-2){
		ans = min(abs(stoi(s.substr(i, 3)) - 753), ans);
	}
	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: no matching function for call to 'min(int, long long int&)'
   13 |                 ans = min(abs(stoi(s.substr(i, 3)) - 753), ans);
      |                       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:233:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)'
  233 |     min(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:233:5: note:   template argument deduction/substitution failed:
a.cc:13:26: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'long long int')
   13 |                 ans = min(abs(stoi(s.substr(i, 3)) - 753), ans);
      |                       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/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
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5686:5: note: candidate: 'template<class _Tp> constexpr _Tp std::min(initializer_list<_Tp>)'
 5686 |     min(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5686:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5696:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::min(initializer_list<_Tp>, _Compare)'
 5696 |     min(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5696:5: note:   template argument deduction/substitution failed:
a.cc:13:26: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   13 |                 ans = min(abs(stoi(s.substr(i, 3)) - 753), ans);
      |                       ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ':' token
    9 |     cout << "YES" << endl:
      |                          ^
      |                          ;
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define ITR(x,c) for(__typeof(c.begin() x=c.begin();x!=c.end();x++)
#define RITR(x,c) for(__typeof(c.rbegin() x=c.rbegin();x!=c.rend();x++)
#define setp(n) fixed << setprecision(n)

#define lf double
#define ll long long
#define vll vector<ll>
#define vi vector<int>
#define pll pair<ll,ll>
#define pi pair<int,int>

#define all(a) (a.begin()),(a.end())
#define rall(a) (a.rbegin()),(a.rend())
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define ins insert

using namespace std;

int main(void)
{
	cin.tie(0);
	ios::sync_with_stdio(false);
	ll 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:31:32: error: expected ';' before 'else'
   31 |                 cout << "Yes\n"
      |                                ^
      |                                ;
   32 |         else
      |         ~~~~
Language: C

#include<stdio.h>
#include<string.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:
main.c: In function 'main':
main.c:6:9: error: 'x' undeclared (first use in this function)
    6 |     if((x==3)||(X==5)||(X==7)){
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:10: error: expected ';' before 'scanf'
    3 |   int n;n
      |          ^
      |          ;
    4 |   scanf("%d",&n);
      |   ~~~~~
Language: C++

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

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


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

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

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

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

#include <iostream>
#include <iomanip>
#include <vector>
#include <map>
#include <queue>
#include <algorithm>

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:14:23: error: expected ')' before 'X'
   14 |   if (X == 7 || X == 5 X || 3) {
      |      ~                ^~
      |                       )
Language: C++

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

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


Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | z#include<bits/stdc++.h>
      |  ^
a.cc:1:1: error: 'z' does not name a type
    1 | z#include<bits/stdc++.h>
      | ^
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope
    5 |   int X; cin >> X;
      |          ^~~
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "YES" << endl;
      |     ^~~~
a.cc:7:22: error: 'endl' was not declared in this scope
    7 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "NO" << endl;
      |     ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

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

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


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

// https://atcoder.jp/contests/abc114/tasks/abc114_a

#include <iostream>
using namespace std;

int main()
{
  /* Magic word */
  cin.tie(0);
  ios::sync_with_stdio(false);
  /* ---------- */

  int x;
  string r;

  cin >> x;

  r = x == 3 || x == 5 || x == 7 ? "YES" : "NO";

  cout << r << '\n';

  5 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:4: error: expected ';' before 'return'
   22 |   5 return 0;
      |    ^~~~~~~
      |    ;
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> a;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if(a == 3 || a == 5 || a == 7)cout << "YES" << endl;
      |                                   ^~~~
      |                                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:52: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if(a == 3 || a == 5 || a == 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:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |         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:7:30: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |         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++

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

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

#include<stdio.h>

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

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

Compiler output:
main.c: In function 'main':
main.c:12:9: error: expected declaration or statement at end of input
   12 |         }
      |         ^
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:
main.c: In function 'main':
main.c:7:23: error: 'x' undeclared (first use in this function)
    7 |         if (X == 3 || x == 5 || x == 7) {
      |                       ^
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: expected declaration or statement at end of input
   12 |         }
      |         ^
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:
main.c: In function 'main':
main.c:12:9: error: expected declaration or statement at end of input
   12 |         }
      |         ^
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:
main.c: In function 'main':
main.c:7:23: error: 'x' undeclared (first use in this function)
    7 |         if (X == 3 || x == 5 || x == 7) {
      |                       ^
main.c:7:23: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:9: error: expected declaration or statement at end of input
   12 |         }
      |         ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:16: error: 'x' undeclared (first use in this function)
    7 |   if(X == 3 || x == 5 || x == 7){
      |                ^
main.c:7:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:5: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |     print("NO");
      |     ^~~~~
      |     printf
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; (i) < (int)(n); ++(i))
#define REP3(i, m, n) for (int i = (m); (i) < (int)(n); ++(i))
#define REP_R(i, n) for (int i = (int)(n)-1; (i) >= 0; --(i))
#define REP3R(i, m, n) for (int i = (int)(n)-1; (i) >= (int)(m); --(i))
#define ALL(x) begin(x), end(x)
using ll = long long;
using namespace std;
const string YES = "YES";
const string NO = "NO";

void solve(long long X) {
    if (x == 3 or x == 5 or x == 7) cout << YES << endl;
    else cout << NO << endl;
}

int main() {
    bool test_samples = false;
    if (not test_samples) {
        long long X;
        std::cin >> X;
        solve(X);
    } else {
        const char *samples[] = {
            "5",
            "6",
        };
        REP(i, std::distance(ALL(samples))) {
            cerr << "[*] sample " << i << endl;
            istringstream iss(samples[i]);
            long long X;
            iss >> X;
            solve(X);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:13:9: error: 'x' was not declared in this scope
   13 |     if (x == 3 or x == 5 or x == 7) cout << YES << endl;
      |         ^
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; (i) < (int)(n); ++(i))
#define REP3(i, m, n) for (int i = (m); (i) < (int)(n); ++(i))
#define REP_R(i, n) for (int i = (int)(n)-1; (i) >= 0; --(i))
#define REP3R(i, m, n) for (int i = (int)(n)-1; (i) >= (int)(m); --(i))
#define ALL(x) begin(x), end(x)
using ll = long long;
using namespace std;
const string YES = "YES";
const string NO = "NO";

void solve(long long X) {
    if (x == 3 or x == 5 or x == 7) cout << "YES" << endl;
    else cout << "NO" << endl;
}

int main() {
    bool test_samples = false;
    if (not test_samples) {
        long long X;
        std::cin >> X;
        solve(X);
    } else {
        const char *samples[] = {
            "5",
            "6",
        };
        REP(i, std::distance(ALL(samples))) {
            cerr << "[*] sample " << i << endl;
            istringstream iss(samples[i]);
            long long X;
            iss >> X;
            solve(X);
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:13:9: error: 'x' was not declared in this scope
   13 |     if (x == 3 or x == 5 or x == 7) cout << "YES" << endl;
      |         ^
Language: C

#include <stdio.h>

int main(void)
{
    int x=0;
    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:19: error: expected ';' before 'if'
    6 |     scanf("%d",&x)
      |                   ^
      |                   ;
    7 |     if (x==7 || x==5 || x==3) printf("YES");
      |     ~~             
main.c:8:5: error: 'else' without a previous 'if'
    8 |     else printf("NO");
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
typedef long long ll;
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> pbds;
#define ios ios_base::sync_with_stdio(0) ; cin.tie(0) ; cout.tie(0)
#define so sizeof
#define pb push_back
#define vl vector<ll>
#define endl endl;cf
#define be begin()
#define sz size()
#define en end()
#define all(x) (x).be , (x).en
#define rall(x) (x).rbegin() , (x).rend()
#define acc(x) accumulate((x).be , (x).en , 0)
#define forn(i,a,b) for(ll i=1;i<=b;++i)
#define forr(i,a,b) for(ll i=0;i<b;++i)
#define ro return 0
#define rngx mt19937 rng(chrono::steady_clock::now().time_since_epoch().count())
#define vll vector<pair<ll,ll> >
#define pll pair<ll,ll>
#define plll pair<ll,pair<ll,ll>>
#define plvl pair<pair<ll,ll> ,ll>
#define mp make_pair
#define cf cout.flush()
int main()
{
    ios;
    ll x;
    cin >> x ;
    if(x == 7 or x == 5 or x == 3){
        cout <<"Yes\n";
        ro;
    }
    else cout <<"No\n";
    r0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected '}' at end of input
   10 |     cout<<"NO";
      |                ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>
int main ()
{
    int n;
    printf("Enter the value:"):
    scanf("%d",&n);
    1<=n<=9;
    if(n==7)
    {
        printf("YES");
    }
    else if(n==5)
    {
        printf("YES");
    }
    else if(n==3)
    {
        printf("YES");
    }
    else
    {
        printf("NO");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected ';' before ':' token
    5 |     printf("Enter the value:"):
      |                               ^
      |                               ;
Language: C++

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin >> x;
      |     ^~~
a.cc:7:9: error: 'x' was not declared in this scope
    7 |     if (x == 3 || x == 5 || x == 7){
      |         ^
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:12: error: 'x' was not declared in this scope
    5 |     cin >> x;
      |            ^
Language: Java

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


Compiler output:
Main.java:6: error: bad operand types for binary operator '||'
  System.out.println((n=3||n=5)||n=7 ? "YES":"NO");
                         ^
  first type:  int
  second type: int
Main.java:6: error: bad operand types for binary operator '||'
  System.out.println((n=3||n=5)||n=7 ? "YES":"NO");
                               ^
  first type:  int
  second type: int
Main.java:6: error: incompatible types: int cannot be converted to boolean
  System.out.println((n=3||n=5)||n=7 ? "YES":"NO");
                                   ^
3 errors
Language: Java

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

Compiler output:
Main.java:6: error: bad operand types for binary operator '||'
  System.out.println(n=3||n=5||n=7 ? "YES":"NO");
                        ^
  first type:  int
  second type: int
Main.java:6: error: bad operand types for binary operator '||'
  System.out.println(n=3||n=5||n=7 ? "YES":"NO");
                             ^
  first type:  int
  second type: int
Main.java:6: error: incompatible types: int cannot be converted to boolean
  System.out.println(n=3||n=5||n=7 ? "YES":"NO");
                                 ^
3 errors
Language: C++

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

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

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

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

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

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

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

namespace template
{
    class Program
    {
        static void Main(string[] args)
        {
            int imp = Convert.ToInt32(Console.ReadLine());
            switch (imp) { 
                case 7:
                case 5:
                case 3:
                    Console.WriteLine("Yes");
                    break;
                default:
                    Console.WriteLine("No");
                    break;
            }
        }
    }
}

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:7:11: error: expected identifier before 'template'
    7 | namespace template
      |           ^~~~~~~~
a.cc:8:1: error: expected unqualified-id before '{' token
    8 | {
      | ^
a.cc:26:2: error: expected ';' at end of input
   26 | }
      |  ^
      |  ;
Language: C

#include<stdio.h>
int main(void)
{
  int a;

  scanf("%d", &a);

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


Compiler output:
main.c: In function 'main':
main.c:11:18: error: expected ';' before '}' token
   11 |     printf("YES")
      |                  ^
      |                  ;
   12 |   }else if (a=7) {
      |   ~               
main.c:13:18: error: expected ';' before '}' token
   13 |     printf("YES")
      |                  ^
      |                  ;
   14 |   }else{
      |   ~               
main.c:15:17: error: expected ';' before '}' token
   15 |     printf("NO")
      |                 ^
      |                 ;
   16 |   }
      |   ~
Language: C++

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

int main(){
  int s;
  cin >> s;
  int x, z, ans;
  ans = 1000;
  while(s > 99){
    x = s % 1000;
    z = max(753 - x, x - 753);
    s = s / 10;
    ans = min(z, ans);
  }
  cout << ans << endl;
}


Compiler output:
a.cc:2:2: error: invalid preprocessing directive #inckude; did you mean #include?
    2 | #inckude <cmath>
      |  ^~~~~~~
      |  include
Language: C++

#include <iostream>
#include <string>
#include <Windows.h>
#include <vector>

int main() {
	int a;
	std::cin >> a;
	switch (a) {
	case 7:
		std::cout << "YES" << std::endl; return 0;
			break;
		case 5:
			std::cout << "YES" << std::endl; return 0;
			break;
		case 3:
			std::cout << "YES" << std::endl; return 0;
			break;
		default:
			std::cout << "NO" << std::endl; return 0;
			break;
	}
}

Compiler output:
a.cc:3:10: fatal error: Windows.h: No such file or directory
    3 | #include <Windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int age;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>age;
      |   ^~~
a.cc:9:3: error: expected unqualified-id before 'if'
    9 |   if(age==3||age==5||age==7){
      |   ^~
a.cc:12:4: error: expected unqualified-id before 'else'
   12 |    else{
      |    ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^