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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:12:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     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>
using namespace std;
int main(){
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(b>c){
  int z;
  b=z;
  b=c;
  c=z;
}
if(a>b){
  int z;
  a=z;
  a=b;
  a=z;
}
if(b>c){
  int z;
  b=z;
  b=c;
  c=z;
}
if(a==5){
  if(b==7&&c==7){
    cout<<YES;
  }else{
    cout<<NO;
  }
}else{
  cout<<NO;
}
return 0;
}
#include<iostream>
using namespace std;
int main(){
int a,b,c;
cin>>a;
cin>>b;
cin>>c;
if(b>c){
  int z;
  b=z;
  b=c;
  c=z;
}
if(a>b){
  int z;
  a=z;
  a=b;
  a=z;
}
if(b>c){
  int z;
  b=z;
  b=c;
  c=z;
}
if(a==5){
  if(b==5&&c==7){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}else{
  cout<<"NO"<<endl;
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: 'YES' was not declared in this scope
   28 |     cout<<YES;
      |           ^~~
a.cc:30:11: error: 'NO' was not declared in this scope
   30 |     cout<<NO;
      |           ^~
a.cc:33:9: error: 'NO' was not declared in this scope
   33 |   cout<<NO;
      |         ^~
a.cc: At global scope:
a.cc:39:5: error: redefinition of 'int main()'
   39 | int main(){
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main(){
      |     ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: 'YES' was not declared in this scope
   28 |     cout<<YES;
      |           ^~~
a.cc:30:11: error: 'NO' was not declared in this scope
   30 |     cout<<NO;
      |           ^~
a.cc:33:9: error: 'NO' was not declared in this scope
   33 |   cout<<NO;
      |         ^~
Language: C++

#include <iostream>

using namespace std;

int main() {
  int fives = 0;
  int sevens = 0;
  int num;
  while (cin >> num) {
    if (num == 5) fives++;
    if (num == 7) sevens++;
  }
  cout << (fives == 2 && sevens == 1) ? "YES" : "NO" << endl;
  
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:54: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   13 |   cout << (fives == 2 && sevens == 1) ? "YES" : "NO" << endl;
      |                                                 ~~~~~^~~~~~~
Language: C

#include <iostream>
using namespace std;
int main(){
    int N, L;
    cin >> N >> L;
    string s[N+10];
    string tmp;
    for(int i=0; i<N; i++){
        cin >> s[i];
    }
    for(int i=0; i<N; i++){
        for(int j=i+1; j<N; j++){
            if(s[i] > s[j]){
                tmp = s[i];
                s[i] = s[j];
                s[j] = tmp;
            }
        }
    }
    for(int i=0; i<N; i++){
        cout << s[i];
    }
    cout << endl;
    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()
{
  int a,b,c;
  cin>>a>>b>>c;
  sum=a+b+c;
  if(sum==17)
  {cout<<"YES"<<endl;
  }
  else
    cout<<"NO"<<endl;
  return 0;
}

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

#include <bits/stdc++.h>
#define MAXN 100010
#define pii pair<int,int>
#define ff first
#define ss second
#define ll long long
#define in_range(x, y, n) (x >= 0 and x<n and y >=0 and y<n)
using namespace std;
const int mod = 1e9 + 7;

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

    if (max(a, b, c) == 7 and min(a, b, c) == 5 and a+b+c - max(a, b, c) - min(a, b, c) == 5){
        cout << "YES" << endl;
    }
    else {
        cout << "NO" << endl;
    }
    return 0;
}

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:15:12:   required from here
   15 |     if (max(a, b, c) == 7 and min(a, b, c) == 5 and a+b+c - max(a, b, c) - min(a, b, c) == 5){
      |         ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:306:17: error: '__comp' cannot be used as a function
  306 |       if (__comp(__a, __b))
      |           ~~~~~~^~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of 'constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare) [with _Tp = int; _Compare = int]':
a.cc:15:34:   required from here
   15 |     if (max(a, b, c) == 7 and min(a, b, c) == 5 and a+b+c - max(a, b, c) - min(a, b, c) == 5){
      |                               ~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:284:17: error: '__comp' cannot be used as a function
  284 |       if (__comp(__b, __a))
      |           ~~~~~~^~~~~~~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int A,B,C;
  printf("A,B,Cの文節の長さを入力：");
  scanf("%d,%d,%d",&A,&B,&C);
  if(A+B+C!=17){
    printf("NO");
  }else{
    if(max(A,B,C)==7){
      if(min(A,B,C)==5){
        printf("YES");
      }else{printf("NO");
           }
    }
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:8: error: implicit declaration of function 'max' [-Wimplicit-function-declaration]
   11 |     if(max(A,B,C)==7){
      |        ^~~
main.c:12:10: error: implicit declaration of function 'min'; did you mean 'main'? [-Wimplicit-function-declaration]
   12 |       if(min(A,B,C)==5){
      |          ^~~
      |          main
Language: C++

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

int main() {
  vector<int> v(3);
  rep(i,3){
    cin >> v[i];
  }
  sort(v.begin(),v.end());
  vector<int> h(3)={5,7,7};
  if(v==h){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
}

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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>A>>B>>C;
      |         ^~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout<<"YES"<<"\n";
      |                 ^~~~
a.cc:13:17: error: 'cout' was not declared in this scope
   13 |                 cout<<"YES"<<"\n";
      |                 ^~~~
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout<<"YES"<<"\n";
      |                 ^~~~
a.cc:21:17: error: 'cout' was not declared in this scope
   21 |                 cout<<"NO"<<"\n";
      |                 ^~~~
Language: C++

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

int main() {
  string A,B,C;
  int a,b,c;
  cin >> A >> B >> C;
  a = A.length();
  b = B.length();
  c = C.length();
  if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) 
     or (b == c  === 7 and a == 5)){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: expected primary-expression before '=' token
   13 |      or (b == c  === 7 and a == 5)){
      |                    ^
Language: C++

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

int main() {
  string A,B,C;
  cin >> A >> B >> C;
  a = A.length();
  b = B.length();
  c = C.length();
  if((a == b == 7 and c == 5) or (a == c == 7 and b == 5) 
     or (b == c  === 7 and a == 5)){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'a' was not declared in this scope
    8 |   a = A.length();
      |   ^
a.cc:9:3: error: 'b' was not declared in this scope
    9 |   b = B.length();
      |   ^
a.cc:10:3: error: 'c' was not declared in this scope
   10 |   c = C.length();
      |   ^
a.cc:12:20: error: expected primary-expression before '=' token
   12 |      or (b == c  === 7 and a == 5)){
      |                    ^
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected primary-expression before '=' token
    8 |      or (b == c  === 7 and a == 5)){
      |                    ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespcae'
    2 | using namespcae std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>a>>b>>c;
      |         ^~~
      |         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:22:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |       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:24:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |       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<bis/stdc++.h>
using namespcae std;

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

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

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(long long i=0;i<(long long)(n);i++)
#define REP(i,k,n) for(long long i=k;i<(long long)(n);i++)
#define all(a) a.begin(),a.end()
#define eb emplace_back
#define lb(v,k) (lower_bound(all(v),k)-v.begin())
#define ub(v,k) (upper_bound(all(v),k)-v.begin())
#define fi first
#define se second
#define pi M_PI
#define PQ(T) priority_queue<T>
#define SPQ(T) priority_queue<T,vector<T>,greater<T>>
using ll=long long;
using P=pair<ll,ll>;
using PP=tuple<ll,ll,ll>;
using S=multiset<ll>;
using vi=vector<ll>;
using vvi=vector<vi>;
using vvvi=vector<vvi>;
const ll inf=1001001001001001;
const int INF=1001001001;
const int mod=1000000007;
const double eps=1e-10;
template<class T> bool chmin(T&a,T b){if(a>b){a=b;return true;}return false;}
template<class T> bool chmax(T&a,T b){if(a<b){a=b;return true;}return false;}
template<class T> void out(T a){cout<<a<<'\n';}
template<class T> void outp(T a){cout<<'('<<a.fi<<','<<a.se<<')'<<'\n';}
template<class T> void outvp(T v){rep(i,v.size())cout<<'('<<v[i].fi<<','<<v[i].se<<')';cout<<'\n';}
template<class T> void outv(T v){rep(i,v.size()){if(i)cout<<' ';cout<<v[i];}cout<<'\n';}
template<class T> void outvv(T v){rep(i,v.size())outv(v[i]);}
template<class T> bool isin(T x,T l,T r){return (l)<=(x)&&(x)<=(r);}
template<class T> void YesNo(T b){if(b)out("Yes");else out("No");}
void decimal(int x){cout<<fixed<<setprecision(x);}
ll modpow(ll a,ll b){a%=mod;if(b==0)return 1;if(b&1)return a*modpow(a,b-1)%mod;ll k=modpow(a,b/2);return k*k%mod;}
vi calc(ll x){vi res;while(x>0){res.eb(x%10);x/=10;}reverse(all(res));return res;}

void solve() {
	//int a,b,c;
	vi v={a,b,c},v_={5,5,7};
	sort(all(v));
	if(v==v_) out("YES");
	else out("NO");
}

signed main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:41:15: error: 'a' was not declared in this scope
   41 |         vi v={a,b,c},v_={5,5,7};
      |               ^
a.cc:41:17: error: 'b' was not declared in this scope
   41 |         vi v={a,b,c},v_={5,5,7};
      |                 ^
a.cc:41:19: error: 'c' was not declared in this scope
   41 |         vi v={a,b,c},v_={5,5,7};
      |                   ^
a.cc:41:20: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'vi' {aka 'std::vector<long long int>'}
   41 |         vi v={a,b,c},v_={5,5,7};
      |                    ^
      |                    |
      |                    <brace-enclosed initializer list>
Language: C++

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:11: error: expected ':' before 'static'
    4 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:4:29: error: 'String' has not been declared
    4 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:4:38: error: expected ',' or '...' before 'args'
    4 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:13:2: error: expected ';' after class definition
   13 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:5:9: error: 'Scanner' was not declared in this scope
    5 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:6:17: error: 'sc' was not declared in this scope
    6 |         int a = sc.nextInt();
      |                 ^~
a.cc:9:13: error: 'System' was not declared in this scope
    9 |             System.out.println("Even");
      |             ^~~~~~
a.cc:11:13: error: 'System' was not declared in this scope
   11 |             System.out.println("Odd");
      |             ^~~~~~
Language: C++

import java.util.*;


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();
      String s = sc.next();

      System.out.println(a+b+c);
      System.out.println(s);
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:15:2: error: expected ';' after class definition
   15 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:7: error: 'Scanner' was not declared in this scope
    6 |       Scanner sc = new Scanner(System.in);
      |       ^~~~~~~
a.cc:7:15: error: 'sc' was not declared in this scope
    7 |       int a = sc.nextInt();
      |               ^~
a.cc:10:7: error: 'String' was not declared in this scope
   10 |       String s = sc.next();
      |       ^~~~~~
a.cc:12:7: error: 'System' was not declared in this scope
   12 |       System.out.println(a+b+c);
      |       ^~~~~~
a.cc:13:26: error: 's' was not declared in this scope
   13 |       System.out.println(s);
      |                          ^
Language: C++

import java.util.*;


class Main {
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();

      int[] array = {a, b, c};
      int[] anwer = {5, 5, 7};

      Arrays.sort(array);

      if (Arrays.equals(array, anwer))
        System.out.println("YES");
      else
        System.out.println("NO");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:7: error: 'Scanner' was not declared in this scope
    6 |       Scanner sc = new Scanner(System.in);
      |       ^~~~~~~
a.cc:7:15: error: 'sc' was not declared in this scope
    7 |       int a = sc.nextInt();
      |               ^~
a.cc:11:10: error: structured binding declaration cannot have type 'int'
   11 |       int[] array = {a, b, c};
      |          ^~
a.cc:11:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:10: error: empty structured binding declaration
a.cc:11:13: error: expected initializer before 'array'
   11 |       int[] array = {a, b, c};
      |             ^~~~~
a.cc:12:10: error: structured binding declaration cannot have type 'int'
   12 |       int[] anwer = {5, 5, 7};
      |          ^~
a.cc:12:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:10: error: empty structured binding declaration
a.cc:12:13: error: expected initializer before 'anwer'
   12 |       int[] anwer = {5, 5, 7};
      |             ^~~~~
a.cc:14:7: error: 'Arrays' was not declared in this scope
   14 |       Arrays.sort(array);
      |       ^~~~~~
a.cc:14:19: error: 'array' was not declared in this scope
   14 |       Arrays.sort(array);
      |                   ^~~~~
a.cc:16:32: error: 'anwer' was not declared in this scope
   16 |       if (Arrays.equals(array, anwer))
      |                                ^~~~~
a.cc:17:9: error: 'System' was not declared in this scope
   17 |         System.out.println("YES");
      |         ^~~~~~
a.cc:19:9: error: 'System' was not declared in this scope
   19 |         System.out.println("NO");
      |         ^~~~~~
Language: C++

import java.util.*;


class Main {
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();

      int[] array = {a, b, c};
      int[] anwer = {5, 5, 7};

      Arrays.sort(array);

      if (array == anwer)
        System.out.println("YES");
      else
        System.out.println("NO");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:21:2: error: expected ';' after class definition
   21 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:7: error: 'Scanner' was not declared in this scope
    6 |       Scanner sc = new Scanner(System.in);
      |       ^~~~~~~
a.cc:7:15: error: 'sc' was not declared in this scope
    7 |       int a = sc.nextInt();
      |               ^~
a.cc:11:10: error: structured binding declaration cannot have type 'int'
   11 |       int[] array = {a, b, c};
      |          ^~
a.cc:11:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:10: error: empty structured binding declaration
a.cc:11:13: error: expected initializer before 'array'
   11 |       int[] array = {a, b, c};
      |             ^~~~~
a.cc:12:10: error: structured binding declaration cannot have type 'int'
   12 |       int[] anwer = {5, 5, 7};
      |          ^~
a.cc:12:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:12:10: error: empty structured binding declaration
a.cc:12:13: error: expected initializer before 'anwer'
   12 |       int[] anwer = {5, 5, 7};
      |             ^~~~~
a.cc:14:7: error: 'Arrays' was not declared in this scope
   14 |       Arrays.sort(array);
      |       ^~~~~~
a.cc:14:19: error: 'array' was not declared in this scope
   14 |       Arrays.sort(array);
      |                   ^~~~~
a.cc:16:20: error: 'anwer' was not declared in this scope
   16 |       if (array == anwer)
      |                    ^~~~~
a.cc:17:9: error: 'System' was not declared in this scope
   17 |         System.out.println("YES");
      |         ^~~~~~
a.cc:19:9: error: 'System' was not declared in this scope
   19 |         System.out.println("NO");
      |         ^~~~~~
Language: C++

import java.util.*;


class Main {
    public static void main(String[] args) {
      Scanner sc = new Scanner(System.in);
      int a = sc.nextInt();
      int b = sc.nextInt();
      int c = sc.nextInt();

      int[] array = {a, b, c}

      Arrays.sort(array);

      if (array == [5, 5, 7])
        System.out.println("YES");
      else
        System.out.println("NO");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:20:2: error: expected ';' after class definition
   20 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:7: error: 'Scanner' was not declared in this scope
    6 |       Scanner sc = new Scanner(System.in);
      |       ^~~~~~~
a.cc:7:15: error: 'sc' was not declared in this scope
    7 |       int a = sc.nextInt();
      |               ^~
a.cc:11:10: error: structured binding declaration cannot have type 'int'
   11 |       int[] array = {a, b, c}
      |          ^~
a.cc:11:10: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:11:10: error: empty structured binding declaration
a.cc:11:13: error: expected initializer before 'array'
   11 |       int[] array = {a, b, c}
      |             ^~~~~
a.cc:13:7: error: 'Arrays' was not declared in this scope
   13 |       Arrays.sort(array);
      |       ^~~~~~
a.cc:13:19: error: 'array' was not declared in this scope
   13 |       Arrays.sort(array);
      |                   ^~~~~
a.cc:15:21: error: expected identifier before numeric constant
   15 |       if (array == [5, 5, 7])
      |                     ^
a.cc:15:22: error: expected ']' before ',' token
   15 |       if (array == [5, 5, 7])
      |                      ^
a.cc: In lambda function:
a.cc:15:22: error: expected '{' before ',' token
a.cc: In static member function 'static void Main::main(int*)':
a.cc:15:28: error: expected ')' before ']' token
   15 |       if (array == [5, 5, 7])
      |                            ^
a.cc:15:10: note: to match this '('
   15 |       if (array == [5, 5, 7])
      |          ^
a.cc:15:28: error: expected primary-expression before ']' token
   15 |       if (array == [5, 5, 7])
      |                            ^
a.cc:18:9: error: 'System' was not declared in this scope
   18 |         System.out.println("NO");
      |         ^~~~~~
Language: C++

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

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

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

A, B, C = [int(i) for i in input().split(' ')]

if A == 7 or B == 7 or C == 7:
    if A == 5 and B == 5:
        print('YES')
    elif A == 5 and C == 5:
        print('YES')
    elif B == 5 and C == 5:
        print('YES')
    else:
        print('NO')


Compiler output:
a.cc:5:15: warning: multi-character character constant [-Wmultichar]
    5 |         print('YES')
      |               ^~~~~
a.cc:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('YES')
      |               ^~~~~
a.cc:9:15: warning: multi-character character constant [-Wmultichar]
    9 |         print('YES')
      |               ^~~~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |         print('NO')
      |               ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A, B, C = [int(i) for i in input().split(' ')]
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int A,B,C
int main() {
 if(A==5,B==5,C==7)printf("Yes")
 else if(A==5,B==7,C==5)printf("Yes")
 else if(A==7,B==5,C==5)printf("Yes")
 else printf("No")
}
 

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main() {
      | ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

int s1 = 0;
int s2=  0;

for (int i = 0; I < 3; ++i) {
if (a[i] == 5) s1++;
else if (a[i] == 7) s2++;
}

if (s1 == 2 && s2 == 1) {
cout << "YES\n";
} else {
cout << "NO\n";
}

return 0;
}

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

#include <bits/stdc++.h>

using namespace std;

int main() {
int a,b,c;
cin >> a >> b > >c;
if (a+b+c == 19) {
 cout << "YES\n";
} else {
cout << "NO\n";
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '>' token
    7 | cin >> a >> b > >c;
      |                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int sum=17;
  int mul=175;
  int a=0;
  int sum1=0;
  int mul1=1;
  for(int i=0;i<3;i++)
  {cin>>a;
   sum1=sum1+a;
   mul1=mul1*a}
  if(sum==sum1&&mul==mul1)
  {cout<<"yes";
  }
  else
  {cout<<"no";}
  return 0;
}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected ';' before '}' token
   12 |    mul1=mul1*a}
      |               ^
      |               ;
Language: C++

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

int main(){
  int A,B,C;
  cin>>A,B,C;
  
  int w5 =0;
  int w7 =0+
  if(A==5){
    w5++;
  }
  else if(A ==7){
    w7++;
  }
  if(B==5){
    w5++;
  }
  else if(B ==7){
    w7++;
  }
  if(C==5){
    w5++;
  }
  else if(C ==7){
    w7++;
  }
  if(w5 ==2&&w7==1){
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }


  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: expected primary-expression before 'if'
   10 |   if(A==5){
      |   ^~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
 
                int a = sc.nextInt();
                int b = sc.nextInt();
                int c = sc.nextInt();
 
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                    System.out.println("OK");
                }else{
                   System.out.println("NG");
                }
     }
}              

Compiler output:
Main.java:10: error: ')' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                     ^
Main.java:10: error: ')' or ',' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                 ^
Main.java:10: error: ';' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                      ^
Main.java:10: error: ')' or ',' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                        ^
Main.java:10: error: ';' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                             ^
Main.java:10: error: ')' or ',' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                                               ^
Main.java:10: error: ';' expected
                if ((a + b + c == 17) and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                                                    ^
Main.java:12: error: 'else' without 'if'
                }else{
                 ^
8 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

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

                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                    System.out.println("OK");
                }else{
                   System.out.println("NG");
                }
     }
}              

Compiler output:
Main.java:10: error: ')' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                   ^
Main.java:10: error: ')' or ',' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                               ^
Main.java:10: error: ';' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                    ^
Main.java:10: error: ')' or ',' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                      ^
Main.java:10: error: ';' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                           ^
Main.java:10: error: ')' or ',' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                                             ^
Main.java:10: error: ';' expected
                if (a + b + c == 17 and (a == 5 or a == 7) and (b == 5 or b == 7) and (c == 5 or c == 7)){
                                                                                                  ^
Main.java:12: error: 'else' without 'if'
                }else{
                 ^
8 errors
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected ';' before '{' token
    7 |   int (a==5&&b==7||b==5&&c==7 )
      |                                ^
      |                                ;
    8 |   {
      |   ~                             
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
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) cout << "YES" << endl;
  else if (A == 5 && B == 7 && C == 5) cout << "YES" << endl;
  else if (A == 7 %% B == 5 && C == 5) cout << "YES" << endl;
  else cout << "NO" << endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected primary-expression before '%' token
    9 |   else if (A == 7 %% B == 5 && C == 5) 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";
      else cout << "NO";
    return 0
}

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

int main(void){
  int A,B,C;
  bool f = false; 
  scanf("%d %d %d",&A,&B,&C);
  if(A+B+C==17){
  	if((A=7&&B==5)||(A=5&&B==7)||(A=5&&B==5)){
    	f=true;
    }
  }
  if(f){
    printf("YES");
  }else{
    printf("NO");
  }
}

Compiler output:
main.c: In function 'main':
main.c:3:3: error: unknown type name 'bool'
    3 |   bool f = false;
      |   ^~~~
main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | int main(void){
main.c:3:12: error: 'false' undeclared (first use in this function)
    3 |   bool f = false;
      |            ^~~~~
main.c:3:12: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:3:12: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d %d",&A,&B,&C);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d %d",&A,&B,&C);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:11: error: 'true' undeclared (first use in this function)
    7 |         f=true;
      |           ^~~~
main.c:7:11: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:11:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   11 |     printf("YES");
      |     ^~~~~~
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:11:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   13 |     printf("NO");
      |     ^~~~~~
main.c:13:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

Compiler output:
main.c:2:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | int main{
      |         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a+b+c==17)
  {
    cout<<"Yes"<<endl;
  }
   elif(a*b*c==175)
  {
    cout<<"Yes"<<endl;
   }
   else
  {
    cout<<"NO"<<endl;
   }
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:4: error: 'elif' was not declared in this scope
   11 |    elif(a*b*c==175)
      |    ^~~~
a.cc:15:4: error: 'else' without a previous 'if'
   15 |    else
      |    ^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'A' was not declared in this scope
    5 |   vector<int> vec={A,B,C}
      |                    ^
a.cc:5:22: error: 'B' was not declared in this scope
    5 |   vector<int> vec={A,B,C}
      |                      ^
a.cc:5:24: error: 'C' was not declared in this scope
    5 |   vector<int> vec={A,B,C}
      |                        ^
a.cc:5:25: error: could not convert '{<expression error>, <expression error>, <expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
    5 |   vector<int> vec={A,B,C}
      |                         ^
      |                         |
      |                         <brace-enclosed initializer list>
a.cc:7:3: error: expected ',' or ';' before 'sort'
    7 |   sort(vec.begin(),vec.end());
      |   ^~~~
a.cc:9:10: error: expected unqualified-id before '(' token
    9 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){
      |          ^
a.cc:9:22: error: expected unqualified-id before '(' token
    9 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){
      |                      ^
a.cc:9:34: error: expected unqualified-id before '(' token
    9 |   if(vec.(0)==5&&vec.(1)==5&&vec.(2)==7){
      |                                  ^
a.cc:13:21: error: 'ednl' was not declared in this scope
   13 |     cout << "NO" << ednl;
      |                     ^~~~
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);

		int a;

		int five = 0;
		int seven = 0;

		for(int i = 0; i < 3; i++) {
			a = sc.nextInt();
			if(a == 5) {
				five++;
			}
			if(a == 7) {
				seven++;
			}
		}

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

		sc.close();

	}

}

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

int main() {
  vector<int> a(3);
  int a5=0;
  int a7=0;
  rep(i,3) cin>>a[i];
  rep(i,3){
  if(a[i]==5) a5++;
   else if(a[i]==7) a7++;
  }
  
  if(a5==2&&a7==1){ cout<<"YES"<<endl;}
  else{cout<<"NO"<<endl;}



}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'vector' was not declared in this scope
    2 |   vector<int> a(3);
      |   ^~~~~~
a.cc:2:10: error: expected primary-expression before 'int'
    2 |   vector<int> a(3);
      |          ^~~
a.cc:5:7: error: 'i' was not declared in this scope
    5 |   rep(i,3) cin>>a[i];
      |       ^
a.cc:5:3: error: 'rep' was not declared in this scope
    5 |   rep(i,3) cin>>a[i];
      |   ^~~
a.cc:11:21: error: 'cout' was not declared in this scope
   11 |   if(a5==2&&a7==1){ cout<<"YES"<<endl;}
      |                     ^~~~
a.cc:11:34: error: 'endl' was not declared in this scope
   11 |   if(a5==2&&a7==1){ cout<<"YES"<<endl;}
      |                                  ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope
   12 |   else{cout<<"NO"<<endl;}
      |        ^~~~
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |   else{cout<<"NO"<<endl;}
      |                    ^~~~
Language: C++

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

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


Compiler output:
a.cc:23:5: error: redefinition of 'int main()'
   23 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: Java

import java.util.Scanner;
class Main{
        public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    }
}

Compiler output:
Main.java:14: error: cannot find symbol
        Arrays.sort(d);
        ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

import java.util.*;
class Solution{
        public static void main(String [] args){
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
                int b = sc.nextInt();
        int c = sc.nextInt();

                int [] d = new int [3];
        d[0] = a;
        d[1] = b;
        d[2] = c;

        Arrays.sort(d);
        if((d[0] == 5 && d[1] == 5) && d[2] == 7)
          System.out.println("YES");
        else
          System.out.println("NO");

    }
}
~          

Compiler output:
Main.java:22: error: class, interface, enum, or record expected
~          
^
1 error
Language: Java

import java.util.Scanner;

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

	}
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int a,b,c;
    cin>>a>>b>>c;
    if((a=='5'&&b=='5'&&c=='7')||(b=='5'&&c=='5'&&a=='7')||(c=='5'&&a=='5'&&b=='7'))
        cout<<"Yes"
    else
        cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'else'
   12 |         cout<<"Yes"
      |                    ^
      |                    ;
   13 |     else
      |     ~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long int lli;
int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(nullptr);
    cout.tie(nullptr);
    int a,b,c;
    cin>>a>>b>>c;
    if((a=='5'&&b=='5'&&c=='7')||(b=='5'&&c=='5'&&a=='7')||(c=='5'&&a=='5'&&b=='7'))
        cout<<"Yes"
    else
    cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'else'
   12 |         cout<<"Yes"
      |                    ^
      |                    ;
   13 |     else
      |     ~~~~