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

#include<stdio.h>
int main(void)
{
  int a,b,c;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0
}
#inlcude<stdio.h>
int main(void)
{
  int a,b,c;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0
}
提出情報
提出日時


Compiler output:
main.c: In function 'main':
main.c:16:11: error: expected ';' before '}' token
   16 |   return 0
      |           ^
      |           ;
   17 | }
      | ~          
main.c: At top level:
main.c:18:2: error: invalid preprocessing directive #inlcude; did you mean #include?
   18 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c:19:5: error: redefinition of 'main'
   19 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
main.c: In function 'main':
main.c:33:11: error: expected ';' before '}' token
   33 |   return 0
      |           ^
      |           ;
   34 | }
      | ~          
main.c: At top level:
main.c:35:1: error: unknown type name '\U000063d0\U000051fa\U000060c5\U00005831'
   35 | 提出情報
      | ^~~~~~~~
main.c:36:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   36 | 提出日時
      | ^~~~~~~~
Language: C

#inlcude<stdio.h>
int main(void)
{
  int a,b,c;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    6 |   puts("整数を入力してください。");
      |   ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&a);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&a);
      |                   ^~~~~
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:11: error: expected ';' before '}' token
   16 |   return 0
      |           ^
      |           ;
   17 | }
      | ~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt(), b = scan.nextInt();
		String[] ABC = new int[a];
		String small = ABC[0]; 
		String output = "";
		for (int x : ABC)
		{
			ABC[x] = scan.next();
		}
		for (int i = 1; i < ABC.length;i++)
		{
			for (int x = 1; x < ABC.length;x++)
				if (small > ABC[x]) small = ABC[x];
			output+=small;
		}
		System.out.println(small);
	}
}

Compiler output:
Main.java:7: error: incompatible types: int[] cannot be converted to String[]
		String[] ABC = new int[a];
		               ^
Main.java:10: error: incompatible types: String cannot be converted to int
		for (int x : ABC)
		             ^
Main.java:17: error: bad operand types for binary operator '>'
				if (small > ABC[x]) small = ABC[x];
				          ^
  first type:  String
  second type: String
3 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String args[]){
		Scanner in = new Scanner(System.in);
		int n, l;
		n = in.nextInt();
		l = in.nextInt();
		
		String[] S = new String[n];
		for (int i = 0; i < n; i++) S[i] = in.next();
		S.sort();
		for (int i = 0; i < n; i++) System.out.print(S[i]);
		System.out.println();
	}
}


Compiler output:
Main.java:12: error: cannot find symbol
		S.sort();
		 ^
  symbol:   method sort()
  location: variable S of type String[]
1 error
Language: C++

import java.util.*;
public class Main {
	public static void main(String[] args)
	{
		Scanner scan = new Scanner(System.in);
		
			int[] ABC = new int[3];
			int counter1 = 0;
			int counter2 = 0;
			for (int i = 0; i < 3; i++) 
			{
				ABC[i] = scan.nextInt();
			}
			for (int a: ABC)
			{
				if (a == 5)
				{
					counter1++;
				}
				if (a == 7)
				{
					counter2++;
				}
			}
			if (counter1 == 2 && counter2 == 1)
				System.out.println("YES");
			else
				System.out.println("NO");
		
	}
}

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

import java.util.*;

public class a{
	public static void main(String args[]){
		Scanner in = new Scanner(System.in);
		int[] nums = new int[3];
		for (int i = 0; i < 3; i++) nums[i] = in.nextInt();
		
		int fives = 0, sevens = 0;
		for (int i = 0; i < 3; i++) {
			if (nums[i] == 5) fives++;
			if (nums[i] == 7) sevens++;
		}
		
		if (sevens == 1 && fives == 2) System.out.println("YES");
		else System.out.println("NO");
	}
}


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

