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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,d=0, e=0;
  for(int i=0; i<3; i++){
cin>>a;
    if(a==5)d++;
    if(a==7)e++;}
  if(a==2 and e=1)cout<<"YES";
  else cout<<"NO";}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |   if(a==2 and e=1)cout<<"YES";
      |      ~~~~~^~~~~
Language: Java

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

public class Main
{
	public static void main(String [] args)
    {
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
 		String [] anArray = reader.readLine().split(" ");
      
      	int counterFor7 = 0;
        int counterFor5 = 0;
      
      	for(int i = 0; i < anArray.length; i++)
        {
        	if(Integer.parseInt(anArray[i]) == 7)
            {
            	counterFor7++;
            }
            else if(Integer.parseInt(anArray[i]) == 5)
            {
            	counterFor5++;
            }
        }
      
      	if(counterFor7 == 2 && counterFor5 == 1)
        {
        	System.out.println("Yes");
        }
      	else
        {
        	System.out.println("No");
        }
    }
}


Compiler output:
Main.java:9: error: unreported exception IOException; must be caught or declared to be thrown
 		String [] anArray = reader.readLine().split(" ");
 		                                   ^
1 error
Language: Java

import java.util.*;

public class Main
{
	public static void main(String [] args)
    {
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
 		String [] anArray = reader.readLine().split(" ");
      
      	int counterFor7 = 0;
        int counterFor5 = 0;
      
      	for(int i = 0; i < anArray.length(); i++)
        {
        	if(Integer.parseInt(anArray[i]) == 7)
            {
            	counterFor7++;
            }
            else if(Integer.parseInt(anArray[i]) == 5)
            {
            	counterFor5++;
            }
        }
      
      	if(counterFor7 == 2 && counterFor5 == 1)
        {
        	System.out.println("Yes");
        }
      	else
        {
        	System.out.println("No");
        }
    }

}


Compiler output:
Main.java:7: error: cannot find symbol
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    	^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    	                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:7: error: cannot find symbol
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    	                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:13: error: cannot find symbol
      	for(int i = 0; i < anArray.length(); i++)
      	                          ^
  symbol:   method length()
  location: variable anArray of type String[]
4 errors
Language: Java

import java.util.*;

public class Main
{
	public static void main(String [] args)
    {
    	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
 		String [] anArray = reader.readLine().split(" ");
      
      	int counterFor7 = 0;
        int counterFor5 = 0;
      
      	for(int i = 0; i < anArray.length(); i++)
        {
        	if(Integer.parseInt(anArray[i]) == 7)
            {
            	counterFor7++;
            }
            else if(Integer.parseInt(anArray[i]) == 5)
            {
            	counterFor5++;
            }
        }
      
      	if(counterFor7 == 2 && counterFor5 == 1)
        {
        	System.out.println("Yes")
        }
      	else
        {
        	System.out.println("No")
        }
    }

}

Compiler output:
Main.java:27: error: ';' expected
        	System.out.println("Yes")
        	                         ^
Main.java:31: error: ';' expected
        	System.out.println("No")
        	                        ^
2 errors
Language: C++

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

int x ,y;

void process(int n){
	if(n == 5) ++x;
  	if(n == 7) ++y;
}

