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

import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;

class Main{
          public static void main(String[] args) {
                  Scanner scan = new Scanner(System.in);
                  int A = scan.nextInt();
                  int B = scan.nextInt();
                  int C = scan.nextInt();
                  if (A == 5 && B == 7 && C == 5) {
                          boolean f = true;
                  }
                  if (A == 7 && B == 5 && C == 5) {
                          f = true;
                  }
                  if (A == 5 && B == 5 && C == 7) {
                          f = true;
                  }
                  if (f) {
                          System.out.println("YES");
                  }
                  else System.out.println("NO");
                  }
}


Compiler output:
Main.java:19: error: cannot find symbol
                          f = true;
                          ^
  symbol:   variable f
  location: class Main
Main.java:22: error: cannot find symbol
                          f = true;
                          ^
  symbol:   variable f
  location: class Main
Main.java:24: error: cannot find symbol
                  if (f) {
                      ^
  symbol:   variable f
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;

class Main{
          public static void main(String[] args) {
                  Scanner scan = new Scanner(System.in);
                  int A = scan.nextInt();
                  int B = scan.nextInt();
                  int C = scan.nextInt();
                  if (A == 5 && B == 7 && C == 5) {
                          boolean f = true;
                  }
                  if (A == 7 && B == 5 && C == 5) {
                          boolean f = true;
                  }
                  if (A == 5 && B == 5 && C == 7) {
                          boolean f = true;
                  }
                  if (f) {
                          System.out.println("YES");
                  }
                  else System.out.println("NO");
                  }
}


Compiler output:
Main.java:24: error: cannot find symbol
                  if (f) {
                      ^
  symbol:   variable f
  location: class Main
1 error
Language: C++

str = gets
ary = []
ary.push(str[0])
ary << str[2]
ary << str[4]

a = ["5", "5", "7"]
b = ["5", "7", "5"]
c = ["7", "5", "5"]

if ary == a || ary == b || ary == c
	puts "Yes"
else
	puts "No"
end

Compiler output:
a.cc:1:1: error: 'str' does not name a type
    1 | str = gets
      | ^~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
using namespace std;
int main()
{
	int a,b,c;
	cin>>a>>b>>y;
	if(a==5&&b==5&&y==7)
	cout<<"YES"<<endl;
	else if(a==5&&b==7&&y==5)
	 cout<<"YES"<<endl;
	 else if(a==7&&b==5&&y==5)
	 cout<<"YES"<<endl;
	 else cout<<"No"<<endl;
	return 0;
}

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

#include <iostream>
using namespace std;
int main(){
  int n5=0, n7=0;
  for (int i=0; i<3 ; ++i){
    cin >> d;
    if(d==5) ++n5;
    if(d==7) ++n7;
  }
  if(n5==2 and n7==1) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}

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

#include <iostream>

int main(){
  int n5=0, n7=0;
  for (int i=0; i<3 ; ++i){
    cin >> d;
    if(d==5) ++n5;
    if(d==7) ++n7;
  }
  if(n5==2 and n7==1) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> d;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:12: error: 'd' was not declared in this scope
    6 |     cin >> d;
      |            ^
a.cc:10:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   if(n5==2 and n7==1) cout << "YES" << endl;
      |                       ^~~~
      |                       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:40: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   if(n5==2 and n7==1) cout << "YES" << endl;
      |                                        ^~~~
      |                                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |   else cout << "NO" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin>>a[0]>>a[1]>>a[2];
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'sort' was not declared in this scope; did you mean 'std::sort'?
    6 |     sort(a,a+3);
      |     ^~~~
      |     std::sort
In file included from /usr/include/c++/14/algorithm:86,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: 'std::sort' declared here
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
a.cc:7:35: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl;
      |                                   ^~~~
      |                                   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:48: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     if(a[0]==5&&a[1]==5&&a[2]==7) cout<<"YES"<<endl;
      |                                                ^~~~
      |                                                std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:8:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     else cout<<"NO"<<endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |     else cout<<"NO"<<endl;
      |                      ^~~~
      |                      std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:12:12: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   if(flag) cout << "YES" << endl;
      |            ^~~~
      |            std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:29: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |   if(flag) cout << "YES" << endl;
      |                             ^~~~
      |                             std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:13:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |   else cout << "NO" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
using namespace std;
typedef long long lng;
#define UP(i,a,b) for(int i=(a); i<=(b); ++i)
#define DOWN(i,b,a) for(int i=(b); i>=(a); --i)
#define REP(i,n) UP(i,0,n-1)
#define ALL(a) (a).begin(), (a).end()
#define UNIQUE(a) a.erase(unique(ALL(a)), a.end()) //NOTE: <a> must be sorted in advance

lng power(lng b, lng n) {lng sol=1; while(n>0) {if(n&1) {sol=sol*b;} n>>=1; b*= b;} return sol;} //calculate b^n

const int MOD = 1000000007; //10^9+7


/*********** variables ************/

/**********************************/

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    int A,B,C;
    cin >> A >> B >> C;

    if(a*b*c==175) cout << "Yes" << endl;
    else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:8: error: 'a' was not declared in this scope
   28 |     if(a*b*c==175) cout << "Yes" << endl;
      |        ^
a.cc:28:10: error: 'b' was not declared in this scope
   28 |     if(a*b*c==175) cout << "Yes" << endl;
      |          ^
a.cc:28:12: error: 'c' was not declared in this scope
   28 |     if(a*b*c==175) cout << "Yes" << endl;
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>
#include <vector>
 
using namespace std;
 
int main() {
  vector<int> A(3);
  for(int i = 0; i < 3; i++) cin >> A[i];
  sort(A.begin(), A.end());
  if (A[0] == 5 && A[1] == 5 && A[2] == 7) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> A(3);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> A(3);
      |          ^~~
a.cc:7:37: error: 'A' was not declared in this scope
    7 |   for(int i = 0; i < 3; i++) cin >> A[i];
      |                                     ^
a.cc:8:8: error: 'A' was not declared in this scope
    8 |   sort(A.begin(), A.end());
      |        ^
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(A.begin(), A.end());
      |   ^~~~
      |   short
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:26: error: expected ';' before ':' token
    9 |                 cin>>a[1]:
      |                          ^
      |                          ;
a.cc:10:29: error: 'j' was not declared in this scope
   10 |                 for(int j=0;j<3;j++){
      |                             ^
Language: C++

#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
int main(){
	int s[3];
	for(int i=0;i<3;i++)cin>>s[i];
	sort(s,s+3);
	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:7:29: error: 'cin' was not declared in this scope
    7 |         for(int i=0;i<3;i++)cin>>s[i];
      |                             ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <cmath>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:9:38: error: 'cout' was not declared in this scope
    9 |         if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl;
      |                                      ^~~~
a.cc:9:38: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:51: error: 'endl' was not declared in this scope
    9 |         if(s[0]==5&&s[1]==5&&s[2]==7)cout<<"YES"<<endl;
      |                                                   ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <cmath>
  +++ |+#include <ostream>
    4 | using namespace std;
a.cc:10:14: error: 'cout' was not declared in this scope
   10 |         else cout<<"NO"<<endl;
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         else cout<<"NO"<<endl;
      |                          ^~~~
a.cc:10:26: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ')' before ';' token
    9 | else(cout<<"No"<<endl;}
      |     ~                ^
      |                      )
a.cc: At global scope:
a.cc:10:1: error: expected unqualified-id before 'return'
   10 | return 0;
      | ^~~~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C

#include<iostream>
#include<algorithm>
#include<vector>
#include<stack>
#include<queue>
#include<string>

using namespace std;

int main(void)
{
	int i;
	vector<int>n(3);
	for (i = 0; i < 3; i++)
	{
		cin >> n[i];
	}
	sort(n.begin(), n.end());
	if (n[0] == 5 && n[1] == 5 && n[2] == 7)
	{
		cout << "YES\n";
	}
	else
	{
		cout << "NO\n";
	}
	return 0;
}


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

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

public class ARC058A {
    int a, b, c;

    public static void main(String args[]) {
        new ARC058A().run();
    }

    void run() {
        FastReader sc = new FastReader();
        a = sc.nextInt();
        b = sc.nextInt();
        c = sc.nextInt();
        solve();
    }

    void solve() {
        if (a == 7 && b == 5 && c == 5) {
            System.out.println("YES");
        } else if (a == 5 && b == 7 && c == 7) {
            System.out.println("YES");
        } else if (a == 5 && b == 5 && c == 7){
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


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

import System.IO

quick [] = []
quick (x:xs)=
    let sma_eq = [a | a <- xs,a <= x]
        lar    = [a | a <- xs,a >  x]
    in  quick sma_eq ++ [x] ++ quick lar


main = do
    ss <- (map read . words) <$> getLine
    if (sum ss == 17) && (minimum ss == 5) && (maximum ss ==7)
        then putStrLn "YES"
        else putStrLn "NO"

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import System.IO
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
#include <iostream>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <complex>
#include <vector>
#include <list>
#include <set>
#include <queue>
#include <stack>
#include <map>
#include <string>
#include <algorithm>
#if __cplusplus >= 201103
#include <numeric>
#endif
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected '}' before 'else'
    9 |         else{
      |         ^~~~
a.cc:7:38: note: to match this '{'
    7 |         if(a[0]==5&&a[1]==5&&a[2]==7){
      |                                      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |              ~^~~~~
a.cc:7:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                        ~^~~~~
a.cc:7:35: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                  ~^~~~~
a.cc:7:45: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                            ~^~~~~
a.cc:7:55: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                                      ~^~~~~
a.cc:7:65: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                                                ~^~~~~
a.cc:7:75: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                                                          ~^~~~~
a.cc:7:85: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                                                                    ~^~~~~
a.cc:7:95: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |         if ((a=="5" && b=="5" && c=="7")||(a=="5" && b=="7" && c=="5")||(a=="7" && b=="5" && c=="5")) cout << "YES" << endl;
      |                                                                                              ~^~~~~
Language: C++

count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
is_ok :: String -> Bool
-- Implement code below
is_ok s = ( 2 == length ( count_5 s ) ) && ( 1 == length ( count_7 s ) )
-- This is related to IO , you don ’ t have to completed it XD
main = do
s <- getLine
putStrLn $ if is_ok s then " Yes " else " No "

Compiler output:
a.cc:1:11: warning: multi-character literal with 16 characters exceeds 'int' size of 4 bytes
    1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
      |           ^~~~~~~~~~~~~~~~~~
a.cc:1:32: error: stray '`' in program
    1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
      |                                ^
a.cc:1:37: error: stray '`' in program
    1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
      |                                     ^
a.cc:2:11: error: empty character constant
    2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
      |           ^~
a.cc:2:29: error: empty character constant
    2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
      |                             ^~
a.cc:2:34: error: stray '`' in program
    2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
      |                                  ^
a.cc:2:39: error: stray '`' in program
    2 | count_7 st'' = [ c | c <- st'',c `elem` [ 7 ]]
      |                                       ^
a.cc:6:36: error: extended character ’ is not valid in an identifier
    6 | -- This is related to IO , you don ’ t have to completed it XD
      |                                    ^
a.cc:1:1: error: 'count_5' does not name a type
    1 | count_5 st' = [ c | c <- st',c `elem` [ 5 ]]
      | ^~~~~~~
Language: C++


#include<iostream>
#include<vector>

using namespace std;

int main(){

	int N,L;

	cin >> N >> L;

    vector<string> v;

    string ret;

    string s;
	for(int i = 0;i < N;i++){
	   cin  >>	s;
	   v.push_back(s);
	}

    sort(v.begin(),v.end());

    for(vector<string>::iterator it = v.begin() ;it != v.end();it++){
    	ret += *it;
    }

    cout << ret << endl;

    return 0;

}

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

//問題URL
//
 
//解き方メモ
//
    
#include<iostream>
using namespace std;
 
int main(){
  int abc[3];
  int five_cnt=0;
  int seven_cnt=0;
 
  cin >> abc[0] >> abc[1] >> abc[2];
 
  for(int i=0;i<3;i++){
    if(a[i] == 5){
      five_cnt++;
    } else if(a[i] == 7){
      seven_cnt++;
    }
  }

  if(five_cnt == 2 && seven_cnt == 1){
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: 'a' was not declared in this scope
   18 |     if(a[i] == 5){
      |        ^
Language: C++

#include <iostream>
 int main() {
 	int A, B, C;
 	std::cin >> A >> B >> C;
 	int N = count (A, B, 5);
 	int n = count (C, 5);
 	int M = count (A, B, 7);
 	int m = count (C, 7);
 	if (N + n == 2 && M + m == 1) {
 		std::cout << "Yes" <<std::endl;
 	} else {
 		std::cout << "No" <<std::endl;
 	}





 	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:17: error: 'count' was not declared in this scope
    5 |         int N = count (A, B, 5);
      |                 ^~~~~
Language: C++

#include <iostream>
 int main() {
 	int A, B, C;
 	std::cin >> A >> B >> C;
 	int N = std::count (A, B, 5);
 	int n = std::count (C, 5);
 	int M = std::count (A, B, 7);
 	int m = std::count (C, 7);
 	if (N + n == 2 && M + m == 1) {
 		std::cout << "Yes" <<std::endl;
 	} else {
 		std::cout << "No" <<std::endl;
 	}





 	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    5 |         int N = std::count (A, B, 5);
      |                      ^~~~~
      |                      cout
a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    6 |         int n = std::count (C, 5);
      |                      ^~~~~
      |                      cout
a.cc:7:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    7 |         int M = std::count (A, B, 7);
      |                      ^~~~~
      |                      cout
a.cc:8:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    8 |         int m = std::count (C, 7);
      |                      ^~~~~
      |                      cout
Language: C++

#include <iostream>
 int main() {
 	int A, B, C;
 	std::cin >> A >> B >> C;
 	int N = std::count (A, B, C, 1);
 	int M = std::count (A, B, C, 7);
 	if (N == 2 && M == 1) {
 		std::cout << "Yes" <<std::endl;
 	} else {
 		std::cout << "No" <<std::endl;
 	}





 	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    5 |         int N = std::count (A, B, C, 1);
      |                      ^~~~~
      |                      cout
a.cc:6:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
    6 |         int M = std::count (A, B, C, 7);
      |                      ^~~~~
      |                      cout
Language: C++

#include <iostream>
 int main() {
 	int A, B, C;
 	std::cin >> A >> B >> C;
 	if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
 		std::cout << "Yes" <<std::endl;
 	} else {
 		std::cout << "No" <<std::endl;
 	}





 	return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: 'count' is not a member of 'std'; did you mean 'cout'?
    5 |         if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
      |                  ^~~~~
      |                  cout
a.cc:5:50: error: 'count' is not a member of 'std'; did you mean 'cout'?
    5 |         if (std::count (A, B, C, 1) == 2 && std::count (A, B, C, 7) == 1) {
      |                                                  ^~~~~
      |                                                  cout
Language: C++

#include <bits/stdc++.h>

using namespace std;

//#define MD 100010

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected primary-expression before ';' token
   13 |             cnt_go+++;
      |                      ^
Language: C++

#include "bits\stdc++.h"
#define REP(i,m,n) for(long long i=m;i<n;++i)
#define INF 10000000000000000
#define MOD 1000000007
#define ll long long
#define mp make_pair
#define all(v) v.begin(),v.end()
using namespace std;

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


Compiler output:
a.cc:1:10: fatal error: bits\stdc++.h: No such file or directory
    1 | #include "bits\stdc++.h"
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#inlcude <bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c==17&&a*b*c==245){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}

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: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: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++

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

Compiler output:
a.cc:13:15: error: stray '\' in program
   13 |     printf(YES\n);
      |               ^
a.cc: In function 'int main()':
a.cc:13:12: error: 'YES' was not declared in this scope
   13 |     printf(YES\n);
      |            ^~~
Language: C++

package main

import (
	"bufio"
	"fmt"
	"os"
	"sort"
	"strconv"
	"strings"
)

var sc = bufio.NewScanner(os.Stdin)

func nextLine() string {
	sc.Scan()
	return sc.Text()
}

func main() {
	abc := strings.Split(nextLine(), " ")
	var slc []int
	for _, s := range abc {
		tmp, _ := strconv.Atoi(s)
		slc = append(slc, tmp)
	}
	sort.Slice(slc, func(i, j int) bool { return slc[i] < slc[j] })
	if slc[0] == 5 && slc[1] == 5 && slc[2] == 7 {
		fmt.Println("YES")
	} else {
		fmt.Println("NO")
	}
}


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

#include <iostream>
#include <string>
#include <string.h>
#include <map>
#include <set>
#include <vector>
#include <stdio.h>
#include <math.h>
#include <algorithm>
#include <queue>
#include <cmath>
#include <cstdio>
using namespace std;
int main(){
int c=0,b=0;
int a[2];
for(int i=0;i<=2;i++)
cin>>a[i];;
for(int i=0;i<n;i++){
if(a[i]==5)
b++;
if(a[i]==7)
c++;}
if(b==2&&c==1)
cout<<"YES";
else
cout<<"NO";
system("pause");
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:15: error: 'n' was not declared in this scope
   19 | for(int i=0;i<n;i++){
      |               ^
Language: Java

import java.util.Scanner;

public class Main{
	public static void main(String[] args) throws IOException{
		int count_5=0,count_7=0;
		Scanner scan =new Scanner(System.in);
		
		for(int i=0;i<3;i++)
		{
			int num=scan.nextInt();
			if(num==5) count_5++;
			if(num==7) count_7++;
		}

		if(count_5==2 && count_7==1) System.out.println("YES");
		else System.out.println("NO");

	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.util.Scanner;

public class main{
	public static void main(String[] args) throws IOException{
		int count_5=0,count_7=0;
		Scanner scan =new Scanner(System.in);
		
		for(int i=0;i<3;i++)
		{
			int num=scan.nextInt();
			if(num==5) count_5++;
			if(num==7) count_7++;
		}

		if(count_5==2 && count_7==1) System.out.println("YES");
		else System.out.println("NO");

	}
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:4: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class main
2 errors
Language: Java

import java.util.Scanner;

public class Iroha{
	public static void main(String[] args) throws IOException{
		int count_5=0,count_7=0;
		Scanner scan =new Scanner(System.in);
		
		for(int i=0;i<3;i++)
		{
			int num=scan.nextInt();
			if(num==5) count_5++;
			if(num==7) count_7++;
		}

		if(count_5==2 && count_7==1) System.out.println("YES");
		else System.out.println("NO");

	}

}

Compiler output:
Main.java:3: error: class Iroha is public, should be declared in a file named Iroha.java
public class Iroha{
       ^
Main.java:4: error: cannot find symbol
	public static void main(String[] args) throws IOException{
	                                              ^
  symbol:   class IOException
  location: class Iroha
2 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
  //数値入力
  int a,b,c;
  cin>>a>>b>>c;
  
  //判定yes
  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;
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
Language: Java

import java.io.*;
import java.util.*;
class main
{
public static void main (String args[])
{
   Scanner sc=new Scanner(System.in);
   int a[]=new int[3];
    a[0]=5;
    a[1]=7;
     a[2]=5;
    int b[]=new int[3];
    for(int i=0;i<3;i++)
      {b[i]=sc.nextInt();}
     int count=0;
    for(int i=0;i<3;i++)
     {
       for(int j=0;j<3;j++)
        {
          if(b[i]==a[j])
          {
             a[j]=0;
             count++;
              break;
           }
         }
       }
  if(count=3)
{
  System.out.println("YES");
}
else
System.out.println("NO");
   

}
}

Compiler output:
Main.java:28: error: incompatible types: int cannot be converted to boolean
  if(count=3)
          ^
1 error
Language: C++

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

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

}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'a' was not declared in this scope; did you mean 'ar'?
    6 |         int ar[3] = { a,b,c };
      |                       ^
      |                       ar
a.cc:6:25: error: 'b' was not declared in this scope
    6 |         int ar[3] = { a,b,c };
      |                         ^
a.cc:6:27: error: 'c' was not declared in this scope
    6 |         int ar[3] = { a,b,c };
      |                           ^
Language: Java

public class Main {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(in.readLine());
    
    int fiveCount = 0;
    int sevenCount = 0;
    for (int i = 0; i < 3; i++) {
        int x = Integer.parseInt(st.nextToken());
        if (x == 5)
             fiveCount++;
        if (x == 7) 
             sevenCount++;
    }
    if (fiveCount == 2 && sevenCount == 1)
         System.out.println("YES");
    else 
         System.out.println("NO");
  }
}

Compiler output:
Main.java:2: error: cannot find symbol
  public static void main(String[] args) throws IOException {
                                                ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
    StringTokenizer st = new StringTokenizer(in.readLine());
    ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:4: error: cannot find symbol
    StringTokenizer st = new StringTokenizer(in.readLine());
                             ^
  symbol:   class StringTokenizer
  location: class Main
6 errors
Language: Java

import java.io.*;
import java.util.*;
 
public class ACBeg42 {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(in.readLine());
    
    int fiveCount = 0;
    int sevenCount = 0;
    for (int i = 0; i < 3; i++) {
        int x = Integer.parseInt(st.nextToken());
        if (x == 5)
             fiveCount++;
        if (x == 7) 
             sevenCount++;
    }
    if (fiveCount == 2 && sevenCount == 1)
         System.out.println("YES");
    else 
         System.out.println("NO");
  }
}

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

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

public class ACBeg42 {
  public static void main(String[] args) throws IOException {
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    StringTokenizer st = new StringTokenizer(in.readLine());
    
    int fiveCount = 0;
    int sevenCount = 0;
    for (int i = 0; i < N; i++) {
        int x = Integer.parseInt(st.nextToken());
        if (x == 5)
             fiveCount++;
        if (x == 7) 
             sevenCount++;
    }
    if (fiveCount == 2 && sevenCount == 1)
         System.out.println("YES");
    else 
         System.out.println("NO");
  }
}

Compiler output:
Main.java:4: error: class ACBeg42 is public, should be declared in a file named ACBeg42.java
public class ACBeg42 {
       ^
Main.java:11: error: cannot find symbol
    for (int i = 0; i < N; i++) {
                        ^
  symbol:   variable N
  location: class ACBeg42
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

#include<iostraeam>
#include<string>
#include<cstring>
using namespace std;
int main(){
	int a,b,c;
	cin>>a>>b>>c;
	if(a==7&&b==5&&c==5){cout<<"YES";return 0;}
	if(a==5&&b==7&&c==5){cout<<"YES";return 0;}
	if(a==5&&b==5&&c==7){cout<<"YES";return 0;}
	cout<<"NO";
	return 0;
}

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

a,b,c=gets.split(" ").map(&:to_i)
count5=0
count7=0
count5 +=1 if a == 5
count7 +=1 if a == 7
count5 +=1 if b == 5
count7 +=1 if b == 7
count5 +=1 if c == 5
count7 +=1 if c == 7
print count5 == 2 && count7==1 ? "YES\n" : "NO\n"

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a,b,c=gets.split(" ").map(&:to_i)
      | ^
Language: C++

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

	return0;
}

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

#include<iostream>
#include<cstdio>
#include<string>
#include<algorithm>
#include<queue>
#include<cstring>
#include<utility>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<map>
#include<set>
#include<stack>
#include<bitset>
#include<deque>
#include<cctype>
using namespace std;
int main()
{
	int five=0;
	int seven=0;
	int a,b,c;
	cin>>a>>b>>c;
	if(a==5) five++;
	else if(a==7) seven++;
	if(b==5) five++;
	else if(b==7) seven++;
	if(c==5) five++;;
	else if(c==7) seven++;
	if(five==2&&seven==1) cout<<"Yes";
	else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:9: error: 'else' without a previous 'if'
   29 |         else if(c==7) seven++;
      |         ^~~~
Language: C++

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


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

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

#define INF 1.1e9
#define LINF 1.1e18
#define FOR(i,a,b) for (int i=(a);i<(b);++i)
#define REP(i,n) FOR(i,0,n)
#define ALL(v) (v).begin(),(v).end()
#define pb push_back
#define pf push_front
#define fi first
#define se second
#define BIT(x,n) bitset<n>(x)
#define PI 3.14159265358979323846

typedef long long ll;
typedef pair<int,int> P;
typedef pair<int,P> PP;

struct edge {
	int to, cost;
	edge(int t,int c):to(t),cost(c) {}
};


//-----------------------------------------------------------------------------

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);

	int a[3];REP(i,3) cin>>a[i];
	sort(a,a+3);
	if(a[0]==a[1]&&a[0]=5&&a[2]==7) cout<<"YES"<<endl;
	else cout<<"NO"<<endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:22: error: lvalue required as left operand of assignment
   35 |         if(a[0]==a[1]&&a[0]=5&&a[2]==7) cout<<"YES"<<endl;
      |            ~~~~~~~~~~^~~~~~
Language: Java

import java.util.Scanner;

public class Q042 {

	public static void Main(String[] args) {
		try (Scanner scanner = new Scanner(System.in)) {
			int[] count = new int[11];
			count[scanner.nextInt()]++;
			count[scanner.nextInt()]++;
			count[scanner.nextInt()]++;

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

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

#include <iostream>
#include <array>
#include <algorithm>

void main() {
  int a, b, c;
  std::cin >> a >> b >> c;
  std::array<int, 3> inputs{a, b, c};
  
  auto found5 = std::count(inputs.begin(), inputs.end(), 5);
  auto found7 = std::count(inputs.begin(), inputs.end(), 7);

  std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
}

Compiler output:
a.cc:13:47: warning: multi-character character constant [-Wmultichar]
   13 |   std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
      |                                               ^~~~~
a.cc:13:55: warning: multi-character character constant [-Wmultichar]
   13 |   std::cout << (found5 == 2 && found7 == 1) ? 'YES' : 'NO';
      |                                                       ^~~~
a.cc:5:1: error: '::main' must return 'int'
    5 | void main() {
      | ^~~~