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

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

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

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

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

#include <cstdio>

int main()
{
    int a,b,c;
    int n[20] = { 0 };
    scanf_s("%d %d %d", &a, &b, &c);
    n[a]++;
    n[b]++;
    n[c]++;
    if (n[5] == 2 && n[7] == 1) {
        printf("YES\n");
    }
    else {
        printf("NO\n");
    }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |     scanf_s("%d %d %d", &a, &b, &c);
      |     ^~~~~~~
      |     scanf
Language: Java

import java.util.*;
import java.lang.*; 
class Main{
	public static void main(String[] args){
		int x=0;
		Scanner input=new Scanner(System.in);
	int a[]=new int [3];
	for(int i=0; i<3; i++)
	{
		a[i]=input.nextInt();
	}
	for(int j=0;j<3;j++)
	{
		x=x+a[j];
	}
		if(x==17)
		{
			System.out.println("YES");
		}
		else{System.out.println("NO");}
	}
}
Aa


Compiler output:
Main.java:23: error: reached end of file while parsing
Aa
^
1 error
Language: Java



import java.util.*;

public class JavaApplication69 {

    public static void main(String[] args) {
 
    	Scanner in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.nextInt();
        int C=in.nextInt();
    	if((5<=A)&& (7<=B)&& (5<=C&&C<=10))
        	System.out.println("Yes");        
      	else
         System.out.println("No"); 
   
    }
}

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

import java.util.*;
public class Main{
	public static void main(String[]args){
    	Scanner in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.nextInt();
        int C=in.nextInt();
    	if(1<=A>=5&& 1<=B>=7&& 1<=C>=5)
        	System.out.println("Yes");        
      	else
         System.out.println("No"); 
    }
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '>='
    	if(1<=A>=5&& 1<=B>=7&& 1<=C>=5)
    	       ^
  first type:  boolean
  second type: int
Main.java:8: error: bad operand types for binary operator '>='
    	if(1<=A>=5&& 1<=B>=7&& 1<=C>=5)
    	                 ^
  first type:  boolean
  second type: int
Main.java:8: error: bad operand types for binary operator '>='
    	if(1<=A>=5&& 1<=B>=7&& 1<=C>=5)
    	                           ^
  first type:  boolean
  second type: int
3 errors
Language: Java

import java.util,*;
public class Main{
	public static void main(String[]args){
    	Scanner in=new Scanner(System.in);
        int A=in.nextInt();
        int B=in.nextInt();
        int C=in.nextInt();
    	if(1<=A>=5&& 1<=B>=7&& 1<=C>=5)
        	System.out.println("Yes");        
      	else
         System.out.println("No"); 
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util,*;
                ^
1 error
Language: C

#include <iostream>

using namespace std;

int main()
{
    //cout << "Hello world!" << endl;
    int a , b , c ;
    cin >> a >> b >> c;

    if((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (c == 5 && b == 5 && a == 7)){
        cout << "YES";
    }
    else{
        cout << "NO";
    }
    return 0;
}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

int main(void){
  int a,b,c;
  scanf("%d%d%d",&a,&b,&c);
  
  if ((a=5 || a=7)&&(b=5||b=7)&&(c=5||c=7)&&(a+b+c==17)){
    printf("YES/n");
  }
  else {
    printf("NO/n");
  }
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define all(v) v.begin(), v.end()

const ll mod=1000000007;

ll countBits(ll in){
  int res=0;
  for(;in>0;in>>=1){
    if((in&0x01)!=0){
      res++;
    }
  }
  return res;
}

template<typename T>
void show2dVector(vector<vector<T>>& v){
  for(int i=0;i<v.size();i++){
    int m=v[i].size();
    cout<<i<<" : ";
    for(int j=0;i<m;i++){
      cout<<v[i][j]<<" ";
    }
    cout<<endl;
  }
}

void bfs(const vector<vector<int>>&g, int v, vector<bool>& seen){
  seen[v]=true;
  cout<<v<<" ";
  for(auto next: g[v]){
    if(seen[next]){
      continue;
    }
    bfs(g,next,seen);
  }
}

bool dfs(vector<vector<int>> &g,int start,int goal,vector<bool>&seen){
  bool res=false;
  seen[start]=true;
  if(start==goal){
    return true;
  }
  for(auto next: g[start]){
    if(seen[next]){
      continue;
    }
    res=dfs(g,next,goal,seen);
    if(res){
      break;
    }
  }
  return res;
}

ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}

ll powm(ll a,ll n, ll m){
  ll ret=1;
  while(n>0){
    if(n%2==1){
      ret=(ret*a)%m;
    }
    n>>=1;
    a=(a*a)%m;
  }
  return ret;
}

const string yesno(bool ans){
  return (ans?"YES":"NO");
}
int main() {
  int a,b,c;cin>>a>>b>>c;
  vector<int> s(11);
  s[a]++;
  s[b]++;
  s[c]++;
  bool ans=false;
  if(s[5]==2&&s[7]=1){
    ans=true;
  }
  cout<<yesno(ans)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:94:13: error: lvalue required as left operand of assignment
   94 |   if(s[5]==2&&s[7]=1){
Language: C++

#include<iostream>
using namespace std;

int main(){
  int input[3]={};
  int count5=0;
  int count7=0;
  
  cin>>a>>b>>c;
  
  for(int i=0;i<=3;i++){
    if(input[i]==5){
      count5++;
    }
    else if(input[i]==7){
      count7++;
    }
  }
  
  if(count5==2&&count7==1){
    cout<<"YES";
  }else{
    cout<<"NO";
  }
 return 0; 
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |        ^
a.cc:9:11: error: 'b' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |           ^
a.cc:9:14: error: 'c' was not declared in this scope
    9 |   cin>>a>>b>>c;
      |              ^
Language: C++

#include<iostream>

int main(){
  int input[3]={};
  int count5=0;
  int count7=0;
  
  cin>>a,b,c;
  
  for(int i=0;i<=3;i++){
    if(input[i]==5){
      count5++;
    }
    else if(input[i]==7){
      count7++;
    }
  }
  
  if(count5==2&&count7==1){
    cout<<"YES";
  }else{
    cout<<"NO";
  }
 return 0; 
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>a,b,c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a,b,c;
      |        ^
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin>>a,b,c;
      |          ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 |   cin>>a,b,c;
      |            ^
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout<<"YES";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout<<"NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

int main(){
  int input[3]={};
  int count5=0;
  int count7=0;
  
  cin<<a,b,c;
  
  for(int i=0;i<=3;i++){
    if(input[i]=5){
      count5++;
    }
    else if(input[i]=7){
      count7++;
    }
  }
  
  if(count5=2&&count7=1){
    cout<<"YES";
  }else{
    cout<<"NO";
  }
 return 0; 
}
      


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin<<a,b,c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin<<a,b,c;
      |        ^
a.cc:8:10: error: 'b' was not declared in this scope
    8 |   cin<<a,b,c;
      |          ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 |   cin<<a,b,c;
      |            ^
a.cc:19:14: error: lvalue required as left operand of assignment
   19 |   if(count5=2&&count7=1){
      |             ~^~~~~~~~
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout<<"YES";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout<<"NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>

int main(){
  int input[3]={};
  int count5=0
  int count7=7
  
  cin<<a,b,c;
  
  for(int i=0;i<=3;i++){
    if(input[i]=5){
      count5++;
    }
    else if(input[i]=7){
      count7++;
    }
  }
  
  if(count5=2&&couunt7=1){
    cout<<"YES";
  }else{
    cout<<"NO";
  }
 return 0; 
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected ',' or ';' before 'int'
    6 |   int count7=7
      |   ^~~
a.cc:15:7: error: 'count7' was not declared in this scope; did you mean 'count5'?
   15 |       count7++;
      |       ^~~~~~
      |       count5
a.cc:19:16: error: 'couunt7' was not declared in this scope; did you mean 'count5'?
   19 |   if(count5=2&&couunt7=1){
      |                ^~~~~~~
      |                count5
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |     cout<<"YES";
      |     ^~~~
      |     std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     cout<<"NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

class Main{
  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+b+c!=17){
      System.out.println("NO");
    }else{
      if((a==5 || a==7)&&(b==5 || b==7)){
        System.out.println("YES");
      }
    }
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
    Scanner sc = new Scanner(System.in);
                     ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <iostream>
#include <vector>
#include <string>

#define rep(i, cc, n) for (int i = cc; i < n; ++i)

using namespace std;

int main()
{
    int a, b, c;

    cin >> a >> b >> c;

    if (a == 5 && b == 7 && c == 5)
    {
        cout << "YES" << endl;
        return;
    }
    else if (a == 7 && b == 5 && c == 5)
    {
        cout << "YES" << endl;
        return;
    }
    else if (a == 5 && b == 5 && c == 7)
    {
        cout << "YES" << endl;
        return;
    }
    else
    {
        cout << "NO" << endl;
        return;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   18 |         return;
      |         ^~~~~~
a.cc:23:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   23 |         return;
      |         ^~~~~~
a.cc:28:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   28 |         return;
      |         ^~~~~~
a.cc:33:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   33 |         return;
      |         ^~~~~~
Language: C

# include "stdio.h"

int main(){
    int n,k,t,c1=0,c2=0,c3=0;
    scanf("%d %d",&n,&k);
    int d[k], use[10] = {0}, num = 0;
    int i, j, l;
    for( i=0;i<k;i++)
        scanf("%d",&d[i]);
    //好きな数
    for (i = 0 ; i<k ; i++) {
        use[d[i]] = 1;  //use[]の中が0なら使用可能
        }

    //桁数
    t=n;
    while(t>0){
        c1++;
        t= t/10;
    };
    t=n;
    //各桁を保存
    int keta[c1];
    for(i=c1-1;i>=0;i--){
        keta[i]=t%10;
        t=t/10;
    }
    int key=0;
    for(i=0;i<c1;i++){
        if (key == 0) {
            if (use[keta[i]] == 0) {
                num += keta[i];
            }
            else {
                for (j = keta[i] + 1 ;j < 10;j++) {
                    if (use[j] == 0) {
                        num += j;
                        key=1;
                        break;
                    }
                }
            }
        }
        else {
            for (int l=0;l < 10;l++) {
                if (use[l] == 0) {
                    num += l;
                    break;
                }
            }
        }
        if(i<c1-1) num=num*10;
    }

    printf("%d\n",num);

    if (num == 0) {
        for (int l=1;l < 10;l++) {
            if (use[l] == 0) {
                for (i = 0;i <= c1;i++){
                    num = (num * 10 + l);
                }
                break;
            }
        }
        if (use[0] == 0) {
            for (i = 0;i < c1;i++)
                num = num / 10;
            for (i = 0;i < c1;i++)
                num = num * 10;
        }
    }
    printf("%d\n",num);

Compiler output:
main.c: In function 'main':
main.c:73:5: error: expected declaration or statement at end of input
   73 |     printf("%d\n",num);
      |     ^~~~~~
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==7 || B==7 || C==7){
			if(A==7){
				if(B==5 && C==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}else if(B==7){
				if(C==5 && A==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}else if(C==7){
				if(A==5 && B==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}
		}else{
		System.out.println("no");
		}
	}

}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: Java

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==7 || B==7 || C==7){
			if(A==7){
				if(B==5 && C==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}else if(B==7){
				if(C==5 && A==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}else if(C==7){
				if(A==5 && B==5){
				System.out.println("yes");
				}else{
				System.out.println("no");
				}
			}
		}else{
		System.out.println("no");
		}
	}

}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(void){

	string s[3];
	cin >> s[0] >> s[1] >> s[2];
	
	int sevens = 0;
	int fives = 0;
	
	for(int i = 0; i < 3; i++){
		if(s[i].length() == 5){
			fives++;
		}
		if(s[i].length() == 7){
			sevens++;
		}
	}
	
	if(sevens == 1 && fives == 2){
		cout "YES";
	}
	else{
		cout << "NO";
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:21: error: expected ';' before string constant
   22 |                 cout "YES";
      |                     ^~~~~~
      |                     ;
Language: C++

int main(void){

	string s[3];
	cin >> s[0] >> s[1] >> s[2];
	
	int sevens = 0;
	int fives = 0;
	
	for(int i = 0; i < 3; i++){
		if(s[i].length() == 5){
			fives++;
		}
		if(s[i].length() == 7){
			sevens++;
		}
	}
	
	if(sevens == 1 && fives == 2){
		cout "YES";
	}
	else{
		cout << "NO";
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'string' was not declared in this scope
    3 |         string s[3];
      |         ^~~~~~
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> s[0] >> s[1] >> s[2];
      |         ^~~
a.cc:4:16: error: 's' was not declared in this scope
    4 |         cin >> s[0] >> s[1] >> s[2];
      |                ^
a.cc:19:17: error: 'cout' was not declared in this scope
   19 |                 cout "YES";
      |                 ^~~~
a.cc:22:17: error: 'cout' was not declared in this scope
   22 |                 cout << "NO";
      |                 ^~~~
Language: C++

#include<bits/stdc++.h>
#define fastio     ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define all(x)     (x).begin() , (x).end()
#define rep(i,a,b) for(int i=a;i<b;i++)
#define endl       '\n'
#define MAX        1000000
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
typedef long long int ll;
using namespace std;

void __print(int x) {cerr << x;}
void __print(long x) {cerr << x;}
void __print(long long x) {cerr << x;}
void __print(unsigned x) {cerr << x;}
void __print(unsigned long x) {cerr << x;}
void __print(unsigned long long x) {cerr << x;}
void __print(float x) {cerr << x;}
void __print(double x) {cerr << x;}
void __print(long double x) {cerr << x;}
void __print(char x) {cerr << '\'' << x << '\'';}
void __print(const char *x) {cerr << '\"' << x << '\"';}
void __print(const string &x) {cerr << '\"' << x << '\"';}
void __print(bool x) {cerr << (x ? "true" : "false");}

template<typename T, typename V>
void __print(const pair<T, V> &x) {cerr << '{'; __print(x.first); cerr << ','; __print(x.second); cerr << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cerr << '{'; for (auto &i: x) cerr << (f++ ? "," : ""), __print(i); cerr << "}";}
void _print() {cerr << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cerr << ", "; _print(v...);}


const ll mod = 1e9+7;
const double eps = 1e-9;
const double pi = acos(-1);

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





int main(){
    fastio
    int test=1;
    while(test--)
        solve();
    return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:40:9: error: conflicting declaration 'int a'
   40 |     int a=0,b=0;
      |         ^
a.cc:39:9: note: previous declaration as 'int a [3]'
   39 |     int a[3];
      |         ^
a.cc:43:10: error: incompatible types in assignment of 'bool' to 'int [3]'
   43 |         a+=(a[i]==5);
      |         ~^~~~~~~~~~~
a.cc:46:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   46 |     if(a==2&&b==1)cout<<"YES";
      |        ~^~~
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected initializer before '==' token
   10 |   if (vector<int>A == {5,5,7}){
      |                    ^~
a.cc:10:19: error: expected ')' before '==' token
   10 |   if (vector<int>A == {5,5,7}){
      |      ~            ^~~
      |                   )
a.cc:10:30: error: could not convert 'A' from 'std::vector<int>' to 'bool'
   10 |   if (vector<int>A == {5,5,7}){
      |                              ^
      |                              |
      |                              std::vector<int>
Language: C++

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

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




Compiler output:
a.cc: In function 'int main()':
a.cc:10:21: error: expected initializer before '==' token
   10 |   if (vector<int> A == {5,5,7}){
      |                     ^~
a.cc:10:20: error: expected ')' before '==' token
   10 |   if (vector<int> A == {5,5,7}){
      |      ~             ^~~
      |                    )
a.cc:10:31: error: could not convert 'A' from 'std::vector<int>' to 'bool'
   10 |   if (vector<int> A == {5,5,7}){
      |                               ^
      |                               |
      |                               std::vector<int>
Language: C++

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

int main(){
  vector <int> A(3);
  for (int i=0; i<3; i++){
    cin >> A.at(i);
  }
  sort(vector<int> A);
  if (vector<int> A == [5,5,7]){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected primary-expression before 'A'
    9 |   sort(vector<int> A);
      |                    ^
a.cc:10:21: error: expected initializer before '==' token
   10 |   if (vector<int> A == [5,5,7]){
      |                     ^~
a.cc:10:20: error: expected ')' before '==' token
   10 |   if (vector<int> A == [5,5,7]){
      |      ~             ^~~
      |                    )
a.cc:10:31: error: could not convert 'A' from 'std::vector<int>' to 'bool'
   10 |   if (vector<int> A == [5,5,7]){
      |                               ^
      |                               |
      |                               std::vector<int>
Language: Java

import java.util.Scanner;

public class Practice_575 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		String message = null;

		if (a * b * c != 175) {
			message = "NO";
		} else {
			message = "YES";
		}

		System.out.println(message);

		sc.close();
	}

}

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

#include <iostream>
#include <string>
using namespace std;
	int main{
      int A , B , C;
      cin A >> B >> C;
      if((A + B + C) == 17){
       cout << "OK" << end1;
      }else{
        cout << "NG" << end1;
      }

Compiler output:
a.cc:4:13: error: cannot declare '::main' to be a global variable
    4 |         int main{
      |             ^~~~
a.cc:5:7: error: expected primary-expression before 'int'
    5 |       int A , B , C;
      |       ^~~
a.cc:5:7: error: expected '}' before 'int'
a.cc:4:17: note: to match this '{'
    4 |         int main{
      |                 ^
a.cc:6:7: error: 'cin' does not name a type
    6 |       cin A >> B >> C;
      |       ^~~
a.cc:7:7: error: expected unqualified-id before 'if'
    7 |       if((A + B + C) == 17){
      |       ^~
a.cc:9:8: error: expected unqualified-id before 'else'
    9 |       }else{
      |        ^~~~
Language: C++

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

int main(){
  int A , B , C;
  cin A << B << C;
  if(A + B + C == 17){
	cout << "OK";
    else{
    cout << "NO";
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'A'
    7 |   cin A << B << C;
      |      ^~
      |      ;
a.cc:10:5: error: expected '}' before 'else'
   10 |     else{
      |     ^~~~
a.cc:8:22: note: to match this '{'
    8 |   if(A + B + C == 17){
      |                      ^
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;

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*b*c==q75){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}


Compiler output:
Main.java:15: error: cannot find symbol
    if(a*b*c==q75){
              ^
  symbol:   variable q75
  location: class Main
1 error
Language: Java

import java.util.*;
import java.lang.*;
import java.io.*;
import java.util.List;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.Arrays;

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*b*c==q75){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:15: error: cannot find symbol
    if(a*b*c==q75){
              ^
  symbol:   variable q75
  location: class Main
1 error
Language: C

#include<stdio.h>
 
int main() {
  int A, B, C;
  scanf("%d %d %d", &A, &B, &C);
  if(A==5){
    i++;
  }else if(A==7){
    j++;
  }
  if(B==5){
    i++;
  }else if(B==7){
    j++;
  }
  if(C==5){
    i++;
  }else if(C==7){
    j++;
  }
  if(i==2&&j==1){
    printf("yes");
  }else{
    printf("no");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
    7 |     i++;
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:5: error: 'j' undeclared (first use in this function)
    9 |     j++;
      |     ^
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> a >> b >> c;
      |     ^~~
a.cc:7:17: error: 'cout' was not declared in this scope
    7 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:7:34: error: 'endl' was not declared in this scope
    7 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:8:19: error: 'cout' was not declared in this scope
    8 |             }else cout << "No" << endl;
      |                   ^~~~
a.cc:8:35: error: 'endl' was not declared in this scope
    8 |             }else cout << "No" << endl;
      |                                   ^~~~
a.cc:11:15: error: 'cout' was not declared in this scope
   11 |               cout << "Yes"<<endl;
      |               ^~~~
a.cc:11:30: error: 'endl' was not declared in this scope
   11 |               cout << "Yes"<<endl;
      |                              ^~~~
a.cc:12:15: error: 'cout' was not declared in this scope
   12 |         }else cout <<"No"<<endl;
      |               ^~~~
a.cc:12:28: error: 'endl' was not declared in this scope
   12 |         }else cout <<"No"<<endl;
      |                            ^~~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "No" <<endl;
      |                 ^~~~
a.cc:15:32: error: 'endl' was not declared in this scope
   15 |                 cout << "No" <<endl;
      |                                ^~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:1:11: note: to match this '{'
    1 | int main(){
      |           ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected expression before '%' token
    7 |   if(A == 5 %% B == 7 %% C == 5)printf("YES");
      |              ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:23: error: request for member 'C' in something not a structure or union
    6 |   scanf("%d %d %d",A,B.C);2
      |                       ^
main.c:6:28: error: expected ';' before 'if'
    6 |   scanf("%d %d %d",A,B.C);2
      |                            ^
      |                            ;
    7 |   if(A == 5 %% B == 7 %% C == 5) printf("YES");
      |   ~~                        
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else printf("NO");
      |   ^~~~
Language: C++

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

int main(){
  int A,B,C;

  if(A != 5 || B !=7 || C !== 5)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected primary-expression before '=' token
    7 |   if(A != 5 || B !=7 || C !== 5)
      |                             ^
Language: C++

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

int main(){
  int A,B,C;

  if(A != 5 || B !=7 || C !== 5)
    cout << "NO" << endl;
  else
    cout << "YES" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:29: error: expected primary-expression before '=' token
    7 |   if(A != 5 || B !=7 || C !== 5)
      |                             ^
Language: C++

#include <iostream> 
using namespace std; 
  

int main() 
{ 
  	int a, b, c;
    cin>>a>>b>>c;
  	if(a+b+c==32 || a+b+c=19 && a==5 || b==5 || c==7 && a==7 || b==7 || c==7)
    	cout<<" Yes";
  	else
      	cout<<"No";
    return 0; 
} 

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

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:10:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |     prinf("NO");
      |     ^~~~~
      |     printf
Language: C++

#include <iostream>

using namespace std;
typedef long long ll;
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);

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

}


Compiler output:
a.cc:15:18: warning: missing terminating " character
   15 |       else cout<<"NO;
      |                  ^
a.cc:15:18: error: missing terminating " character
   15 |       else cout<<"NO;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:17:1: error: expected primary-expression before '}' token
   17 | }
      | ^
Language: Java

import java.util.*;


public class Main(){
	public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int n1 = sc.nextInt();
      int n2 = sc.nextInt();
      int n3 = sc.nextInt();
      
      int[] array = {n1,n2,n3};
      int match1 = 0;
      int match2 = 0;
      for(int val : array){
        if(val == 5){
          match1++;
        }else if(val == 7){
          match2++;
        }
      }
      
      if(match1 == 2 && match2 == 1){
        System.out.println("YES");
      }else{
        System.out.println("NO");
      }
    }
}

Compiler output:
Main.java:4: error: '{' expected
public class Main(){
                 ^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String args[]) {
    Scanner sc = new Scanner(System.in);
    int n1 = sc.nextInt();
    int n2 = sc.nextInt();
    int n3 = sc.nextInt();
    
    int[] array = {n1,n2,n3};
    int matchCount = 0;
    
    Arrays
      .stream(array)
      .collect(Collectors.groupingBy(s -> s))
      .forEach((k,v) -> 
               if(k == 5){
                 if(v.size() == 2){
                   matchCount += 1;
                 }
               }else if(k == 7){
                 if(v.size() == 1){
                   matchCount += 1;
                 }
               }
               );
      
    if(matchCount == 2){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}

Compiler output:
Main.java:17: error: illegal start of expression
               if(k == 5){
               ^
Main.java:26: error: illegal start of expression
               );
               ^
2 errors
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int A,B,C;
  cin>>A>>B>>C;
  
  int count5=0;
  int count7=0;
  int x=0;
  if(A==5)count5++;
  if(B==5)count5++;
  if(C==5)count5++;
  if(A==7)count7++;
  if(B==7)count7++;
  if(C==7)count7++;
  
  if(count5==2)x++;
  if(count7==1)x++;
  
  if(x=2)cout<<"YES";
  else cout<<"NO";
  
  return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:3: error: 'return0' was not declared in this scope
   24 |   return0;
      |   ^~~~~~~
Language: C++

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


int main(){
ios::sync_with_stdio(0);
cin.tie(0);
int a,b,c;
cin>>a>>b>>c;
if(a+b+c == 17){
    cout<<"YES";
}else{
cout<<"NO;}
return 0;
}


Compiler output:
a.cc:13:7: warning: missing terminating " character
   13 | cout<<"NO;}
      |       ^
a.cc:13:7: error: missing terminating " character
   13 | cout<<"NO;}
      |       ^~~~~
a.cc: In function 'int main()':
a.cc:14:1: error: expected primary-expression before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include <stdio.h>
 
int main()
{
  int A, B, C;
  scanf(%d, A);
  scanf(%d, B);
  scanf(%d, C);
  
  if (A+B+C==17) {
    if (A==5 && (B==5 || B==7)) {
        printf(%s, "YES");
    }
    else if (A==7 && B==5) {
        printf(%s, "YES");
    }
    else {
      printf(%s, "NO");
    }
  } else {
    printf(%s, "NO");
  }
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '%' token
    6 |   scanf(%d, A);
      |         ^
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%d, B);
      |         ^
main.c:8:9: error: expected expression before '%' token
    8 |   scanf(%d, C);
      |         ^
main.c:12:16: error: expected expression before '%' token
   12 |         printf(%s, "YES");
      |                ^
main.c:15:16: error: expected expression before '%' token
   15 |         printf(%s, "YES");
      |                ^
main.c:18:14: error: expected expression before '%' token
   18 |       printf(%s, "NO");
      |              ^
main.c:21:12: error: expected expression before '%' token
   21 |     printf(%s, "NO");
      |            ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:9: error: expected expression before '%' token
    6 |   scanf(%d, A);
      |         ^
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%d, B);
      |         ^
main.c:8:9: error: expected expression before '%' token
    8 |   scanf(%d, C);
      |         ^
main.c:12:16: error: expected expression before '%' token
   12 |         printf(%s, "YES");
      |                ^
main.c:15:16: error: expected expression before '%' token
   15 |         printf(%s, "YES");
      |                ^
main.c:18:14: error: expected expression before '%' token
   18 |       printf(%s, "NO");
      |              ^
main.c:21:12: error: expected expression before '%' token
   21 |     printf(%s, "NO");
      |            ^
main.c:24:3: error: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
   24 |   return;
      |   ^~~~~~
main.c:3:5: note: declared here
    3 | int main()
      |     ^~~~
Language: C++

#include <iostream>
#include <array>

int main() {
  int a, b, c;
  std::cin >> a >> b >> c;
  std::array<int, 3> arr{{a, b, c}};
  std::sort(arr);
  if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
    std::cout << "YES";
  } else {
    std::cout << "NO";
  }
  std::cout << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    8 |   std::sort(arr);
      |        ^~~~
      |        qsort
Language: C++

#include <iostream>
#include <array>

int main() {
  int a, b c;
  std::cin >> a >> b >> c;
  std::array<int, 3> arr{{a, b, c}};
  std::sort(arr);
  if (arr[0] == 5 && arr[1] == 5 && arr[2] == 7) {
    std::cout << "YES";
  } else {
    std::cout << "NO";
  }
  std::cout << std::endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'c'
    5 |   int a, b c;
      |            ^
a.cc:6:20: error: 'b' was not declared in this scope
    6 |   std::cin >> a >> b >> c;
      |                    ^
a.cc:6:25: error: 'c' was not declared in this scope
    6 |   std::cin >> a >> b >> c;
      |                         ^
a.cc:8:8: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
    8 |   std::sort(arr);
      |        ^~~~
      |        qsort
Language: C

#include<stdio.h>
int main()
{
  int A,B,C;
  scanf("%d%d%d",&A,&B,&C);
  if(A==7&&B==5&&C==5)printf("YES\n");
  else ifif(A==5&&B==7&&C==5)printf("YES\n");
  else ifif(A==5&&B==5&&C==7)printf("YES\n");
  else printf("NO\n");
  return 0;  
}


Compiler output:
main.c: In function 'main':
main.c:7:8: error: implicit declaration of function 'ifif' [-Wimplicit-function-declaration]
    7 |   else ifif(A==5&&B==7&&C==5)printf("YES\n");
      |        ^~~~
main.c:7:30: error: expected ';' before 'printf'
    7 |   else ifif(A==5&&B==7&&C==5)printf("YES\n");
      |                              ^~~~~~
      |                              ;
main.c:8:3: error: 'else' without a previous 'if'
    8 |   else ifif(A==5&&B==5&&C==7)printf("YES\n");
      |   ^~~~
main.c:8:30: error: expected ';' before 'printf'
    8 |   else ifif(A==5&&B==5&&C==7)printf("YES\n");
      |                              ^~~~~~
      |                              ;
main.c:9:3: error: 'else' without a previous 'if'
    9 |   else printf("NO\n");
      |   ^~~~
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    if (a==b){
      if (a==5 && c==7){
        System.out.println("YES");
        System.exit(0);
      }
    } else if (a==c) {
      if (a==5 && b==7){
        System.out.println("YES");
        System.exit(0);
      }
    } else if (b==c) {
      if (b==5 && a==7){
        System.out.println("YES");
        System.exit(0);
      }
    }
    System.out.println("NO");
  }
}

Compiler output:
Main.java:9: error: cannot find symbol
    if (a==b){
        ^
  symbol:   variable a
  location: class Main
Main.java:9: error: cannot find symbol
    if (a==b){
           ^
  symbol:   variable b
  location: class Main
Main.java:10: error: cannot find symbol
      if (a==5 && c==7){
          ^
  symbol:   variable a
  location: class Main
Main.java:10: error: cannot find symbol
      if (a==5 && c==7){
                  ^
  symbol:   variable c
  location: class Main
Main.java:14: error: cannot find symbol
    } else if (a==c) {
               ^
  symbol:   variable a
  location: class Main
Main.java:14: error: cannot find symbol
    } else if (a==c) {
                  ^
  symbol:   variable c
  location: class Main
Main.java:15: error: cannot find symbol
      if (a==5 && b==7){
          ^
  symbol:   variable a
  location: class Main
Main.java:15: error: cannot find symbol
      if (a==5 && b==7){
                  ^
  symbol:   variable b
  location: class Main
Main.java:19: error: cannot find symbol
    } else if (b==c) {
               ^
  symbol:   variable b
  location: class Main
Main.java:19: error: cannot find symbol
    } else if (b==c) {
                  ^
  symbol:   variable c
  location: class Main
Main.java:20: error: cannot find symbol
      if (b==5 && a==7){
          ^
  symbol:   variable b
  location: class Main
Main.java:20: error: cannot find symbol
      if (b==5 && a==7){
                  ^
  symbol:   variable a
  location: class Main
12 errors
Language: Java

import java.util.Scanner;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    if (a==b){
      if (a==5 && c==7){
        System.out.println("YES");
        System.exit(0);
      }
    } elif (a==c){
      if (a==5 && b==7){
        System.out.println("YES");
        System.exit(0);
      }
    } elif (b==c){
      if (b==5 && a==7){
        System.out.println("YES");
        System.exit(0);
      }
    }
    System.out.println("NO");
  }
}



Compiler output:
Main.java:14: error: ';' expected
    } elif (a==c){
                 ^
Main.java:19: error: ';' expected
    } elif (b==c){
                 ^
2 errors
Language: C++

#include<bits/stdc++.h>
 
#define ll long long 
# define skorost ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL) 

using namespace std ;
 
ll z , o , ans ;

ll N = 1e4 + 15820 ;

int main(){ skorost ;

	int a[3] ;

	for( int i = 0 ; i < 3 ; i ++ ){

		cin >> a[i] ;

	}

	sort(a,a+n);

	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:22:18: error: 'n' was not declared in this scope
   22 |         sort(a,a+n);
      |                  ^
Language: Java

import java.util.*;

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

Compiler output:
Main.java:11: error: array required, but int found
      if(line[i] == 5){
             ^
Main.java:13: error: array required, but int found
      }else if(line[i] == 7){
                   ^
2 errors