int main(){
	int a; 
  	for(int i = 0;i < 3 ; ++i){
		cin >> a;
      	process();
    }
  	if(x == 2 && y == 1) cout << "YES" << endl;
  	else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: too few arguments to function 'void process(int)'
   15 |         process();
      |         ~~~~~~~^~
a.cc:6:6: note: declared here
    6 | void process(int n){
      |      ^~~~~~~
Language: C++

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

int main() {
	int a, b, c;
  	cin >> a >> b >> c;
 
  	if(a*b*c==175 && a!=1 && b!=1 && c!=1)
      cout << "YES" <<endl;
  	else
      cout << "NO" NNendl;
}


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

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

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

Compiler output:
a.cc:4:1: error: 'main' does not name a type
    4 | main void(){
      | ^~~~
Language: C++

#include<iostream>
#include<algorithm>
using namespace std;
int main()
{  int n;
 cin>>n;
  string a[n];
   for(int i=0;i<n;i++)
   { cin>>a[i];
   }
 sort(a,a+n);
 for(int j=0;j<n;j++)
 { cout<<a[i];
 }
 return 0;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: 'i' was not declared in this scope
   13 |  { cout<<a[i];
      |            ^
Language: C++

#include<iostream>

using namespace std;

bool search();

int main(){
    int a[3];
    int a_size = sizeof(a)/sizeof(a[0]);
    for(int i=0;i<a_size;i++){
        cout << "a[" << i << "]: ";
        cin >> a[i];
    }
    if(search(a , a_size)){
        cout << "YES";
    }else{
        cout << "NO";
    }    

}

bool search(int* p, int n){
    int count=0;
    if(*p++ == 5){
        count++;
        if(*p++ == 5){
            count++;
            *p = *p-count;
            if(*p++ == 7){
                count++;
                return 1;
            }
        }
    }
    return 0;    
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:14: error: no matching function for call to 'search(int [3], int&)'
   14 |     if(search(a , a_size)){
      |        ~~~~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/string:51,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:2332:5: note: candidate: 'template<class _ForwardIterator1, class _ForwardIterator2, class _BinaryPredicate> _ForwardIterator1 std::search(_ForwardIterator1, _ForwardIterator1, _ForwardIterator2, _ForwardIterator2, _BinaryPredicate)'
 2332 |     search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
      |     ^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:2332:5: note:   candidate expects 5 arguments, 2 provided
a.cc:5:6: note: candidate: 'bool search()'
    5 | bool search();
      |      ^~~~~~
a.cc:5:6: note:   candidate expects 0 arguments, 2 provided
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
     if(A=5 && B=5) {
            if(C=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
     }
        if(C=5 && B=5) {
            if(A=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
        }
        if(A=5 && C=5) {
            if(B=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
        }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |      if(A=5 && B=5) {
      |           ~~^~~~
a.cc:15:16: error: lvalue required as left operand of assignment
   15 |         if(C=5 && B=5) {
      |              ~~^~~~
a.cc:23:16: error: lvalue required as left operand of assignment
   23 |         if(A=5 && C=5) {
      |              ~~^~~~
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
     if(A=5 && B=5){
            if(C=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
     }
        if(C=5 && B=5){
            if(A=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
        }
        if(A=5 && C=5){
            if(B=7){
                cout<< "Yes" <<endl;
        }
        else {
            cout<< "No" <<endl;
        }
        }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |      if(A=5 && B=5){
      |           ~~^~~~
a.cc:15:16: error: lvalue required as left operand of assignment
   15 |         if(C=5 && B=5){
      |              ~~^~~~
a.cc:23:16: error: lvalue required as left operand of assignment
   23 |         if(A=5 && C=5){
      |              ~~^~~~
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
     if(A=5||B=5){
            if(C=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
     }
        if(C=5||B=5){
            if(A=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
        }
        if(A=5||C=5){
            if(B=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
        }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |      if(A=5||B=5){
      |           ~^~~
a.cc:15:15: error: lvalue required as left operand of assignment
   15 |         if(C=5||B=5){
      |              ~^~~
a.cc:23:15: error: lvalue required as left operand of assignment
   23 |         if(A=5||C=5){
      |              ~^~~
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
     if(A=5||B=5){
            if(C=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
        if(C=5||B=5){
            if(A=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
        if(A=5||C=5){
            if(B=7){
                cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: lvalue required as left operand of assignment
    7 |      if(A=5||B=5){
      |           ~^~~
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |         if(C=5||B=5){
      |              ~^~~
a.cc:21:15: error: lvalue required as left operand of assignment
   21 |         if(A=5||C=5){
      |              ~^~~
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:14:21: note: to match this '{'
   14 |         if(C=5||B=5){
      |                     ^
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:7:18: note: to match this '{'
    7 |      if(A=5||B=5){
      |                  ^
a.cc:29:2: error: expected '}' at end of input
   29 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
    if(A+B+C=17){
        if(A=B=10||B=C=10||A=C=10){
            cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |     if(A+B+C=17){
      |        ~~~^~
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |         if(A=B=10||B=C=10||A=C=10){
      |                        ~~^~~
Language: C++

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

int main(){
    int A,B,C;
    cin >> A >> B >> C;
    if(A+B+C=17){
        if(A=B=5||B=C=5||A=C=5){
            cout<<"Yes"<<endl;
        }
        else {
            cout<<"No"<<endl;
        }
    }
}

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

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

int main(){
 int a,b,c;
  cin>>a>>b>>c;
  
  if(a==5)cnt5++;
  else if(a==7)cnt7++;
  
  if(b==5)cnt5++;
  else if(b==7)cnt7++;
  
  if(c==5)cnt5++;
  else if(c==7)cnt7++;
  
  if(cnt5==2&&cnt7==1)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: 'cnt5' was not declared in this scope
    9 |   if(a==5)cnt5++;
      |           ^~~~
a.cc:10:16: error: 'cnt7' was not declared in this scope
   10 |   else if(a==7)cnt7++;
      |                ^~~~
a.cc:12:11: error: 'cnt5' was not declared in this scope
   12 |   if(b==5)cnt5++;
      |           ^~~~
a.cc:13:16: error: 'cnt7' was not declared in this scope
   13 |   else if(b==7)cnt7++;
      |                ^~~~
a.cc:15:11: error: 'cnt5' was not declared in this scope
   15 |   if(c==5)cnt5++;
      |           ^~~~
a.cc:16:16: error: 'cnt7' was not declared in this scope
   16 |   else if(c==7)cnt7++;
      |                ^~~~
a.cc:18:6: error: 'cnt5' was not declared in this scope
   18 |   if(cnt5==2&&cnt7==1)cout<<"Yes"<<endl;
      |      ^~~~
a.cc:18:15: error: 'cnt7' was not declared in this scope
   18 |   if(cnt5==2&&cnt7==1)cout<<"Yes"<<endl;
      |               ^~~~
Language: C++

#include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <string>
#include <vector>
#define ll long long
#define ull unsigned long long
#define YES cout << "YES" << endl
#define NO cout << "NO" << endl
#define yes cout << "Yes" << endl
#define no cout << "No" << endl
#define FOR(i,start,stop)  for(int i=(start); i < (stop); i++)
#define FORD(i,start,stop) for(int i=(start); i >= (stop); i--)
#define RIP(i,stop) FOR(i,0,stop)
#define PI 3.141592653589793
#define PRECISION(c,f) fixed << setprecision(c) << f
using namespace std;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  
  int a,b,c; cin >> a >> b >> c;

  ans5 = 0;
  ans7 = 0;

  if(a == 5) ans5++;
  if(b == 5) ans5++;
  if(c == 5) ans5++;

  if(a == 7) ans7++;
  if(b == 7) ans7++;
  if(c == 7) ans7++;

  if(ans5 == 2 and ans7 == 1) YES;
  else NO;

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:3: error: 'ans5' was not declared in this scope
   26 |   ans5 = 0;
      |   ^~~~
a.cc:27:3: error: 'ans7' was not declared in this scope
   27 |   ans7 = 0;
      |   ^~~~
Language: C

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

 int x[10],a=0,b=0,i;

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

    if(x[i]==5){
        a++;
    }
     if(x[i]==7){
        b++;
    }
    else if(a==2&&b==1){
        printf("YES");
    }
     else {
        printf("NO");
    }
}
return0;
}


Compiler output:
main.c: In function 'main':
main.c:6:10: warning: comparison between pointer and integer
    6 | for(i=0;i<x;i++){
      |          ^
main.c:22:1: error: 'return0' undeclared (first use in this function)
   22 | return0;
      | ^~~~~~~
main.c:22:1: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

    int arr[10],i,a=0,b=055 5;

    for(i=1;i<=3;i++){
        scanf("%d",&arr[i]);

        if(arr[i]==5){
            a++;
        }
        else if(arr[i]==7){
            b++;
        }
    }
    if(a==2&&b==1){
        printf("YES");
    }
    else{
        printf("NO");
    }
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:29: error: expected ',' or ';' before numeric constant
    5 |     int arr[10],i,a=0,b=055 5;
      |                             ^
Language: C

#include<stdio.h>
int mian()
{
  int a,b,c;
  scanf("%d %d %d",&a,&b,&c);
  if(a==7&&b==5&&c==5)
  {
    printf("YES");
  }
  else if(b==7&&a==5&&c==5)
  {
    printf("YES");
  }
  else if(c==7&&a==5&&b==5)
  {
    printf("YES");
  }
  else
  {
    printf("NO");
  }
    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<iostream.h>
using namespace std;
int main()
{
  int a,b,c;
  if((a==7&&b==5&&c==5)||(a==5&&b==7&&c==5)||(c==7&&a==5&&b==5))
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}


Compiler output:
a.cc:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class A042 {

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

	}

}


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

import java.util.*;


public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    int total = a + b + c;
    if(total == 17){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }

Compiler output:
Main.java:15: error: reached end of file while parsing
    }
     ^
1 error
Language: C++

using namespace std;
typedef long long ll;
#define rep(k,i,n) for(ll i=k;i<n;++i)
int main(void){
    // Your code here!
    ll c5=0,c7=0,a[3];
    rep(0,i,3)cin>>a[i];
    rep(0,i,3){
        if(a[i]==7)++c7;
        if(a[i]==5)++c5;
    }
    if(c7==1&&c5==2)cout<<"YES";
    else cout<<"NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'cin' was not declared in this scope
    7 |     rep(0,i,3)cin>>a[i];
      |               ^~~
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:12:21: error: 'cout' was not declared in this scope
   12 |     if(c7==1&&c5==2)cout<<"YES";
      |                     ^~~~
a.cc:12:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:10: error: 'cout' was not declared in this scope
   13 |     else cout<<"NO";
      |          ^~~~
a.cc:13:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected unqualified-id before '(' token
    6 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){
      |          ^
a.cc:6:22: error: expected unqualified-id before '(' token
    6 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){
      |                      ^
a.cc:6:34: error: expected unqualified-id before '(' token
    6 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==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\n");
    }
    else 
    {
        printf("NO\n");
    }
    
    
    return 0;
}


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

#include <stdio.h>
inline int Mayor(int A, B){
	return A>B? A: B;
}
inline bool Equal(int A, B){
  	if(A == 5)
		return A == B;
 	return false;
}
int main(){
  
  	int A, B, C, Aux;
  
  	scanf("%d%d%d", &A, &B, &C);
	Aux = Mayor(C, Mayor(A, B));
  	if(Aux == 7 && (Equal(A, B) || Equal(B, C) || Equal (C, A)))
      printf("YES\n");
  	else
      printf("NO\n");
      
	return 0; 
}

Compiler output:
main.c:2:25: error: unknown type name 'B'
    2 | inline int Mayor(int A, B){
      |                         ^
main.c:5:8: error: unknown type name 'bool'
    5 | inline bool Equal(int A, B){
      |        ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | inline int Mayor(int A, B){
main.c:5:26: error: unknown type name 'B'
    5 | inline bool Equal(int A, B){
      |                          ^
main.c: In function 'main':
main.c:15:15: error: implicit declaration of function 'Mayor' [-Wimplicit-function-declaration]
   15 |         Aux = Mayor(C, Mayor(A, B));
      |               ^~~~~
main.c:16:25: error: implicit declaration of function 'Equal' [-Wimplicit-function-declaration]
   16 |         if(Aux == 7 && (Equal(A, B) || Equal(B, C) || Equal (C, A)))
      |                         ^~~~~
Language: C++

#include<iostream>

using namespace std;

int main()	{
  int a,b,c;
  cin >> a >> b >> c;
  int cnt[8]={0,0,0,0,0,0,0,0};
  cnt[a]++;
  cnt[b]++;
  cnt[c]++;
  if(cnt[5]==2 && cnt[7]==1) cout << "YES\n;
  else cout << "NO\n;
  return 0;
}

Compiler output:
a.cc:12:38: warning: missing terminating " character
   12 |   if(cnt[5]==2 && cnt[7]==1) cout << "YES\n;
      |                                      ^
a.cc:12:38: error: missing terminating " character
   12 |   if(cnt[5]==2 && cnt[7]==1) cout << "YES\n;
      |                                      ^~~~~~~
a.cc:13:16: warning: missing terminating " character
   13 |   else cout << "NO\n;
      |                ^
a.cc:13:16: error: missing terminating " character
   13 |   else cout << "NO\n;
      |                ^~~~~~
a.cc: In function 'int main()':
a.cc:13:3: error: expected primary-expression before 'else'
   13 |   else cout << "NO\n;
      |   ^~~~
Language: C++

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

//type
#define ll long long
typedef pair<int, int> P;
//定数
#define INF 1000000000000 //10^12:∞
#define MOD 1000000007    //10^9+7:合同式の法
#define MAXR 100000       //10^5:配列の最大のrange
//略記
#define PB push_back //挿入
#define MP make_pair //pairのコンストラクタ
#define F first      //pairの一つ目の要素
#define S second     //pairの二つ目の要素
#define Z class
// OTHER
// xの二乗を返す (関数テンプレート版)
template <typename T>
T square(T x) { return x * x; }
#define chmax(x, y) (x = max(x, y))
#define chmin(x, y) (x = min(x, y))
// loop
#define rep(i, n) for (int i = 0; i < (n); i++)
#define REPD(i, n) for (ll i = n - 1; i >= 0; i--)
#define FOR(i, a, b) for (ll i = a; i <= ll(b); i++)
#define FORD(i, a, b) for (ll i = a; i >= ll(b); i--)
#define FORA(i, I) for (const auto &i : I)

// vector
#define ALL(x) x.begin(), x.end()

// output
#define YES() printf("YES\n")
#define NO() printf("NO\n")
#define isYES(x) printf("%s\n", (x) ? "YES" : "NO")
#define Yes() printf("Yes\n")
#define No() printf("No\n")
#define ln cout << '\n'
template <Z A>
void pr(A a)
{
  cout << a;
  ln;
}
template <Z A, Z B>
void pr(A a, B b)
{
  cout << a << ' ';
}

int ans = 0;
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *

int main()
{
  int a, b, c, n, x, y;
  string s;
  vector<int> v(3);
  vector<int> p(3) = {5, 5, 7};

  rep(i, 3) cin >> v[i];
  sort(v.begin(), v.end());
  rep(i, 3)
  {
    if (v[i] != p[i])
    {
      NO();
      return 0;
    }
  }
  YES();
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:20: error: expected ',' or ';' before '=' token
   61 |   vector<int> p(3) = {5, 5, 7};
      |                    ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
    int c=0;
    int a[3],b[3];
    for(int i=0;i<3;i++){
        cin>>a[i];
        b[i]=a[i];
    }
    sort(b,b+3);
   for(int j=0;j<3;j++){
       if(a[j]==b[j]){
           c++;
       }
   }
   if(c==n){
       cout<<"YES\n";
   }
   else{
       cout<<"NO\n";
   }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'n' was not declared in this scope
   16 |    if(c==n){
      |          ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

long long n,q,m,k,t,l;


int main(){
    vector<int>l(n,0);
    cin>>v[0]>>v[1]>>v[2];
    sort(v.begin(), v.end());
    if (v[0]==5 and v[1]==5 and v[2]==7){
        cout<<"YES";
        return 0;
    }
    cout<<"NO";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'v' was not declared in this scope
   10 |     cin>>v[0]>>v[1]>>v[2];
      |          ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
using namespace std;
using ll = long long;
using p = pair<int,int>;
int cnt_five=0,cnt_seven=0;
int main(int argc, const char * argv[]) {



    cin.tie(0);
    ios::sync_with_stdio(false);

    int a,b,c;
    cin>>a>>b>>c;
    judge(a);
    judge(b);
    judge(c);
    if(cnt_five==2&&cnt_seven==1)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;

    return 0;
}
int judge(int n){
    if(n==5)cnt_five++;
    else if(n==7)cnt_seven++;
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:16:5: error: 'judge' was not declared in this scope
   16 |     judge(a);
      |     ^~~~~
a.cc: In function 'int judge(int)':
a.cc:27:1: warning: no return statement in function returning non-void [-Wreturn-type]
   27 | }
      | ^
Language: C

#include<stdio.h>
int main(){
  int a;
  int count1=0,count2=0;
  for(int i=0;i<3;i++){
    scanf("%d ",&a);
    if(a==5) count1++;
    if(a==7) count2++;
  }
  if(count1==2 && count2==1) printf("YES"\n);
  else printf("NO"\n);
 return 0;
 }

Compiler output:
main.c: In function 'main':
main.c:10:42: error: stray '\' in program
   10 |   if(count1==2 && count2==1) printf("YES"\n);
      |                                          ^
main.c:10:42: error: expected ')' before 'n'
   10 |   if(count1==2 && count2==1) printf("YES"\n);
      |                                    ~     ^~
      |                                          )
main.c:11:19: error: stray '\' in program
   11 |   else printf("NO"\n);
      |                   ^
main.c:11:19: error: expected ')' before 'n'
   11 |   else printf("NO"\n);
      |              ~    ^~
      |                   )
Language: C

#include<stdio.h>
int main(){
  int a;
  int count1=0,count2=0;
  for(int i=0;i<3;i++){
    scanf("%d ",&a);
    if(a==5) count1++;
    if(a==7) count2++;
  }
  if(count1==2 && count2==1) printf("YES\n);
  else printf("NO\n);
 return 0;
 }
  

Compiler output:
main.c: In function 'main':
main.c:10:37: warning: missing terminating " character
   10 |   if(count1==2 && count2==1) printf("YES\n);
      |                                     ^
main.c:10:37: error: missing terminating " character
   10 |   if(count1==2 && count2==1) printf("YES\n);
      |                                     ^~~~~~~~
main.c:11:3: error: expected expression before 'else'
   11 |   else printf("NO\n);
      |   ^~~~
main.c:11:15: warning: missing terminating " character
   11 |   else printf("NO\n);
      |               ^
main.c:11:15: error: missing terminating " character
   11 |   else printf("NO\n);
      |               ^~~~~~~
main.c:13:2: error: expected declaration or statement at end of input
   13 |  }
      |  ^
Language: C++

/*
      author  : nishi5451
      created : 12.08.2020 23:44:07
*/

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
typedef long long ll;


int main(){
    vector<int> s(3);
    rep(i,3) cin >> s[i];
    sort(a.begin(),a.end());
    if(s[0]==5 && s[1]==5 && s[2]==7) cout << "YES" << endl;
    else cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: 'a' was not declared in this scope
   15 |     sort(a.begin(),a.end());
      |          ^
Language: C++

/*
      author  : nishi5451
      created : 12.08.2020 23:44:07
*/

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
typedef long long ll;


int main(){
    vector<int> a(3);
    rep(i,3) cin >> a[i];
    sort(a.begin(),a.end());
    if(s[0]==5 && s[1]==5 && s[2]==7) cout << "YES" << endl;
    else cout << "NO" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:8: error: 's' was not declared in this scope
   16 |     if(s[0]==5 && s[1]==5 && s[2]==7) cout << "YES" << endl;
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int a,b,c;
  int i=0,l=0,m=0,n=0;
  while(i<3)
  {
    if(a==5 || b==5 ||c==5)
    {
      l++;
    }
    else if(a==7 || b==7 ||c==7)
    {
      m++;
    }i++;
  }
  if(l==2 && m==1)
  {
    cout<<"YES";
  }
  else
    cout<<"NO"
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: 'ca' was not declared in this scope; did you mean 'c'?
    6 |     if((a==b&&a==5&&c==7)||(ca==b&&c==5&&a==7)||(a==c&&a==5&&b==7)){
      |                             ^~
      |                             c
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:25: error: 'ca' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c==7)||(ca==b&&c==5&&a==7)||(a==c&&a==5&&bc==7)){
      |                         ^~
      |                         c
a.cc:6:58: error: 'bc' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c==7)||(ca==b&&c==5&&a==7)||(a==c&&a==5&&bc==7)){
      |                                                          ^~
      |                                                          c
Language: C++

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&&bc=7)){
      |     ~~~~~~~~~~^~~
a.cc:6:24: error: 'ca' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&&bc=7)){
      |                        ^~
      |                        c
a.cc:6:56: error: 'bc' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&&bc=7)){
      |                                                        ^~
      |                                                        c
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&bc=7)){
      |     ~~~~~~~~~~^~~
a.cc:6:24: error: 'ca' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&bc=7)){
      |                        ^~
      |                        c
a.cc:6:55: error: 'bc' was not declared in this scope; did you mean 'c'?
    6 | if((a==b&&a==5&&c=7)||(ca==b&&c==5&&a=7)||(a==c&&a==5&bc=7)){
      |                                                       ^~
      |                                                       c
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected primary-expression before '<' token
   13 |   else{cout<<"NO"<<<endl;}
      |                    ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected primary-expression before '<' token
   11 |   else{cout<<"NO"<<<endl;}
      |                    ^
Language: C++

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

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

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

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


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

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

int main() {
  vector<int> a(3);
  for(int i = 0;i < 3){
    cin >> a.at(i);
  }
  sort(a.begin(), a.end());
  if(a.at(0) == 5) {
    if(a.at(1) == 5) {
      if(a.at(2) == 7) {
        cout << "Yes" << endl;
        return 0;
      } else {
        cout << "No" << endl;
        return 0;
      }
    }
  }
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: expected ';' before ')' token
    6 |   for(int i = 0;i < 3){
      |                      ^
      |                      ;
Language: C++

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

int main() {
  vector<int> a(3);
  for(int = 0;i < 3){
    cin >> a.at(i);
  }
  sort(a.begin(), a.end());
  if(a.at(0) == 5) {
    if(a.at(1) == 5) {
      if(a.at(2) == 7) {
        cout << "Yes" << endl;
        return 0;
      } else {
        cout << "No" << endl;
        return 0;
      }
    }
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:11: error: expected unqualified-id before '=' token
    6 |   for(int = 0;i < 3){
      |           ^
a.cc:6:10: error: expected ';' before '=' token
    6 |   for(int = 0;i < 3){
      |          ^~
      |          ;
a.cc:6:11: error: expected primary-expression before '=' token
    6 |   for(int = 0;i < 3){
      |           ^
a.cc:6:15: error: 'i' was not declared in this scope
    6 |   for(int = 0;i < 3){
      |               ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: request for member 'size' in 'b', which is of non-class type 'int'
   10 |   if (a == 7 && b.size() == 5 && c == 5){
      |                   ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: request for member 'size' in 'a', which is of non-class type 'int'
   10 |   if (a.size() == 7 && b.size() == 5 && b.size() == 5){
      |         ^~~~
a.cc:10:26: error: request for member 'size' in 'b', which is of non-class type 'int'
   10 |   if (a.size() == 7 && b.size() == 5 && b.size() == 5){
      |                          ^~~~
a.cc:10:43: error: request for member 'size' in 'b', which is of non-class type 'int'
   10 |   if (a.size() == 7 && b.size() == 5 && b.size() == 5){
      |                                           ^~~~
a.cc:13:15: error: request for member 'size' in 'a', which is of non-class type 'int'
   13 |   }else if (a.size() == 5 && b.size() == 7 && b.size() == 5){
      |               ^~~~
a.cc:13:32: error: request for member 'size' in 'b', which is of non-class type 'int'
   13 |   }else if (a.size() == 5 && b.size() == 7 && b.size() == 5){
      |                                ^~~~
a.cc:13:49: error: request for member 'size' in 'b', which is of non-class type 'int'
   13 |   }else if (a.size() == 5 && b.size() == 7 && b.size() == 5){
      |                                                 ^~~~
a.cc:15:15: error: request for member 'size' in 'a', which is of non-class type 'int'
   15 |   }else if (a.size() == 5 && b.size() == 5 && b.size() == 7){
      |               ^~~~
a.cc:15:32: error: request for member 'size' in 'b', which is of non-class type 'int'
   15 |   }else if (a.size() == 5 && b.size() == 5 && b.size() == 7){
      |                                ^~~~
a.cc:15:49: error: request for member 'size' in 'b', which is of non-class type 'int'
   15 |   }else if (a.size() == 5 && b.size() == 5 && b.size() == 7){
      |                                                 ^~~~
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:10: error: illegal start of expression
  if(a==5 && b==5 && c==7 || a==5 && b==7 && c ==5 =|| a==7 && b==5 && c==5){
                                                    ^
1 error
Language: C

#include <stdio.h>
#include <string.h>
 
int main(int argc, char *argv[]) {
  int i;
  int cnt_5　= 0, cnt_7 = 0;
  for(i = 0; i < 3; i++) {
    if(strcmp(argv[i], "5") == 0) cnt_5++;
    if(strcmp(argv[i], "7") == 0) cnt_7++;
  }
  if(cnt_5 == 2 && cnt_7 == 1) printf("%s\n", "YES");
  else printf("%s\n", "NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:12: error: stray '\343' in program
    6 |   int cnt_5<U+3000>= 0, cnt_7 = 0;
      |            ^~~~~~~~
Language: C

#include <stdio.h>
#include <string.h>
 
int main(int argc, char *argv[]) {
  int i;
  int cnt_5, cnt_7 = 0, 0;
  for(i = 0; i < 3; i++) {
    if(strcmp(argv[i], "5") == 0) cnt_5++;
    if(strcmp(argv[i], "7") == 0) cnt_7++;
  }
  if(cnt_5 == 2 && cnt_7 == 1) printf("%s\n", "YES");
  else printf("%s\n", "NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected identifier or '(' before numeric constant
    6 |   int cnt_5, cnt_7 = 0, 0;
      |                         ^
Language: C

#include <stdio.h>
#include <string.h>
 
int main(int argc, char *argv[]) {
  int i;
  int cnt_5, cnt_7 = 0, 0;
  for(i = 0; i < 3; i++) {
    if(strcmp(argv[i], "5") == 0) cnt_5++;
    if(strcmp(argv[i], "7") == 0) cnt_7++;
  }
  if(cnt_5 == 2 && cnt_7 == 1) print("%s\n", "YES");
  else printf("%s\n", "NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected identifier or '(' before numeric constant
    6 |   int cnt_5, cnt_7 = 0, 0;
      |                         ^
main.c:11:32: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |   if(cnt_5 == 2 && cnt_7 == 1) print("%s\n", "YES");
      |                                ^~~~~
      |                                printf
Language: C

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

int main(int argc, char *argv[]) {
  int i;
  int cnt_5, cnt_7 = 0, 0;
  for(i = 0; i < 3; i++) {
    strcmp(argv[i] == "5") cnt_5++;
    strcmp(argv[i] == "7") cnt_7++;
  }
  if(cnt_5 == 2 && cnt_7 == 1) print("%s\n", "YES");
  else printf("%s\n", "NO");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:25: error: expected identifier or '(' before numeric constant
    6 |   int cnt_5, cnt_7 = 0, 0;
      |                         ^
main.c:8:20: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    8 |     strcmp(argv[i] == "5") cnt_5++;
      |            ~~~~~~~~^~~~~~
      |                    |
      |                    int
In file included from main.c:2:
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:8:5: error: too few arguments to function 'strcmp'
    8 |     strcmp(argv[i] == "5") cnt_5++;
      |     ^~~~~~
/usr/include/string.h:156:12: note: declared here
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
main.c:8:27: error: expected ';' before 'cnt_5'
    8 |     strcmp(argv[i] == "5") cnt_5++;
      |                           ^~~~~~
      |                           ;
main.c:9:20: error: passing argument 1 of 'strcmp' makes pointer from integer without a cast [-Wint-conversion]
    9 |     strcmp(argv[i] == "7") cnt_7++;
      |            ~~~~~~~~^~~~~~
      |                    |
      |                    int
/usr/include/string.h:156:32: note: expected 'const char *' but argument is of type 'int'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
main.c:9:5: error: too few arguments to function 'strcmp'
    9 |     strcmp(argv[i] == "7") cnt_7++;
      |     ^~~~~~
/usr/include/string.h:156:12: note: declared here
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |            ^~~~~~
main.c:9:27: error: expected ';' before 'cnt_7'
    9 |     strcmp(argv[i] == "7") cnt_7++;
      |                           ^~~~~~
      |                           ;
main.c:11:32: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   11 |   if(cnt_5 == 2 && cnt_7 == 1) print("%s\n", "YES");
      |                                ^~~~~
      |                                printf
Language: C++

int main(){
    int n[3];
    int i, j;
    bool f = false;

    for (i=0; i<3; i++){
        cin >> n[i];
    }
    
    if (n[0]+ n[1] + n[2] == 12){
        for (i=0; i<3; i++){
            if (n[i] == 7){
                for (j=0; j<3; j++){
                    if (n[j] == 5){
                        f = true;
                        break;
                    }
                }
            }
        }
    }

    if (f == true){
        cout << "YES" << endl;
    }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 >> n[i];
      |         ^~~
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << "YES" << endl;
      |         ^~~~
a.cc:24:26: error: 'endl' was not declared in this scope
   24 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << "NO" << endl;
      |         ^~~~
a.cc:26:25: error: 'endl' was not declared in this scope
   26 |         cout << "NO" << endl;
      |                         ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)
#define all(vec) vec.begin(),vec.end()
using vi = vector<int>;
using vvi = vector<vi>;
using ll = long long;
int main() {
  map<int, int> mp;
  rep(i, 3){
    int s; cin >> s; mp[s]++;
  }
  if(map[5]==2 && map[7]==1) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: expected unqualified-id before '[' token
   13 |   if(map[5]==2 && map[7]==1) cout << "YES" << endl;
      |         ^