import java.io.*;
import java.util.*;
class Main{
    public static void main(String[] args) throws Exception {
		hayami saori = new hayami();
		int a= 0;
		int five = 0;
		int seven = 0;
		for(int i = 0;i < num.length;i++){
			a = saori.saori_hayami();
			if(num[i] == 5){
				five++;
			}
			if(num[i] == 7){
				seven++;
			}
		}
		if(five == 2 && seven == 1){
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
    }
}

class hayami implements Closeable {
	private final InputStream in = System.in;
	private final byte[] hayami = new byte[1024];
	private int Hayami = 0;
	private int saori = 0;
	private boolean HayamiSaori() {
		if (Hayami < saori) {
			return true;
		}else{
			Hayami = 0;
			try {
				saori = in.read(hayami);
			} catch (IOException e) {
				e.printStackTrace();
			}
			if (saori <= 0) {
				return false;
			}
		}
		return true;
	}
	private int SaoriHayami() { 
		if (HayamiSaori()) {
            return hayami[Hayami++];
         }else{
             return -1;
         }
	}
	private static boolean hayami_saori(int hayami) { 
		return 33 <= hayami && hayami <= 126;
	}
	public boolean hayamisaori() { 
		while(HayamiSaori() && !hayami_saori(hayami[Hayami])) Hayami++; return HayamiSaori();
	}
	public String nextHayami() {
		if (!hayamisaori()) throw new NoSuchElementException();
		StringBuilder hayamin = new StringBuilder();
		int saori = SaoriHayami();
		while(hayami_saori(saori)) {
			hayamin.appendCodePoint(saori);
			saori = SaoriHayami();
		}
		return hayamin.toString();
	}
	public long saorihayami() {//nextLong
		if (!hayamisaori()) throw new NoSuchElementException();
		long hayami = 0;
		boolean misao = false;
		int saori = SaoriHayami();
		if (saori == '-') {
			misao = true;
			saori = SaoriHayami();
		}
		if (saori < '0' || '9' < saori) {
			throw new NumberFormatException();
		}
		while(true){
			if ('0' <= saori && saori <= '9') {
				hayami *= 10;
				hayami += saori - '0';
			}else if(saori == -1 || !hayami_saori(saori)){
				return misao ? -hayami : hayami;
			}else{
				throw new NumberFormatException();
			}
			saori = SaoriHayami();
		}
	}
	public int saori_hayami() {//nextInt
		long hayami = saorihayami();
		if (hayami < Integer.MIN_VALUE || hayami > Integer.MAX_VALUE) throw new NumberFormatException();
		return (int) hayami;
	}
	public double Hayamin() { //nextDouble
		return Double.parseDouble(nextHayami());
	}
	public void close() {
		try {
			in.close();
		} catch (IOException e) {
		}
    }
    
}

Compiler output:
Main.java:9: error: cannot find symbol
		for(int i = 0;i < num.length;i++){
		                  ^
  symbol:   variable num
  location: class Main
Main.java:11: error: cannot find symbol
			if(num[i] == 5){
			   ^
  symbol:   variable num
  location: class Main
Main.java:14: error: cannot find symbol
			if(num[i] == 7){
			   ^
  symbol:   variable num
  location: class Main
3 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int arr[3];
  cin >> arr[0] >> arr[1] >> arr[2];
  sort(arr,arr+3)
  cout << ((arr[0] == 5 && arr[1] == 5 && arr[2] == 7)?"YES":"NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected ';' before 'cout'
    7 |   sort(arr,arr+3)
      |                  ^
      |                  ;
    8 |   cout << ((arr[0] == 5 && arr[1] == 5 && arr[2] == 7)?"YES":"NO");
      |   ~~~~
Language: C++

#inclide<bits/stdc++.h>
using namespace std;
int main(){
  int arr[10];
  for(int i=0;i<3;i++)
  {
  cin>>arr[i]
  }
  sort(arr,arr+3);
  if(arr[0]==5 && arr[1]==5 && arr[2]==7)
  {
    cout<<"YES"<<endl;
  }
  else
  {
    cout<<"NO"<<endl;
  }
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>arr[i]
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<bits/stdc++.h>
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(arr,arr+3);
      |   ^~~~
      |   short
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:18: error: 'endl' was not declared in this scope
   12 |     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 | #inclide<bits/stdc++.h>
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"NO"<<endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:17: error: 'endl' was not declared in this scope
   16 |     cout<<"NO"<<endl;
      |                 ^~~~
a.cc:16:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define pp pair<int,int>
#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define ll long long
#define ld long double
#define all(a) (a).begin(),(a).end()
#define mk make_pair
ll MOD=1000000007;
ll mod=998244353;
int inf=1000001000;
ll INF=1e18+5;


int main() {
  vector<int> a(n);
  cin >> a[0] >> a[1] >> a[2];
  sort(all(a));
  if (a[0]==5 && a[1]==5 && a[2]==7) cout << "YES" << endl;
  else cout << "NO" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: 'n' was not declared in this scope
   16 |   vector<int> a(n);
      |                 ^
Language: Java

import java.util.Scanner;
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];boolean dool =false;
	for (int i=0;i<3;i++) {
		int x = scanner.nextInt();
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		a[i]=x;
	}
	if (dool==false) {
		boolean chool =false;
		for (int i=0;i<2;i++) {
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
		}
		if (chool==false) System.out.println("YES");
	}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	Scanner scanner = new Scanner (System.in);
	^
  (use --enable-preview to enable unnamed classes)
Main.java:3: error: class, interface, enum, or record expected
	int [] a;a=new int [3];boolean dool =false;
	         ^
Main.java:4: error: class, interface, enum, or record expected
	for (int i=0;i<3;i++) {
	^
Main.java:4: error: class, interface, enum, or record expected
	for (int i=0;i<3;i++) {
	             ^
Main.java:4: error: class, interface, enum, or record expected
	for (int i=0;i<3;i++) {
	                 ^
Main.java:6: error: class, interface, enum, or record expected
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		^
Main.java:6: error: class, interface, enum, or record expected
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		                                          ^
Main.java:6: error: class, interface, enum, or record expected
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		                                                     ^
Main.java:6: error: class, interface, enum, or record expected
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		                                                           ^
Main.java:8: error: class, interface, enum, or record expected
	}
	^
Main.java:11: error: class, interface, enum, or record expected
		for (int i=0;i<2;i++) {
		^
Main.java:11: error: class, interface, enum, or record expected
		for (int i=0;i<2;i++) {
		             ^
Main.java:11: error: class, interface, enum, or record expected
		for (int i=0;i<2;i++) {
		                 ^
Main.java:12: error: class, interface, enum, or record expected
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
			                                           ^
Main.java:12: error: class, interface, enum, or record expected
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
			                                                      ^
Main.java:12: error: class, interface, enum, or record expected
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
			                                                            ^
Main.java:15: error: class, interface, enum, or record expected
	}
	^
17 errors
Language: Java

import java.util.Scanner;
public class ABC {
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];boolean dool =false;
	for (int i=0;i<3;i++) {
		int x = scanner.nextInt();
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		a[i]=x;
	}
	if (dool==false) {
		boolean chool =false;
		for (int i=0;i<2;i++) {
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
		}
		if (chool==false) System.out.println("YES");
	}
	
	scanner.close();
}
}

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

import java.util.Scanner;
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];boolean dool =false;
	for (int i=0;i<3;i++) {
		int x = scanner.nextInt();
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		a[i]=x;
	}
	if (dool==false) {
		boolean chool =false;
		for (int i=0;i<2;i++) {
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
		}
		if (chool==false) System.out.println("YES");
	}
	
	scanner.close();
}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.Scanner;
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];boolean dool =false;
	for (int i=0;i<3;i++) {
		int x = scanner.nextInt();
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		a[i]=x;
	}
	if (dool==false) {
		boolean chool =false;
		for (int i=0;i<2;i++) {
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
		}
		if (chool==false) System.out.println("YES");
	}
	
	scanner.close();
}
}

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

import java.util.Scanner;
public class tamrini {
public static void main(String[] args) {
	Scanner scanner = new Scanner (System.in);
	int [] a;a=new int [3];boolean dool =false;
	for (int i=0;i<3;i++) {
		int x = scanner.nextInt();
		if (x!=5&&x!=7) {System.out.println("NO");dool=true; break;}
		a[i]=x;
	}
	if (dool==false) {
		boolean chool =false;
		for (int i=0;i<2;i++) {
			if (a[i]>a[i+1]) {System.out.println("NO");chool=true;break;}
		}
		if (chool==false) System.out.println("YES");
	}
	
	scanner.close();
}
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  int c5=c7=0;
  cin>>a>>b>>c;
  if(a==5)
  {
    c5++;
  }
  if(a==7)
  {
    c7++;
  }
  if(b==5)
  {
    c5++;
  }
  if(b==7)
  {
    c7++;
  }
  if(c==5)
  {
    c5++;
  }
  if(c==7)
  {
    c7++;
  }
  if(c5==2 && c7==1)
  {
    cout<<"YES";
  }
  else
  {
    cout<<"NO";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'c7' was not declared in this scope; did you mean 'c5'?
    6 |   int c5=c7=0;
      |          ^~
      |          c5
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  int c5=c7=0;
  cin>>a>>b>>c;
  if(a==5)
  {
    c5++;
  }
  if(a==7)
  {
    c7++;
  }
  if(b==5)
  {
    c5++;
  }
  if(b==7)
  {
    c7++;
  }
  if(c==5)
  {
    c5++;
  }
  if(c==7)
  {
    c7++;
  }
  if(c5==2 && c7==1)
  {
    cout<<"YES";
  }
  else
  {
    cout<<"NO";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'c7' was not declared in this scope; did you mean 'c5'?
    6 |   int c5=c7=0;
      |          ^~
      |          c5
a.cc:40:2: error: expected '}' at end of input
   40 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include<iostream>
#include <string>
using namespace std;
int main()
{
  int[3] a;
  int b;
  bool ans=false;
  for(int i=0;i<3;i++){
  cin >> a[i];//入力
    if(a[i]==7){
    b++;
    }
  }
  if(b==2){
  cout << "NO"
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: expected identifier before numeric constant
    6 |   int[3] a;
      |       ^
a.cc:6:7: error: expected ']' before numeric constant
    6 |   int[3] a;
      |       ^
      |       ]
a.cc:6:6: error: structured binding declaration cannot have type 'int'
    6 |   int[3] a;
      |      ^
a.cc:6:6: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:6:6: error: empty structured binding declaration
a.cc:6:10: error: expected initializer before 'a'
    6 |   int[3] a;
      |          ^
a.cc:10:10: error: 'a' was not declared in this scope
   10 |   cin >> a[i];//入力
      |          ^
a.cc:16:15: error: expected ';' before '}' token
   16 |   cout << "NO"
      |               ^
      |               ;
   17 |   }
      |   ~
Language: C++

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

int main(){
  string A, B, C;
  cin A >> B >> C;
  
  if (A.size() == 5 || B.size() == 7 || C.size() == 5){
    cout << "YES" << endl;
  }
  else if (A.size() == 7 || B.size() == 5 || C.size() == 5){
    cout << "YES"<< endl;
  }
  else if (A.size() == 5 || B.size() == 5 || C.size() == 7){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A >> B >> C;
      |      ^~
      |      ;
Language: C++

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

int main(){
  string A, B, C;
  cin A << B << C;
  
  if (A.size() == 5 || B.size() == 7 || C.size() == 5){
    cout << "YES" << endl;
  }
  else if (A.size() == 7 || B.size() == 5 || C.size() == 5){
    cout << "YES"<< endl;
  }
  else if (A.size() == 5 || B.size() == 5 || C.size() == 7){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'A'
    6 |   cin A << B << C;
      |      ^~
      |      ;
Language: C++

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

int main(){
  string A, B, C;
  cin A << B << C;
  
  if (A.size == 5 || B.size == 7 || C.size == 5){
    cout << "YES" << endl;
  }
  else if (A.size == 7 || B.size == 5 || C.size == 5){
    cout << "YES"<< endl;
  }
  else if (A.size == 5 || B.size == 5 || C.size == 7){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
      

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

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

int main(){
  string A, B, C;
  cin A << B << C;
  
  if (A.size == 5 || B.size == 7 || C.size == 5){
    cout << "YES" << endl;
  }
  else if (A.size == 7 || B.size == 5 || C.size == 5){
    cout << "YES"<< endl;
  }
  else if (A.size == 5 || B.size == 5 || C.size == 7){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}
      

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdhc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string A, B, C;
      |   ^~~~~~
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin A << B << C;
      |   ^~~
a.cc:8:7: error: 'A' was not declared in this scope
    8 |   if (A.size == 5 || B.size == 7 || C.size == 5){
      |       ^
a.cc:8:22: error: 'B' was not declared in this scope
    8 |   if (A.size == 5 || B.size == 7 || C.size == 5){
      |                      ^
a.cc:8:37: error: 'C' was not declared in this scope
    8 |   if (A.size == 5 || B.size == 7 || C.size == 5){
      |                                     ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "YES" << endl;
      |     ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "YES"<< endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "YES"<< endl;
      |                     ^~~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << "YES" << endl;
      |     ^~~~
a.cc:15:22: error: 'endl' was not declared in this scope
   15 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout << "NO" << endl;
      |     ^~~~
a.cc:18:21: error: 'endl' was not declared in this scope
   18 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{ 
  int count5 = 2;
  int count7 = 1;
  
  for(i=0; i++; i<3){
  	int N;
    cin >> N;
  	if(N == 5){
      count5--;
    }else if(N == 7){
      count7--;
    }
  }
  
  if(count5 == 0 && count7 == 0){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   for(i=0; i++; i<3){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int A,B,C;
  int five,seven;
  cin >> A >> B >> C;
  
  if(A == 5) {
    five++;
  }
  if(B == 5) {
    five++;
  }
  if(C == 5) {
    five++;
  }
  if(A == 7 || B == 7 || C == 7) {
    seven=1;
  }
  
  if(five == 2 && seven == 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  
  

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

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

int main(void){
	int A,B,C
    cin >> A >> B >> C;
	if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == 5 && C == 7)){
    	cout << "yes¥n";
    }else{
   		cout << "no¥n"; 
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> A >> B >> C;
      |     ^~~
a.cc:8:33: error: 'C' was not declared in this scope
    8 |         if((A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5) || (A == 5 && B == 5 && C == 7)){
      |                                 ^
Language: C

#include(stdio.h)

int main(){
  int A, B, C;
  scanf("%d %d %d", &A, &B, &C);
  if(A==5 && B==5 && C==7){
    printf("YES");}
  else if(A==5 && B==7 && C==5){
    printf("YES");}
  else if(A==7 && B==5 && C==5){
    printf("YES");}
  else{
    printf("NO");}
  return 0;
}

Compiler output:
main.c:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include(stdio.h)
      |         ^
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d %d %d", &A, &B, &C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #include(stdio.h)
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d %d %d", &A, &B, &C);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |     printf("YES");}
      |     ^~~~~~
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
    9 |     printf("YES");}
      |     ^~~~~~
main.c:9:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   11 |     printf("YES");}
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("NO");}
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

int main(){
  int A, B, C;
  scanf("%d %d %d", &A, &B, &C);
  if(A=5 && B=5 && C=7){
    printf("YES");}
  else if(A=5 && B=7 && C=5){
    printf("YES");}
  else if(A=7 && B=5 && C=5){
    printf("YES");}
  else{
    printf("NO");}
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: lvalue required as left operand of assignment
    7 |   if(A=5 && B=5 && C=7){
      |                     ^
main.c:9:26: error: lvalue required as left operand of assignment
    9 |   else if(A=5 && B=7 && C=5){
      |                          ^
main.c:11:26: error: lvalue required as left operand of assignment
   11 |   else if(A=7 && B=5 && C=5){
      |                          ^
Language: Java

import java.util.*;
class Main
{
  public static void main(String[] args)
  {
    int[] a=new int[8];
    for(int i=0;i<3;i++)
    {
     int x=sc.nextInt();
      a[x]++;
    }
    if(a[5]==2 && a[7]==1)
    {
      System.out.println("YES");
    }
    else
    {
      System.out.println("NO");
    }
    
  }
}

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

#include<iostream>
#include<string>
using namespace std;
 
bool Smaller(char a[], int a_length, char b[], int b_length){
  	int i;
  	int min_length = a_length < b_length ? a_length : b_length;
  	for(i=0; i<min_length; i++){
      if(a[i] < b[i])return true;
      else if(a[i] > b[i]) return false;
    }
  	return false;
  }
 
void Swap(char a[], char b[], int length){
  int i;
  for(i=0;i<length;i++){
    char c;
    c = a[i];
   	a[i] = b[i];
    b[i] = c;
  }
  return;
}
 
int main(){
  int string_length,string_num;
  cin >> string_length >> string_num;
  
  char strContainer[string_num][string_length];
  
  int i;
  
  for(i=0;i<string_num;i++){
    cin >> strContainer[i];
  }
  
  //今回はバブルソートで
  bool sorting = true;
  while(sorting){
    sorting=false;
    for(i=0;i<sorting_num-1;i++){
      if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      	Swap(strContainer[i], strContainer[i+1], string_length);
        sorting=true;
      }
    }
    
    char result[] = "";
    
    for(i=0; i < string_num;i++){
      cout << strContainer[i];
    }
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:42:15: error: 'sorting_num' was not declared in this scope; did you mean 'string_num'?
   42 |     for(i=0;i<sorting_num-1;i++){
      |               ^~~~~~~~~~~
      |               string_num
a.cc:43:84: error: expected ')' before '{' token
   43 |       if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      |         ~                                                                          ^
      |                                                                                    )
a.cc:47:5: error: expected primary-expression before '}' token
   47 |     }
      |     ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
 
bool Smaller(char a[], int a_length, char b[], int b_length){
  	int i;
  	int min_length = a_length < b_length ? a_length : b_length;
  	for(i=0; i<min_length; i++){
      if(a[i] < b[i])return true;
      else if(a[i] > b[i]) return false;
    }
  	return false;
  }
 
void Swap(char a[], char b[], int length){
  int i;
  for(i=0;i<length;i++){
    char c;
    c = a[i];
   	a[i] = b[i];
    b[i] = c;
  }
  return;
}
 
int main(){
  cin >> string_length >> string_num;
  
  char strContainer[string_num][string_length];
  
  int i;
  
  for(i=0;i<string_num;i++){
    cin >> strContainer[i];
  }
  
  //今回はバブルソートで
  bool sorting = true;
  while(sorting){
    sorting=false;
    for(i=0;i<sorting_num-1;i++){
      if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      	Swap(strContainer[i], strContainer[i+1], string_length);
        sorting=true;
      }
    }
    
    char result[] = "";
    
    for(i=0; i < string_num;i++){
      cout << strContainer[i];
    }         
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:10: error: 'string_length' was not declared in this scope
   27 |   cin >> string_length >> string_num;
      |          ^~~~~~~~~~~~~
a.cc:27:27: error: 'string_num' was not declared in this scope
   27 |   cin >> string_length >> string_num;
      |                           ^~~~~~~~~~
a.cc:34:12: error: 'strContainer' was not declared in this scope
   34 |     cin >> strContainer[i];
      |            ^~~~~~~~~~~~
a.cc:41:15: error: 'sorting_num' was not declared in this scope; did you mean 'sorting'?
   41 |     for(i=0;i<sorting_num-1;i++){
      |               ^~~~~~~~~~~
      |               sorting
a.cc:42:19: error: 'strContainer' was not declared in this scope
   42 |       if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      |                   ^~~~~~~~~~~~
a.cc:42:84: error: expected ')' before '{' token
   42 |       if(!Smaller(strContainer[i], string_length, strContainer[i+1], string_length){
      |         ~                                                                          ^
      |                                                                                    )
a.cc:46:5: error: expected primary-expression before '}' token
   46 |     }
      |     ^
a.cc:51:15: error: 'strContainer' was not declared in this scope
   51 |       cout << strContainer[i];
      |               ^~~~~~~~~~~~
Language: Java

#include <iostream>
using namespace std;

int main(){
    int five = 0 , seven = 0 , n;
    
    for(int i = 0 ; i< 3 ; i++)
    {
        cin >> n;
        if(n == 5)
        {
            five++;
        }
        else if(n==7)
        {
            seven++;
        }
    }
    
    if(seven == 1 && five ==2)
    {
        cout << "YES\n";
    }
    else{
        cout << "NO\n";
    }
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:1: error: class, interface, enum, or record expected
#include <iostream>
         ^
Main.java:9: error: not a statement
        cin >> n;
            ^
Main.java:22: error: not a statement
        cout << "YES\n";
             ^
Main.java:25: error: not a statement
        cout << "NO\n";
             ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(){
^
  (use --enable-preview to enable unnamed classes)
6 errors
Language: C++

# -*- coding: utf-8 -*-
a = list(map(int,input().split()))
if sum(a)==17:
    print("YES")
else:
    print("NO")


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:2:1: error: 'a' does not name a type
    2 | a = list(map(int,input().split()))
      | ^
Language: Java

import java.util.Scanner;

public class ProblemA
{
	public static void main ( String[] args )
	{
		Scanner sc = new Scanner ( System.in );
		int n, five = 0, seven = 0;
		for ( int i = 0; i < 3; i++ )
		{
			n = sc.nextInt ();
			if ( n == 5 )
			{
				five++;
			}
			else if ( n == 7 )
			{
				seven++;
			}
		}

		if ( five == 2 && seven == 1 )
		{
			System.out.println ( "YES" );
		}
		else
		{
			System.out.println ( "NO" );
		}
	}

}


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

#include<iostream>
#include<string>
#include<vector>
 
int main(){
    
  int string_length;
  int string_num;
  std::cin >> string_length >> string_num;
 
  std::vector<std::string> strings;
  
  int i;
  for(i=0; i < string_num; i++){
    std::string input;
    std::cin >> input;
    strings.push_back(input);
  }
  
  std::string result;
  
  while(strings.size() > 0){
    std::string minimum;
    int minimum_pos;
    
	minimum = strings[0];
    minimum_pos = 0;
    
    for(i=0; i<strings.size(); i++){
      if(strings[i].compare(minimum) < 0){
        minimum = strings[i];
        minimum_pos = i;
      }
    }
    result = result + minimum;
  	strings.erase(strings.begin() + minimum_pos);
  }
  
  std::cout << result << std::endl;
  
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:41:12: error: expected '}' at end of input
   41 |   return 0;
      |            ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
int main(){
    
  int string_length;
  int string_num;
  std::cin >> string_length >> string_num;
 
  std::vector<std::string> strings;
  
  int i;
  for(i=0; i < string_num; i++){
    std::string input;
    std::cin >> input;
    strings.push_back(input);
  }
  
  std::string result;
  
  while(strings.size() > 0){
    std::string minimum;
    int minimum_pos;
    
	minimum = strings[0];
    minimum_pos = 0;
    
    for(i=0; i<strings.size(); i++){
      if(strings[i].compare(minimum) < 0){
        minimum = strings[i];
        minimum_pos = i;
      }
    }
    result = result + minimum;
  	strings.erase(minimum);
  }
  
  std::cout << result;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:22: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(std::string&)'
   36 |         strings.erase(minimum);
      |         ~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
int main(){
    
  int string_length;
  int string_num;
  std::cin >> string_length >> string_num;
 
  std::vector<std::string> strings;
  
  int i;
  for(i=0; i < string_num; i++){
    std::string input;
    std::cin >> input;
    strings.push_back(input);
  }
  
  std::string result;
  
  while(strings.size() > 0){
    std::string minimum;
    int minimum_pos;
    
	minimum = strings[0];
    minimum_pos = 0;
    
    for(i=0; i<strings.size(); i++){
      if(strings[i].compare(minimum) < 0){
        minimum = strings[i];
        minimum_pos = i;
      }
    }
    result = result + minimum;
  	strings.erase(minimum_pos);
  }
  
  std::cout << result;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:22: error: no matching function for call to 'std::vector<std::__cxx11::basic_string<char> >::erase(int&)'
   36 |         strings.erase(minimum_pos);
      |         ~~~~~~~~~~~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:1536:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1536 |       erase(const_iterator __position)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1536:28: note:   no known conversion for argument 1 from 'int' to 'std::vector<std::__cxx11::basic_string<char> >::const_iterator'
 1536 |       erase(const_iterator __position)
      |             ~~~~~~~~~~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note: candidate: 'std::vector<_Tp, _Alloc>::iterator std::vector<_Tp, _Alloc>::erase(const_iterator, const_iterator) [with _Tp = std::__cxx11::basic_string<char>; _Alloc = std::allocator<std::__cxx11::basic_string<char> >; iterator = std::vector<std::__cxx11::basic_string<char> >::iterator; const_iterator = std::vector<std::__cxx11::basic_string<char> >::const_iterator]'
 1564 |       erase(const_iterator __first, const_iterator __last)
      |       ^~~~~
/usr/include/c++/14/bits/stl_vector.h:1564:7: note:   candidate expects 2 arguments, 1 provided
Language: C++

#include<iostream>
 
int main(){
  int A,B,C;
  
  cin >> A >> B >> C;
  int five = 0;
  int seven = 0;
  
  if(A==5)five++;
  if(B==5)five++;
  if(C==5)five++;
 
  if(A==7)seven++;
  if(B==7)seven++;
  if(C==7)seven++;
  
  if(five==2 && seven==1)std::cout << "YES";
  else std::cout << "NO";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> A >> B >> C;
      |   ^~~
      |   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
      |                  ^~~
Language: C++

#include<iostream>

int main(){
  int A,B,C;
  
  cin >> A >> B >> C;
  int five = 0;
  int seven = 0;
  
  if(A==5)five++;
  if(B==5)five++;
  if(C==5)five++;

  if(A==7)seven++;
  if(B==7)seven++;
  if(C==7)seven++;
  
  if(five==2 && seven==1)cout << "YES";
  else cout << "NO";
  
  return 0;
}

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

#include<iostream>
#include<string>
#include<vector>
 
int main(){
  int A,B,C;
  int five,seven;
  
  std::cin >> A >> B >> C;
  
  std::vector<int> inputs;
  
  inputs.push_back(A);
  inputs.push_back(B);
  inputs.push_back(C);
  
  five = std::count(inputs.begin(),inputs.end(),5);
  seven = std::count(inputs.begin(),inputs.end(),7);
  
  if(five == 2 && seven == 1)std::cout << "YES";
  else std::cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: 'count' is not a member of 'std'; did you mean 'cout'?
   17 |   five = std::count(inputs.begin(),inputs.end(),5);
      |               ^~~~~
      |               cout
a.cc:18:16: error: 'count' is not a member of 'std'; did you mean 'cout'?
   18 |   seven = std::count(inputs.begin(),inputs.end(),7);
      |                ^~~~~
      |                cout
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
int main(){
  int A,B,C;
  int five,seven;
  
  std::cin >> A >> B >> C;
  
  std::vector<int> inputs;
  
  inputs.push_back(A);
  inputs.push_back(B);
  inputs.push_back(C);
  
  if(inputs.count(5) == 2 && inputs.count(7) == 1)std::cout << "YES";
  else std::cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'class std::vector<int>' has no member named 'count'
   17 |   if(inputs.count(5) == 2 && inputs.count(7) == 1)std::cout << "YES";
      |             ^~~~~
a.cc:17:37: error: 'class std::vector<int>' has no member named 'count'
   17 |   if(inputs.count(5) == 2 && inputs.count(7) == 1)std::cout << "YES";
      |                                     ^~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
int main(){
  int A,B,C;
  
  std::cin >> A >> B >> C;
  
  std::vector<int> inputs;
  
  inputs.push_back(A);
  inputs.push_back(B);
  inputs.push_back(C);
  
  five = std::count(inputs.begin(),inputs.end(),5);
  seven = std::count(inputs.begin(),inputs.end(),7);
  
  if(five == 2 && seven == 1)std::cout << "YES";
  else std::cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:3: error: 'five' was not declared in this scope
   16 |   five = std::count(inputs.begin(),inputs.end(),5);
      |   ^~~~
a.cc:16:15: error: 'count' is not a member of 'std'; did you mean 'cout'?
   16 |   five = std::count(inputs.begin(),inputs.end(),5);
      |               ^~~~~
      |               cout
a.cc:17:3: error: 'seven' was not declared in this scope; did you mean 'setenv'?
   17 |   seven = std::count(inputs.begin(),inputs.end(),7);
      |   ^~~~~
      |   setenv
a.cc:17:16: error: 'count' is not a member of 'std'; did you mean 'cout'?
   17 |   seven = std::count(inputs.begin(),inputs.end(),7);
      |                ^~~~~
      |                cout
Language: C++

#include<iostream>
#include<string>
#include<vector>
 
int main(){
  int A,B,C;
  
  cin >> A >> B >> C;
  
  vector<int> inputs;
  
  inputs.push_back(A);
  inputs.push_back(B);
  inputs.push_back(C);
  
  five = std::count(inputs.begin(),inputs.end(),5);
  seven = std::count(inputs.begin(),inputs.end(),7);
  
  if(five == 2 && seven == 1)cout << "YES";
  else cout << "NO";
}

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 >> A >> B >> C;
      |   ^~~
      |   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:3: error: 'vector' was not declared in this scope
   10 |   vector<int> inputs;
      |   ^~~~~~
a.cc:10:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:10:10: error: expected primary-expression before 'int'
   10 |   vector<int> inputs;
      |          ^~~
a.cc:12:3: error: 'inputs' was not declared in this scope; did you mean 'puts'?
   12 |   inputs.push_back(A);
      |   ^~~~~~
      |   puts
a.cc:16:3: error: 'five' was not declared in this scope
   16 |   five = std::count(inputs.begin(),inputs.end(),5);
      |   ^~~~
a.cc:16:15: error: 'count' is not a member of 'std'; did you mean 'cout'?
   16 |   five = std::count(inputs.begin(),inputs.end(),5);
      |               ^~~~~
      |               cout
a.cc:17:3: error: 'seven' was not declared in this scope; did you mean 'setenv'?
   17 |   seven = std::count(inputs.begin(),inputs.end(),7);
      |   ^~~~~
      |   setenv
a.cc:17:16: error: 'count' is not a member of 'std'; did you mean 'cout'?
   17 |   seven = std::count(inputs.begin(),inputs.end(),7);
      |                ^~~~~
      |                cout
a.cc:19:30: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |   if(five == 2 && seven == 1)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:20:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |   else cout << "NO";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~