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

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

int main() {
  int a, b, c ;
  cin >> a >> b >> c;
    vector<int> vec = {a, b, c};
    sort(vec.begin(), vec.end())
      

    if (vec.at(0)==5 && vec.at(1)==5 && vec.at(2)==7){
      cout << "YES" << endl;
    }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:33: error: expected ';' before 'if'
    8 |     sort(vec.begin(), vec.end())
      |                                 ^
      |                                 ;
......
   11 |     if (vec.at(0)==5 && vec.at(1)==5 && vec.at(2)==7){
      |     ~~                           
a.cc:14:3: error: 'else' without a previous 'if'
   14 |   else {
      |   ^~~~
Language: C++

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

int main() {
  int a, b, c ;
  cin >> a >> b >> c;
    vector<int> vec = {a, b, c};
    sort(vec.begin(), vec.end());
  　swap(vec.at(1) , vec.at(2));
  

    for (int i = 0; i < vec.size(); i++) {
        cout << vec.at(i) << endl;
    }
    
    if (vec.at(0)==5 && vec.at(1)==7 && vec.at(2)==5){
      cout << "YES" << endl;
    }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc:9:3: error: extended character 　 is not valid in an identifier
    9 |   　swap(vec.at(1) , vec.at(2));
      |   ^
a.cc: In function 'int main()':
a.cc:9:3: error: '\U00003000swap' was not declared in this scope
    9 |   　swap(vec.at(1) , vec.at(2));
      |   ^~~~~~
Language: C++

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

int main() {
  int a, b, c,;
  cin >> a >> b >> c;
    vector<int> vec = {a, b, c};
    sort(vec.begin(), vec.end());

    for (int i = 0; i < vec.size(); i++) {
        cout << vec.at(i) << endl;
    }
  swap (vec.at(1) ,vec.at(2));
    
    if (vec.at(0)==5 && vec.at(1)==7 && vec.at(2)==5){
      cout << "YES" << endl;
    }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:15: error: expected unqualified-id before ';' token
    5 |   int a, b, c,;
      |               ^
Language: C++

#include<stdio.h>
int main()
{
    int a,b,c;
    scanf("%d %d %d",&a,&b,&c);
  	if(a=b=5 && c=7)
    {
      printf("%s,"yes");
    }
    else if(a=c=5 && b=7)
    {
      printf("%s,"yes");
    }
    else if(c=b=5 && a=7)
    {
      printf("%s,"yes");
    }
    else if()
             {
    printf("%s,"yes");
           }
    return 0;
}

Compiler output:
a.cc:8:22: warning: missing terminating " character
    8 |       printf("%s,"yes");
      |                      ^
a.cc:8:22: error: missing terminating " character
    8 |       printf("%s,"yes");
      |                      ^~~
a.cc:12:22: warning: missing terminating " character
   12 |       printf("%s,"yes");
      |                      ^
a.cc:12:22: error: missing terminating " character
   12 |       printf("%s,"yes");
      |                      ^~~
a.cc:16:22: warning: missing terminating " character
   16 |       printf("%s,"yes");
      |                      ^
a.cc:16:22: error: missing terminating " character
   16 |       printf("%s,"yes");
      |                      ^~~
a.cc:20:20: warning: missing terminating " character
   20 |     printf("%s,"yes");
      |                    ^
a.cc:20:20: error: missing terminating " character
   20 |     printf("%s,"yes");
      |                    ^~~
a.cc: In function 'int main()':
a.cc:6:18: error: lvalue required as left operand of assignment
    6 |         if(a=b=5 && c=7)
      |                ~~^~~~
a.cc:8:14: error: unable to find string literal operator 'operator""yes' with 'const char [4]', 'long unsigned int' arguments
    8 |       printf("%s,"yes");
      |              ^~~~~~~~
a.cc:10:19: error: lvalue required as left operand of assignment
   10 |     else if(a=c=5 && b=7)
      |                 ~~^~~~
a.cc:12:14: error: unable to find string literal operator 'operator""yes' with 'const char [4]', 'long unsigned int' arguments
   12 |       printf("%s,"yes");
      |              ^~~~~~~~
a.cc:14:19: error: lvalue required as left operand of assignment
   14 |     else if(c=b=5 && a=7)
      |                 ~~^~~~
a.cc:16:14: error: unable to find string literal operator 'operator""yes' with 'const char [4]', 'long unsigned int' arguments
   16 |       printf("%s,"yes");
      |              ^~~~~~~~
a.cc:18:13: error: expected primary-expression before ')' token
   18 |     else if()
      |             ^
a.cc:20:12: error: unable to find string literal operator 'operator""yes' with 'const char [4]', 'long unsigned int' arguments
   20 |     printf("%s,"yes");
      |            ^~~~~~~~
Language: C++

#include<cstdio>
#include<string>
#include<algorithm>
using namespace std;
 
int main(){
  int N, L;
  scanf("%d %d", &N, &L);
  
  string str[100];
  
  for(int i=0; i<N; i++){
    char tmp[L];
    scanf("%s", tmp);
    str[i] = tmp;
  }
  sort(str, str+N);
  
  for(int i = 0; i < N; i++){
    char s;
    s = str[i];
    printf("%s", s);
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'char' in assignment
   21 |     s = str[i];
      |         ~~~~~^
      |              |
      |              std::string {aka std::__cxx11::basic_string<char>}
Language: C++

#include<cstdio>

int main(){
  int a, b, c;
  scanf(%d %d %d, &a, &b, &c);
  
  printf(a*b*c==5*7*5?"YES":"NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected primary-expression before '%' token
    5 |   scanf(%d %d %d, &a, &b, &c);
      |         ^
a.cc:5:10: error: 'd' was not declared in this scope
    5 |   scanf(%d %d %d, &a, &b, &c);
      |          ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class BC042_IrohaAndHaiku {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class BC042_IrohaAndHaiku {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.BufferedReader;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStreamReader;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.util.Arrays;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.StringTokenizer;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:1: error: expected unqualified-id before 'public'
    7 | public class BC042_IrohaAndHaiku {
      | ^~~~~~
Language: C++

import java.io.*;
import java.util.*;
public class BC042_IrohaAndHaiku {

	public static void main(String[] args) throws IOException {
		InputReader in = new InputReader();
		int[] arr = new int[3];
		
		for (int i=0; i<3; i++)
			arr[i] = in.nextInt();
		
		Arrays.sort(arr);
		
		if (isHaiku(arr))
			System.out.println("YES");
		else
			System.out.println("NO");
	}
	
	public static boolean isHaiku(int[] arr) {
		int[] haiku = {5, 5, 7};
		for (int i=0; i<3; i++)
			if (arr[i] != haiku[i])
				return false;
		return true;
	}
	
	static class InputReader {
		public BufferedReader br;
		public StringTokenizer st;
		
		public InputReader() {
			br = new BufferedReader(new InputStreamReader(System.in));
			st = null;
		}
		
		public String next() {
			while (st == null || !st.hasMoreTokens()) {
				try {
					st = new StringTokenizer(br.readLine());
				}
				catch (IOException e) {
					throw new RuntimeException(e);
				}
			}
			return st.nextToken();
		}
		
		public int nextInt() {
			return Integer.parseInt(next());
		}
	}
}

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

#include <iostream>
#include <algorithm>
#include <stdio.h>
#include <vector>
#include <string>
using namespace std;

int main()
{
    int a, b, c;
    bool tf;
    cin >> a >> b >> c;
    if(a == 5){
        if(b == 7){
            if(c == 5){
                tf = true;
            } else {
                tf = false;
            }
        } else if(b == 5){
            if (c == 7){
                tf = true;
            } else {
                tf = false;
            } 
        } else{
            tf = false
        }
    } else if(a == 7){
        if(b == 5 && c == 5){
            tf = true;
        } else {
            tf = false;
        }
    } else {
        tf = false;
    }

    if(tf){
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:23: error: expected ';' before '}' token
   27 |             tf = false
      |                       ^
      |                       ;
   28 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using  namespace  std;
using ll=long long;
int main(){
  int a;
  count5=0;
  count7=0;
  for(int i=0;i<3;i++){
   cin>>a;
    if(a==5)count5++;
    else if(a==7)count7++;
  }
  if(count5==2&&count7==1)
    cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'count5' was not declared in this scope
    6 |   count5=0;
      |   ^~~~~~
a.cc:7:3: error: 'count7' was not declared in this scope
    7 |   count7=0;
      |   ^~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int A, B, C;
  
  cin >> A >> B >> C;
  
  if( (A=5 && B=5 && C=7) || (A=5 && B=7 && C=5) || (A=7 && B=5 && C=5) )
     cout << "YES" << endl;
  
  else
     cout << "NO" << endl;
return 0;
}

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

#include<iostream>
using namespace std;
void main()
{
  int A, B, C;
  
  cin >> A >> B >> C;
  
  if( (A=5 && B=5 && C=7) && (A=5 && B=7 && C=5) && (A=7 && B=5 && C=5) )
     cout << "YES" << endl;
  
  else
     cout << "NO" << endl;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:9:19: error: lvalue required as left operand of assignment
    9 |   if( (A=5 && B=5 && C=7) && (A=5 && B=7 && C=5) && (A=7 && B=5 && C=5) )
      |                 ~~^~~~
a.cc:9:42: error: lvalue required as left operand of assignment
    9 |   if( (A=5 && B=5 && C=7) && (A=5 && B=7 && C=5) && (A=7 && B=5 && C=5) )
      |                                        ~~^~~~
a.cc:9:65: error: lvalue required as left operand of assignment
    9 |   if( (A=5 && B=5 && C=7) && (A=5 && B=7 && C=5) && (A=7 && B=5 && C=5) )
      |                                                               ~~^~~~
Language: C++

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

int main() {
  vector<int> X(3);
  for (int i=0; i<3; i++)
    cin >> X.at(i);
  X == {5,7,5}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected primary-expression before '{' token
    8 |   X == {5,7,5}
      |        ^
Language: C++

package main

import (
	"fmt"
)

func main() {
	var a, b, c int

	fmt.Scanf("%d %d %d", &a, &b, &c)

	if a == b {
		if a == 5 && c == 7 {
			fmt.Printf("YES\n")
		} else {
			fmt.Printf("NO\n")
		}
	} else if b == c {
		if b == 5 && a == 7 {
			fmt.Printf("YES\n")
		} else {
			fmt.Printf("NO\n")
		}
	} else {
		fmt.Printf("NO\n")
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include<iostream>
using namespace std;
void main(){
int a[3],f=0,s=0;
  for(int i=0;i<3;i++){
  cin>>a[i];
  }
  for(int i=0;i<3;i++){
  
   if(a[i]==5)
     f++;
    else if(a[i]==7)
      s++;
    }
  
  if(f==2 && s==1)
    cout<<"YES";
  else
    cout<<"NO";
  
  
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main(){
      | ^~~~
Language: C++

a = input().split(" ")

if (a[0]=="5" and a[1]=="5" and a[2]=="7") or (a[0]=="5" and a[1]=="7" and a[2]=="5") or (a[0]=="7" and a[1]=="5" and a[2]=="4"):
  print("YES")
else:
  print("NO")

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a = input().split(" ")
      | ^
Language: C++

nums=map(int,input().split())
if sorted(nums) == [5,5,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: 'nums' does not name a type
    1 | nums=map(int,input().split())
      | ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(){
    int A[3];
    cin >> A[0] >> A[1] >> A[2];
    sort(A, A + 3);
    if((A[0] == 5) && (A[1] == 5) && (A[2] == 7)) {
        cout << "YES" << endl;
    }
    else {
        cout << "NO" <<endl;
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |     sort(A, A + 3);
      |     ^~~~
      |     short
Language: C++

typedef long long ll;

#include <bits/stdc++.h>
using namespace std;
template<typename A, size_t N, typename T>
void Fill(A (&array)[N], const T &val){
    std::fill( (T*)array, (T*)(array+N), val );
}

int main(){
  ll a[3]
  cin>>a[0]>>a[1]>>a[2];
  sort(a,a+3);
  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:12:3: error: expected initializer before 'cin'
   12 |   cin>>a[0]>>a[1]>>a[2];
      |   ^~~
a.cc:13:8: error: 'a' was not declared in this scope
   13 |   sort(a,a+3);
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
// int N が既に与えられているとする. 
int main(){
  int n = 3
  int flag_five = 0;
  int flag_seven = 0;
  int l, i = 0, a[n];
  while (std::cin >> l) {
    a[i] = l;
    i++;
    if (i >= n) {
      break;
    }
  }
  
  for(int i=0; i<n; i++){
    if (a[i] == 5) {
      flag_five++;
    }
    else if (a[i] == 7){
      flag_seven++;
    }
  }
  
  if (flag_five == 2 && flag_seven ==1){
    std::cout << "YES" << std::endl;
  }
  else{
    std::cout << "NO" << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int flag_five = 0;
      |   ^~~
a.cc:19:7: error: 'flag_five' was not declared in this scope; did you mean 'flag_seven'?
   19 |       flag_five++;
      |       ^~~~~~~~~
      |       flag_seven
a.cc:26:7: error: 'flag_five' was not declared in this scope; did you mean 'flag_seven'?
   26 |   if (flag_five == 2 && flag_seven ==1){
      |       ^~~~~~~~~
      |       flag_seven
Language: Java

public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int[] oto = new int[3];
		//入力を数値に変換
		for(int i=0; i<args.length; i++) {
			oto[i] = Integer.parseInt(args[i]);
	}

		if(oto[0] != 5) {
			int toriaezu = oto[1];
			oto[1] = oto[0];
			oto[0] = toriaezu;
		}

		if(oto[2] != 5) {
			int toriaezu = oto[1];
			oto[1] = oto[2];
			oto[2] = toriaezu;
		}

		if(oto[0] == 5 && oto[1] == 7 && oto[2] == 5) {
			System.out.print("YES");
		}else {
			System.out.print("NO");
		}
}



Compiler output:
Main.java:1: 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

package a042;

public class Iroha {

	public static void Main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		int[] oto = new int[3];
		//入力を数値に変換
		for(int i=0; i<args.length; i++) {
			oto[i] = Integer.parseInt(args[i]);
	}

		if(oto[0] != 5) {
			int toriaezu = oto[1];
			oto[1] = oto[0];
			oto[0] = toriaezu;
		}

		if(oto[2] != 5) {
			int toriaezu = oto[1];
			oto[1] = oto[2];
			oto[2] = toriaezu;
		}

		if(oto[0] == 5 && oto[1] == 7 && oto[2] == 5) {
			System.out.print("YES");
		}else {
			System.out.print("NO");
		}
}
}


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

#include<iostream>

using namespace std;

int main(){
int num[3];
cin>>num[0]>>num[1]>>num[2];
int num5,num7;
num5=0;
num7=0;
for(int i=0;i<3;i++){
if(num[i]==5){
num5++;
}
else if(num[i]==7){
num7++;
}
}
if(num5==2 && num7==1){
cout<<"YES"<<rndl;
}
else{
cout<<"NO"<<endl;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:14: error: 'rndl' was not declared in this scope
   20 | cout<<"YES"<<rndl;
      |              ^~~~
Language: C++

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

int main(){
  vector<int> A(3);
  cin >> A.at(0) >> A.at(1) >. A.at(2);
  sort(A.begin(),A.end());
  if(A.at(0) == 5&&A.at(1) == 5&&A.at(2) == 7){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:30: error: expected primary-expression before '.' token
    6 |   cin >> A.at(0) >> A.at(1) >. A.at(2);
      |                              ^
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		int A = scan.nextInt();
      	int B = scan.nextInt();
      	int C = scan.nextInt();
      
      	check[0] = A;
        check[1] = B;
        check[2] = C;
      	
      	int count_5 = 0;
      	int count_7 = 0;
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
          check[i]
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
}

Compiler output:
Main.java:23: error: not a statement
          check[i]
               ^
Main.java:23: error: ';' expected
          check[i]
                  ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int[] check = new int[3];
		check[0] = int A = scan.nextInt();
      	check[1] = int B = scan.nextInt();
      	check[2] = int C = scan.nextInt();
      	
      	int count_5 = 0;
      	int count_7 = 0;
        for(int i=0; i<check.length; i++){
          if(check[i] == 5){
            count_5++;
          }else if(check[i] == 7){
            count_7++;
          }
          check[i]
        }
      
      	if(count_5 == 2 && count_7 == 1){
          System.out.println("YES");
        }else{
          System.out.println("NO");
        }
	}
}

Compiler output:
Main.java:7: error: '.class' expected
		check[0] = int A = scan.nextInt();
		               ^
Main.java:8: error: '.class' expected
      	check[1] = int B = scan.nextInt();
      	               ^
Main.java:9: error: '.class' expected
      	check[2] = int C = scan.nextInt();
      	               ^
Main.java:19: error: not a statement
          check[i]
               ^
Main.java:19: error: ';' expected
          check[i]
                  ^
5 errors
Language: C++

#include<iostream>
#include<algorithm>

using namespace std;


int main(){
	int a[3];
  	for(int i=0;i<3;i++){
		cin>>a[i];
    }
  	sort(a,a+3);
  	
  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:15:13: error: 'YES' was not declared in this scope
   15 |     cout << YES << endl;
      |             ^~~
a.cc:16:5: error: expected '}' before 'else'
   16 |     else{
      |     ^~~~
a.cc:14:36: note: to match this '{'
   14 |   if(a[0]==5 && a[1]==5 && a[2]==7){
      |                                    ^
a.cc:17:15: error: 'NO' was not declared in this scope
   17 |       cout << NO << endl;
      |               ^~
Language: C++

#include <bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define OP ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define sz(x) (int)x.size()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for(int i = 0; i < n; ++i)
#define repr(i,n) for(int i = n - 1; i >= 0; --i)
#define Rep(i, a, n) for(int i = (a); i <=(n); ++i)
#define repst(i, n) for(auto it = n.begin(); it != n.end(); ++it)
#define Repr(i, a, n) for(int i = (n); i >= (a); --i)
typedef long long ll;

const int inf = int(1e9);
const int mod = inf + 7;
const double PI = acos(-1.0);
using namespace std;
const int N = 1e5 + 155;

void solve(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a, a + n);
    if (a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "YES";
    else cout << "NO";
}

int main()
{
    OP
    solve();
    return 0;
}    
    
    


Compiler output:
a.cc: In function 'void solve()':
a.cc:25:17: error: 'n' was not declared in this scope
   25 |     sort(a, a + n);
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main() {
  int a[3];
  int ans,sum;
  
  for(int i=0; i<3; i++) {
    cin >> a[i];
    sum += a[i];
    if(a[i] = 5 || a[i] = 7) {
      ans++;
    }
  }
  if(sum == 17 && ans == 3) {
    cout << "YES" <<endl;
  } else {
    cout << "NO" <<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |     if(a[i] = 5 || a[i] = 7) {
      |               ~~^~~~~~~
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>
int mian()
{
	int a,b,c;
	scanf("%d %d %d ",&a,&b,&c);
	if (a==5 && b==5 && c==7) {
		printf("Yes\n");     
	        	        	   return 0;
	}
	else if(a==5 && b==7 && c==5){
		printf("YES\n");     
		return 0;
	}
	else if(a==7 && b==5&& c==5){
		printf("Yes\n");     
		return 0;
	}
	else{
		printf("NO\n");     
		
	}
	return 0;
}

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

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

int main(int argc, char **argv){
  int n1 = atoi(argv[1]);
  int n2 = atoi(argv[2]);
  int n3 = atoi(argv[3]);
  if(n1 == 5){
    if(n2 == 5){
      if(n3 == 7){
	printf("YES");
      }
      else{
	printf("NO");
      }
    }
    else if(n2 == 7 ){
      if ( n3 == 5){
	printf("YES");
      }
      else{
	printf("NO");
      }
    }
    else{
      printf("NO");
    }
  }
  if (n1 == 7 ){
    if(n2 == 5){
      if(n3 == 5){
	printf("YES");
      }
      else{
	printf("NO");
      }
    }
    else{
      printf("NO");
    }
  }
  return 0;
}


Compiler output:
main.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    2 | include<stdlib.h>
      |        ^
Language: C++

#include <cstdio>
#include <algorithm>

int main() {
  int a[3];
  for(int i=0; i<3; ++i) {
    scanf("%d", a+i);
  }
  std:sort(a, a+3);
  printf("%s", a[0]==5&&a[1]==5&&a[2]==7?"YES":"NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    9 |   std:sort(a, a+3);
      |       ^~~~
      |       std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from a.cc:2:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
    int a,b,c;
    cin >> a >> b >> c;
    if(a==5&&b==7&&C==5||a==5&&b==5&&c==7||a==7&&b==5&&c==5){
   cout >> YES; >> endl;}
   else{
       cout >> NO >> endl;
   }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:20: error: 'C' was not declared in this scope
    6 |     if(a==5&&b==7&&C==5||a==5&&b==5&&c==7||a==7&&b==5&&c==5){
      |                    ^
a.cc:7:12: error: 'YES' was not declared in this scope
    7 |    cout >> YES; >> endl;}
      |            ^~~
a.cc:7:17: error: expected primary-expression before '>>' token
    7 |    cout >> YES; >> endl;}
      |                 ^~
a.cc:9:16: error: 'NO' was not declared in this scope
    9 |        cout >> NO >> endl;
      |                ^~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:21: error: lvalue required as left operand of assignment
    6 |   if((A+B+C)/(5+7+5)=1)
      |                     ^
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);
      elseif(A==5 && B==7 && C==5);
      elseif ( A==7 && B==5 && C==7);
  printf("yes\n");
  else; printf("no\n");
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    7 |       elseif(A==5 && B==7 && C==5);
      |       ^~~~~~
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else; printf("no\n");
      |   ^~~~
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);
      elseif(A==5 && B==7 && C==5);
      elseif ( A==7 && B==5 && C==7);
  printf("yes\n");
  elseif printf("no\n");
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    7 |       elseif(A==5 && B==7 && C==5);
      |       ^~~~~~
main.c:10:9: error: expected ';' before 'printf'
   10 |   elseif printf("no\n");
      |         ^~~~~~~
      |         ;
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);
      elseif(A==5 && B==7 && C==5);
      elseif ( A==7 && B==5 && C==7);
  printf("yes\n");
  else printf("no\n");
  return 0;
  
}


Compiler output:
main.c: In function 'main':
main.c:7:7: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
    7 |       elseif(A==5 && B==7 && C==5);
      |       ^~~~~~
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else printf("no\n");
      |   ^~~~
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
   if A==5 && B==7 && C==5
    if A==7 && B==5 && C==7;
  printf("yes\n");
  else printf("no\n");
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected '(' before 'A'
    6 |   if A==5 && B==5 && C==7
      |      ^
      |      (
main.c:10:3: error: 'else' without a previous 'if'
   10 |   else printf("no\n");
      |   ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(void)
{
  int a, b, c;
  
  cin >> a >> b >> c;
  
  if((a + b + c == 19) && ((a == 7 && b == 7) || (a==7 && c == 7) || (b==7 && c==7)))
  {
    cout << "YES" << endl;
  }
  else
  {
    count << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'count' was not declared in this scope
   16 |     count << "NO" << endl;
      |     ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main(){
  int a;
  int b;
  int c;
  cin>> a >> b >> c ;
  int sum = a+b+c;
  string ans = "YES"
  if(sum -5 - 5 -7 != 0){
  	ans = "NO";
  }
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if(sum -5 - 5 -7 != 0){
      |   ^~
Language: C++

using namespace std;
 
int main(){
  int a;
  int b;
  int c;
  cin>> a >> b >> c ;
  int sum = a+b+c;
  string ans = "YES";
  if(sum -5 - 5 -7 != 0){
  	ans = "NO";
  }
  cout << ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>> a >> b >> c ;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:9:3: error: 'string' was not declared in this scope
    9 |   string ans = "YES";
      |   ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | using namespace std;
a.cc:11:9: error: 'ans' was not declared in this scope
   11 |         ans = "NO";
      |         ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << ans <<endl;
      |   ^~~~
a.cc:13:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:11: error: 'ans' was not declared in this scope
   13 |   cout << ans <<endl;
      |           ^~~
a.cc:13:17: error: 'endl' was not declared in this scope
   13 |   cout << ans <<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
Language: C++

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

int main(){
  int a;
  int b;
  int c;
  cin>> a >> b >> c ;
  int sum = a+b+c;
  string ans = "YES"
  if(sum -5 - 5 -7 != 0){
  	ans = "NO";
  }
  cout << ans <<endl;
}
	

Compiler output:
a.cc: In function 'int main()':
a.cc:11:3: error: expected ',' or ';' before 'if'
   11 |   if(sum -5 - 5 -7 != 0){
      |   ^~
Language: Java

public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        if((a == 5) && (b == 5) && (c == 7)){
            System.out.println("yes");
        }else if((a == 5)&&(b == 7)&&(c==5)){
            System.out.println("yes");
        }else if((a==7)&&(b==5)&&(c==5)){
            System.out.println("yes");
        }else{
            System.out.println("No");
        }
    }

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

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

int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c==17)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  
  
}

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

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

int main(){
  int a, b, c;
  cin >> a >> b >> c;
  if((a==5&&b==5&&c==7)(a==5&&b==7&&c==5)(a==7&&b==5&&c==5)){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expression cannot be used as a function
    7 |   if((a==5&&b==5&&c==7)(a==5&&b==7&&c==5)(a==7&&b==5&&c==5)){
      |      ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

include <bits/stdc++.h>

using namespace std;

int main() {
  
  int a, b, c;
  cin >> a >> b >> c;
  if ((a == 5 || a == 7) && (b== 5 || b == 7) && (c == 5 || c == 7) && a+b+c == 17) {
    cout << "YES\n";
  } else {
    cout << "NO\n";
  }
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin >> a >> b >> c;
      |   ^~~
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout << "YES\n";
      |     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "NO\n";
      |     ^~~~
Language: C++

#include <iostream>
#include <stdio.h>

using namespace std;

int main()
{
    int A[3];
    for (int i = 0; i < 3; i++)
    {
        cin >> A[i];
    }

    sort(A, A + 3);

    if (A[0]==A[1] && A[0]==5 && A[2]==7)
    {
        cout << "YES" << endl;
    } else
    {
        cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   14 |     sort(A, A + 3);
      |     ^~~~
      |     short
Language: C++

#include <cstdio>
#include <string>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a>>b>>c;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include <string>
  +++ |+#include <iostream>
    3 | 
a.cc:10:5: error: 'cout' was not declared in this scope
   10 |     cout<<"YES";
      |     ^~~~
a.cc:10:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:8: error: 'cout' was not declared in this scope
   11 |   else cout<<"NO";
      |        ^~~~
a.cc:11:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:3: error: 'cout' was not declared in this scope
   12 |   cout<<endl;
      |   ^~~~
a.cc:12:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:9: error: 'endl' was not declared in this scope
   12 |   cout<<endl;
      |         ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include <string>
  +++ |+#include <ostream>
    3 |
Language: C++

#include <iostream>
using namespace std;

int main(void){
    int a[3],n=0,m=0;
    for(int i = 0;i >0;i+){
        if(a[i] == 5) n++;
        if(a[i] == 7) m++;
    }
    if(n == 2 && m == 7){
        cout<<"YES"<<endl;
        return 0;
    }else{
        cout<<"NO"<<endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected primary-expression before ')' token
    6 |     for(int i = 0;i >0;i+){
      |                          ^
Language: C++

#include <iostream>
using namespace std;

int main(void){
    int a[i],n=0,m=0;
    for(int i = 0;i >0;i+;){
        if(a[i] == 5) n++;
        if(a[i] == 7) m++;
    }
    if(n == 2 && m == 7){
        cout<<"YES"<<endl;
        return 0;
    }else{
        cout<<"NO"<<endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: 'i' was not declared in this scope
    5 |     int a[i],n=0,m=0;
      |           ^
a.cc:6:26: error: expected primary-expression before ';' token
    6 |     for(int i = 0;i >0;i+;){
      |                          ^
a.cc:6:26: error: expected ')' before ';' token
    6 |     for(int i = 0;i >0;i+;){
      |        ~                 ^
      |                          )
a.cc:6:27: error: expected primary-expression before ')' token
    6 |     for(int i = 0;i >0;i+;){
      |                           ^
Language: C++

#include <stdio.h>

int main(void){
    int a[3], count = 0;
    
    for(int i = 0; i > 0;i++){
        cin>>a[i];
        if(a[i] == 5 || a[i] == 7){
            count++;
        }else{
            cout<<"NO"<<endl;
            return 0;
        }
    }
    if(count == 3){
        cout<<"YES"<<endl;
        return 0;
    }else{
        cout<<"NO"<<endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>a[i];
      |         ^~~
a.cc:11:13: error: 'cout' was not declared in this scope; did you mean 'count'?
   11 |             cout<<"NO"<<endl;
      |             ^~~~
      |             count
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |             cout<<"NO"<<endl;
      |                         ^~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   16 |         cout<<"YES"<<endl;
      |         ^~~~
      |         count
a.cc:16:22: error: 'endl' was not declared in this scope
   16 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:19:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   19 |         cout<<"NO"<<endl;
      |         ^~~~
      |         count
a.cc:19:21: error: 'endl' was not declared in this scope
   19 |         cout<<"NO"<<endl;
      |                     ^~~~
Language: C++

#include<stdio.h>
int main(void){
int a[3],count = 0;

for(int i = 0 ;i < 3; i++){
    cin>>a[i];
    if(a[i] == 5 || a[i] == 7){
        count++;
    }else{
        cout<<"NO"<<endl;
        return 0;
    }
}

if(count == 3){
    cout<<"YES"<<endl;
    return 0;
}else{
    count<<"NO"<<endl;
    return 0;
}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>a[i];
      |     ^~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'count'?
   10 |         cout<<"NO"<<endl;
      |         ^~~~
      |         count
a.cc:10:21: error: 'endl' was not declared in this scope
   10 |         cout<<"NO"<<endl;
      |                     ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   16 |     cout<<"YES"<<endl;
      |     ^~~~
      |     count
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:19:10: error: invalid operands of types 'int' and 'const char [3]' to binary 'operator<<'
   19 |     count<<"NO"<<endl;
      |     ~~~~~^~~~~~
      |     |      |
      |     int    const char [3]
a.cc:19:18: error: 'endl' was not declared in this scope
   19 |     count<<"NO"<<endl;
      |                  ^~~~
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<map>
#include<set>
using namespace std;
typedef long long ll;
typedef vector<int> VI;


int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int t[10] = { 0 };
	t[a] ++ t[b]++; t[c] ++;
	if (t[5] == 2 && t[7] == 1) cout << "Yes" << endl;
	else cout << "NO" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected ';' before 't'
   19 |         t[a] ++ t[b]++; t[c] ++;
      |                ^~
      |                ;
Language: C++

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<stack>
#include<queue>
#include<map>
#include<set>
using namespace std;
typedef long long ll;
typedef vector<int> VI;


int main() {
	int a, b, c;
	cin >> a >> b >> c;
	int t[10] = { 0 };
	t[a] + ; t[b]++; t[c] ++;
	if (t[5] == 2 && t[7] == 1) cout << "Yes" << endl;
	else cout << "NO" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:16: error: expected primary-expression before ';' token
   19 |         t[a] + ; t[b]++; t[c] ++;
      |                ^
Language: C++

#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;

int main(){
    int go = 0;
    int shiti = 0;
    string aa, b, c;
    cin>>aa>>b>>c;
    int a[3];
    a[0] = aa.size();
    a[1] = b.size();
    a[2] = c.size();

    for(i=0;i<3;i++){
        if(a[i]==5){
            go++;
        }
        else if(a[i]==7){
            shiti++;
        }
    }

    if(go==2 ||shiti==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
        
    return 0;
}


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

#include <iostream>
#include <algorithm>
#include <math.h>
#include <stdio.h>
using namespace std;

int main(){
    int go = 0;
    int shiti = 0;
    string a, b, c;
    cin>>a>>b>>c;
    int a[3];
    a[0] = a.size();
    a[1] = b.size();
    a[2] = c.size();

    for(i=0;i<3;i++){
        if(a[i]==5){
            go++;
        }
        else if(a[i]==7){
            shiti++;
        }
    }

    if(go==2 ||shiti==1){
        cout<<"YES"<<endl;
    }
    else{
        cout<<"NO"<<endl;
    }
        
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: conflicting declaration 'int a [3]'
   12 |     int a[3];
      |         ^
a.cc:10:12: note: previous declaration as 'std::string a'
   10 |     string a, b, c;
      |            ^
a.cc:17:9: error: 'i' was not declared in this scope
   17 |     for(i=0;i<3;i++){
      |         ^
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==7&&b==5&&c==5){
    printf("YES");
     }
        else if(a==5&&b==7&&c==5){
    printf("YES");
        }
  else{
    printf("NO");
  return 0;
  }
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
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==7&&b==5&&c==5){
    printf("YES");
     }
        else if(a==5&&b==7&&c==5){
    printf("YES");
        }
  else{
    printf("NO");
  return 0;
  }
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: invalid operands to binary & (have 'char *' and 'int')
    4 |   scanf("%d%d%d"&a,&b,&c);
      |         ~~~~~~~~^
      |         |
      |         char *
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main() {
  int A, B, C;
  cin >> A >> B >> C;
  vector<int> vec(3);
  vec = {A, B, C};
  sort(vec.begin(),vec.end());
  if (vec.at(0) == 5 && vec.at(1) == 5 && vec.at(2) == 7) {
    cout << "YES" << endl;
  }
  else {
    cout << NO << endl;
  }
}

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

#include <algorithm>
#include <vector>
#include <string>
#include <cstring>
#include <complex>
#include <stack>
#include <queue>
#include <unordered_map>
#include <map>
using namespace std ;
 
void main(){
	int n, 1;
	vector<string> v;
	string s;
	cin >> n >> 1;
 
	int i = 0;
	for(i = 0; i < n; i++){
		cin >> s;
		v.push_back(s);
	}
 
	sort(v.begin(), v.end());
 
	for(i = 0; i < n; i++){
		cout << v[i];
	}
 
	cout << endl;
}

Compiler output:
a.cc:12:1: error: '::main' must return 'int'
   12 | void main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:16: error: expected unqualified-id before numeric constant
   13 |         int n, 1;
      |                ^
a.cc:16:9: error: 'cin' was not declared in this scope
   16 |         cin >> n >> 1;
      |         ^~~
a.cc:10:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    9 | #include <map>
  +++ |+#include <iostream>
   10 | using namespace std ;
a.cc:27:17: error: 'cout' was not declared in this scope
   27 |                 cout << v[i];
      |                 ^~~~
a.cc:27:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:30:9: error: 'cout' was not declared in this scope
   30 |         cout << endl;
      |         ^~~~
a.cc:30:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'