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

#include <bits/stdc++.h>
#define ll long long int
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected primary-expression before '||' token
    8 |   if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
      |                      ^~
Language: C++

#include <bits/stdc++.h>
#define ll long long int
using namepace std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namepace'
    3 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:8:22: error: expected primary-expression before '||' token
    8 |   if(a==b==5 && c==7)||(c==b==5 && a==7)||(a==c==5 && b==7))
      |                      ^~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:3: error: expected '}' before 'else'
   17 |   else if (a==5){
      |   ^~~~
a.cc:10:12: note: to match this '{'
   10 |   if (a==7){
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

  if (a==7){
      if (b==5 and c==5){
         cout << 'yes' << endl;
      }
    else{
      cout << 'no' << endl;
    }
  else if (a==5){
    if ((b==5 and c==7) or (b==7 and c==5)){
     cout << 'yes' << endl;
      }
    else{
      cout << 'no' << endl;
    }
  }
}
        


Compiler output:
a.cc:12:18: warning: multi-character character constant [-Wmultichar]
   12 |          cout << 'yes' << endl;
      |                  ^~~~~
a.cc:15:15: warning: multi-character character constant [-Wmultichar]
   15 |       cout << 'no' << endl;
      |               ^~~~
a.cc:19:14: warning: multi-character character constant [-Wmultichar]
   19 |      cout << 'yes' << endl;
      |              ^~~~~
a.cc:22:15: warning: multi-character character constant [-Wmultichar]
   22 |       cout << 'no' << endl;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:17:3: error: expected '}' before 'else'
   17 |   else if (a==5){
      |   ^~~~
a.cc:10:12: note: to match this '{'
   10 |   if (a==7){
      |            ^
Language: Java


import java.util.Scanner;
public class Contest {

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


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

#include <iostream>
using namespace std;

int main(void) {
    
    int A = 5;
    int B = 7;
    int C = 5;

    int a, b, c;

    cin >> a >> b >> c;

    if (a == A && b == B && c == C){
        cout << "YES" << endl;
    } else if (a == B && b == C && c == A){
        cout << "YES" << endl;
     } else if (a == C && b == A && c == B){
         cout << "YES" << endl;
     } else {
         cout << "NO" << 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 <iostream>
using namespace std;

int main(void) {
    
    int A = 5;
    int B = 7;
    int C = 5;

    int a, b, c;

    cin >> a >> b >> c;

    if (a == A && b == B && c == C){
        cout << "YES";
    } else if (a == B && b == C && c == A){
        cout << "YES";
     } else if (a == C && b == A && c == B){
         cout << "YES";
     } else {
         cout << "NO";     
         }

    return 0;
}

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

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

int main()
{
int arr[4];
cin >> a[0]>> a[1] >> a[2];
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:8: error: 'a' was not declared in this scope
    7 | cin >> a[0]>> a[1] >> a[2];
      |        ^
a.cc:8:10: error: 'b' was not declared in this scope
    8 | if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5)
      |          ^
a.cc:8:16: error: 'c' was not declared in this scope
    8 | if(a==5&&b==5&&c==7||a==5&&b==7&&c==5||a==7&&b==5&&c==5)
      |                ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:66: error: expected ')' before 'printf'
    6 |     if((a==5&&b==5&&c==7||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))
      |       ~                                                          ^
      |                                                                  )
    7 |        printf("YES\n");
      |        ~~~~~~                                                     
main.c:12:1: error: expected expression before '}' token
   12 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main ()
{
  int a,b,c;
  cin >> a >> b >> c;
  if (a+b+c == 17)
  {
    cout << "Yes";
  }
  else {
    cout << "No";
  return 0;
}

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

#include <iostream>

using namespace std;

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


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

///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T  S(T a)
{
    return a*a;
}
template<class T>inline string tostring(T a)
{
    ostringstream os("");
    os << a;
    return os.str();
}
template<typename T>inline ll tolong(T a)
{
    ll res;
    istringstream os(a);
    os>>res;
    return res;
}
template<typename T>inline T gcd(T a, T b)
{
    if (b == 0)return a;
    else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
    if (b == 0)return 1;
    else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
    else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{

    memset(prime, true, sizeof(prime));

    for( ll i=2; i*i<=N; i++)
    {
        if (prime[i] == true)
        {
            prm.pb(i);
            for (ll j=i*i; j<=N; j += i)
                prime[j] = false;
        }
    }
}*/
void pr (int f)
{
    if(f==1)
        cout<<"YES\n";
    else
        cout<<"NO\n";
}
map<int,int>mp;
multiset<string> st;
multiset<string> :: iterator it;

deque <char> q ;
int vis [1000];
int main()
{
    fast ;
    #include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,m,l;cin>>n>>l>>m;
    if(n+m+l==17)
        cout<<"YES\n";
    else
        cout<<"NO\n";
}


}


Compiler output:
a.cc: In function 'int main()':
a.cc:88:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   88 | int main()
      |         ^~
a.cc:88:9: note: remove parentheses to default-initialize a variable
   88 | int main()
      |         ^~
      |         --
a.cc:88:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:89:1: error: a function-definition is not allowed here before '{' token
   89 | {
      | ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc:24:15: warning: missing terminating " character
   24 |       cout << "NO;
      |               ^
a.cc:24:15: error: missing terminating " character
   24 |       cout << "NO;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:25:6: error: expected primary-expression before 'return'
   25 |      return 0;
      |      ^~~~~~
Language: C++

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

#include <bits/stdc++.h>
using namespce 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:2:7: error: expected nested-name-specifier before 'namespce'
    2 | using namespce 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 /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:20: error: 'c' was not declared in this scope
    6 |   cin >> A >> B >> c;
      |                    ^
a.cc:8:27: error: lvalue required as left operand of assignment
    8 |   if (A = 5, B = 5, C = 7 || A = 5, B = 7, C = 5 || A = 7, B = 5, C = 5) {
      |                         ~~^~~~
a.cc:8:50: error: lvalue required as left operand of assignment
    8 |   if (A = 5, B = 5, C = 7 || A = 5, B = 7, C = 5 || A = 7, B = 5, C = 5) {
      |                                                ~~^~~~
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/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:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     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
      |                  ^~~~
Language: C

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

Compiler output:
main.c:1:1: error: stray '##' in program
    1 | ##include<stdio.h>
      | ^~
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ##include<stdio.h>
      |          ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected ';' before string constant
   12 |    cout"YES"<<endl;
      |        ^~~~~
      |        ;
a.cc:14:8: error: expected ';' before string constant
   14 |    cout"NO"<<endl;
      |        ^~~~
      |        ;
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: expected ';' before 'a'
    5 |     cin a >> b >> c;
      |        ^~
      |        ;
a.cc:6:15: error: lvalue required as left operand of assignment
    6 |     if (a + b + c = 17) {
      |         ~~~~~~^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:27:12: error: 'F' was not declared in this scope
   27 |   if(D==2&&F==1){
      |            ^
Language: C++

#include<bits/std++.h>
using namespace std;
int main(){
	int five=0,seven=0;
	int x;
	for(int i=0;i<3;i++){
    	cin>>x;
      	if(x==5) fivee++;
      	if(x==7) seven++;
    }
	if(five==2 && seven==7) cout<<"YES";
	else cout<<"NO";
	return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main();
	int five=0,seven=0;
	int x;
	for(int i=0;i<3;i++){
    	cin>>x;
      	if(x==5) fivee++;
      	if(x==7) seven++;
    }
	if(five==2 && seven==7) cout<<"YES";
	else cout<<"NO";
	return 0;
}


Compiler output:
a.cc:6:9: error: expected unqualified-id before 'for'
    6 |         for(int i=0;i<3;i++){
      |         ^~~
a.cc:6:21: error: 'i' does not name a type
    6 |         for(int i=0;i<3;i++){
      |                     ^
a.cc:6:25: error: 'i' does not name a type
    6 |         for(int i=0;i<3;i++){
      |                         ^
a.cc:11:9: error: expected unqualified-id before 'if'
   11 |         if(five==2 && seven==7) cout<<"YES";
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else cout<<"NO";
      |         ^~~~
a.cc:13:9: error: expected unqualified-id before 'return'
   13 |         return 0;
      |         ^~~~~~
a.cc:14:1: error: expected declaration before '}' token
   14 | }
      | ^
Language: C++

#include<bits/std++.h>
using namespace std;
int main();
	int five=0,seven=0;
	int x;
	for(int i=0;i<3;i++){
    	cin>>x;
      	if(x==5) five++;
      	if(x==7) seven++;
    }
	if(five==2 && seven==7) cout<<"YES";
	else cout<<"NO";
	return 0;
}


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

#include<bits/std++.h>
using namespace std;
int main();
	int five=0,seven=0;
	int x;
	for(int i=0;i<3;i++){
    	cin>>x;
      	if(x==5) fivee++;
      	if(x==7) seven++;
    }
	if(five==2 && seven==7) cout<<"YES";
	else cout<<"NO";
	return 0;
}

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

#include<bits/stdc++.h>

using namespace std;
int main()
{
  int a[8], b, c;
  a[7] = 1;
  a[5] = 2;
  for(int i = 0; i < 3; i++)
    cin >> x, a[x]--;
  if(a[7] >= 0 && a[5] >= 0) cout << "YES";
  else cout << "NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x, a[x]--;
      |            ^
Language: C++

#include<bits/stdc++.h>

using namespace std;
int main()
{
  int a[8], b, c;
  a[7] = 1;
  a[5] = 2;
  for(int i = 0; i < 3; i++)
    cin >> x, a[x]--;
  if(a[7] >= 0 && a[5] >= 0) cout << "YES";
  else cout << "NO"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: 'x' was not declared in this scope
   10 |     cin >> x, a[x]--;
      |            ^
a.cc:12:20: error: expected ';' before '}' token
   12 |   else cout << "NO"
      |                    ^
      |                    ;
   13 | }
      | ~
Language: C++

#include<bit/stdc++.h>

using namespace std;
int main()
{
  int a[8], b, c;
  a[7] = 1;
  a[5] = 2;
  for(int i = 0, x; i < 3; i++)
    cin >> x, a[x]--;
  if(a[7] >= 0 && a[5] >= 0) cout << "YES";
  else cout << "NO"
}


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

#include<bit/stdc++.h>

using namespace std;
int main()
{
  int a[8], b, c;
  a[7] = 1;
  a[5] = 2;
  for(int i = 0; i < 3; i++)
    cin >> x, a[x]--;
  if(a[7] >= 0 && a[5] >= 0) cout << "YES";
  else cout << "NO"
}


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

#include<bit/stdc++.h>

using namespace std;
int main()
{
  int a[3], b, c;
  cin >> a[0] >> a[1] >> a[2];
  sort(a,a + 3);
  if(a[0] == 5 && a[1] == 5 && a[2] == 7) cout << "Yes";
  else cout << "No";
}

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

#include <iostream>
using namespace std;

int main(){
  int A,B,C,D;
  cin >> A >> B >> C;
  if(A>=C&&A>=B){
    D=A;
    A=B;
    B=D;
  }
  if else(C>=A&&C>=B){
    D=C;
    C=B;
    B=D;
  }
  if(A==5&&B==7&&C==5){
    cout << "yes" ;
  }
  else{
    cout << "no" ;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: expected '(' before 'else'
   12 |   if else(C>=A&&C>=B){
      |      ^~~~
      |      (
Language: Java

import java.util.ArrayList;
import java.util.list;
import java,.util.Scanner;

public class Main{

  Main()

 public static void mina(String args[]){
    Scanner sc = new Scanner(System.in);
    
     //コンソールから値を受け取る
     List<Integer> list = new ArrayList<>();
     for(int i=0;sc.hasNext();i++){
       list.add(sc.nextInt());
     }   
    
   int n5=0;
   int n7=0;
   
   //入力された数値のカウント
   　for(int n:list){
   　  if(n==5){
   　      n5++;
   　  }
   　  if(n==7){
   　     n7++;
   　  }
   　}
   　//入力された数値が5・7・5に並び替えられるかの凡例
   　System.out.println(n5==2&&n7==1? "YES":"NO");
   　}

}


Compiler output:
Main.java:3: error: '.' expected
import java,.util.Scanner;
           ^
Main.java:7: error: ';' expected
  Main()
        ^
Main.java:22: error: illegal character: '\u3000'
   ?for(int n:list){
   ^
Main.java:23: error: illegal character: '\u3000'
   ?  if(n==5){
   ^
Main.java:24: error: illegal character: '\u3000'
   ?      n5++;
   ^
Main.java:25: error: illegal character: '\u3000'
   ?  }
   ^
Main.java:26: error: illegal character: '\u3000'
   ?  if(n==7){
   ^
Main.java:27: error: illegal character: '\u3000'
   ?     n7++;
   ^
Main.java:28: error: illegal character: '\u3000'
   ?  }
   ^
Main.java:29: error: illegal character: '\u3000'
   ?}
   ^
Main.java:30: error: illegal character: '\u3000'
   ?//????????5?7?5????????????
   ^
Main.java:31: error: illegal character: '\u3000'
   ?System.out.println(n5==2&&n7==1? "YES":"NO");
   ^
Main.java:32: error: illegal character: '\u3000'
   ?}
   ^
13 errors
Language: Java

	/**
	 * Atcorder 提出
	 * @return
	 *
	 */

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

		/* コンソールから、数値を受け取る */
		List<Integer> list = new ArrayList<>();
		for (int i = 0; sc.hasNext(); i++) {
			list.add(sc.nextInt());
		}

		int n5 = 0;
		int n7 = 0;

		/* 入力された数値のカウント */
		for (int n : list)  {
			if (n == 5) {
				n5++;
			}
			if (n == 7) {
				n7++;
			}
		}

		/* 入力された数値が 5・7・7に並び替えられるかを判定 */
		System.out.println(n5 == 2 && n7 == 1 ? "YES" : "NO");

	}


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

	/**
	 * 和風いろはちゃんイージー
	 *
	 */
	public static void main(String args[]) {
		Scanner sc = new Scanner(System.in);

		/* コンソールから、数値を受け取る */
		List<Integer> list = new ArrayList<>();
		for (int i = 0; sc.hasNext(); i++) {
			list.add(sc.nextInt());
		}

		int n5 = 0;
		int n7 = 0;

		/* 入力された数値のカウント */
		for (int n : list)  {
			if (n == 5) {
				n5++;
			}
			if (n == 7) {
				n7++;
			}
		}

		/* 入力された数値が 5・7・7に並び替えられるかを判定 */
		System.out.println(n5 == 2 && n7 == 1 ? "YES" : "NO");

	}


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

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

Compiler output:
a.cc:5:34: error: extended character   is not valid in an identifier
    5 |   cin >> tableau[0] >> tableau[1] >> tableau[2];
      |                                  ^
a.cc: In function 'int main()':
a.cc:5:34: error: expected ';' before '\U000000a0'
    5 |   cin >> tableau[0] >> tableau[1] >> tableau[2];
      |                                  ^
      |                                  ;
Language: C

#include <stdio.h>
int main(){
    int a[3];
    for(int z=0;z<3;z++){
        scanf("%d", &a[z]);
    }
    int co5=0;
    int c07=0;

    for(int x=0;x<3;x++){
        if(a[x]==5){
            co5++;
        }
        else if(a[x]==7){
            c07++;
        }
    }

    if(c05==2 && c07==1){
        printf("YES\n");
    }
    else{
        printf("NO\n");
    }

    

}

Compiler output:
main.c: In function 'main':
main.c:19:8: error: 'c05' undeclared (first use in this function); did you mean 'c07'?
   19 |     if(c05==2 && c07==1){
      |        ^~~
      |        c07
main.c:19:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '{' token
    8 |   if(a=={5,7,5}) cout << "YES" << endl;
      |         ^
a.cc:8:9: error: expected ')' before '{' token
    8 |   if(a=={5,7,5}) cout << "YES" << endl;
      |     ~   ^
      |         )
Language: Java

        import java.util.Arrays;
                import java.util.Scanner;

        public class main {

            public static void Main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int tempList[] = new int[3];
                for (int i = 0; i < 3; i++) {
                    tempList[i] = sc.nextInt();
                }
                Arrays.sort(tempList);

                int[] anserList = {5, 5, 7};

                if (Arrays.equals(tempList, anserList)) {
                    System.out.println("YES");
                }else {
                    System.out.println("NO");
                }

            }
        }


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

        import java.util.Arrays;
                import java.util.Scanner;

        public class atcoder {

            public static void Main(String[] args) {
                Scanner sc = new Scanner(System.in);
                int tempList[] = new int[3];
                for (int i = 0; i < 3; i++) {
                    tempList[i] = sc.nextInt();
                }
                Arrays.sort(tempList);

                int[] anserList = {5, 5, 7};

                if (Arrays.equals(tempList, anserList)) {
                    System.out.println("YES");
                }else {
                    System.out.println("NO");
                }

            }
        }


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

        import java.util.Arrays;
        import java.util.Scanner;

public class main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
}


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

        import java.util.Arrays;
        import java.util.Scanner;

public class atcoder {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int tempList[] = new int[3];
        for (int i = 0; i < 3; i++) {
            tempList[i] = sc.nextInt();
        }
        Arrays.sort(tempList);

        int[] anserList = {5, 5, 7};

        if (Arrays.equals(tempList, anserList)) {
            System.out.println("YES");
        }else {
            System.out.println("NO");
        }

    }
}


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

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

int main() {
  string A,B,C;
  cin>>A>>B>>C;
  bool can=false;
  if(A.size()+B.size()+c.size()==17){
    if(A.size()==7||A.size()==5){
       if(B.size()==7||B.size()==5){
          if(C.size()==7||C.size()==5){
            can=true;
          }
       }
    }
  }
  if(can){
    cout<<"YES"<<endl;
  }
  else{
     cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: 'c' was not declared in this scope
    8 |   if(A.size()+B.size()+c.size()==17){
      |                        ^
Language: C++

#include<bits/stdc++.h>
  2 using namespace std;
  3 
  4 int main(){
  5   vector<int> a(3);
  6   for(int i=0;i<3;++i){
  7     cin >> a.at(i);
  8   }
  9   int num_5=0;
 10   int num_7=0;
 11   for(int i=0;i<3;++i){
 12     if(a.at(i)==5) num_5++;
 13     if(a.at(i)==7) num_7++;
 14   }
 15   if(num_5==2 && num_7==1){
 16     cout<<"YES"<<endl;
 17   }else{
 18     cout<<"NO"<<endl;;
 19   }
 20 }

Compiler output:
a.cc:2:3: error: expected unqualified-id before numeric constant
    2 |   2 using namespace std;
      |   ^
a.cc:3:3: error: expected unqualified-id before numeric constant
    3 |   3
      |   ^
Language: Java

public static void main(String[] args){
  int count5 = 0;
  int count7 = 0;
  
  for(String arg : args){
    if(arg.equals("5")){
      count5++;
    } else if(arg.equals("7")){
      count7++;
    }
  }
  
  if(count5 == 2 && count7 == 1){
  	System.out.println("YES");
  }else {
  	System.out.println("NO");
  }
}

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

#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};



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


Compiler output:
a.cc:28:21: error: extended character 　 is not valid in an identifier
   28 |   if(a*b*c == 5*5*7)　cout <<"YES" << endl;
      |                     ^
a.cc: In function 'int main()':
a.cc:28:21: error: '\U00003000cout' was not declared in this scope
   28 |   if(a*b*c == 5*5*7)　cout <<"YES" << endl;
      |                     ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n)for(long long i=0;i<(long long)(n);i++)
#define all(a) a.begin(), a.end()
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll, ll> P;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
 
const ll MOD=1e9+7;
const ll INF=1e18;
const int MAX=510000;
const double pi=acos(-1);
int dx[8] = {1,0,-1,0,1,1,-1,-1};
int dy[8] = {0,1,0,-1,-1,1,1,-1};
// int d[13]={0,31,28,31,30,31,30,31,31,30,31,30,31};



int main(){
  cin.tie(0);
  ios::sync_with_stdio(false); 
  
  vector<int>vec(3);
  rep(i,3) cin >> vec[i];
  sort(vec.begin(),vec.end());
  
  if(vec[0]==5 && vec[1] == 5 && vec[2] == 7)　puts("YES");
  else puts("NO");
 
  return 0;
}


Compiler output:
a.cc:29:46: error: extended character 　 is not valid in an identifier
   29 |   if(vec[0]==5 && vec[1] == 5 && vec[2] == 7)　puts("YES");
      |                                              ^
a.cc: In function 'int main()':
a.cc:29:46: error: '\U00003000puts' was not declared in this scope; did you mean 'puts'?
   29 |   if(vec[0]==5 && vec[1] == 5 && vec[2] == 7)　puts("YES");
      |                                              ^~~~~~
      |                                              puts
Language: Java

public class Main{

public static void main(String[] args) {

        char arr[] = new Scanner(System.in).next().toCharArray();

        int sum = 0;

        int counter = 0;

        for (int i = 0; i < arr.length; i++) {

            if (Integer.parseInt(String.valueOf(arr[i])) >= 1 && Integer.parseInt(String.valueOf(arr[i])) <= 10)
                counter++;

        }

        if (counter == arr.length) {
            for (int i = 0; i < arr.length; i++) {

                sum += Integer.parseInt(String.valueOf(arr[i]));
            }

            if (sum == 17)
                System.out.println("YES");
            else
                System.out.println("NO");

        }
        


    }
    }

Compiler output:
Main.java:5: error: cannot find symbol
        char arr[] = new Scanner(System.in).next().toCharArray();
                         ^
  symbol:   class Scanner
  location: class Main
1 error
Language: C++

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

int main(){

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected initializer before '(' token
    8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){
      |            ^
a.cc:8:12: error: expected ')' before '(' token
    8 | if (int min(min(A,B),C) = 5 && int max(max(A,B),C) = 7){
      |    ~       ^
      |            )
Language: C++

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

int main(){

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


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

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

int main(){

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: lvalue required as left operand of assignment
    8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
      |                       ~~^~~~~~~~~~~~~~~~~~
a.cc:16:3: error: expected '}' before 'else'
   16 |   else {
      |   ^~~~
a.cc:8:48: note: to match this '{'
    8 | if (min(min(A,B),C) = 5 && max(max(A,B),C) = 7){
      |                                                ^
Language: Java

public class Wafu {
  public static void main(String[] args){
    int A;
    int B;
    int C;
    
    if(A == 5 && B == 7 && C == 5){
      System.out.println("Yes");
    } else if(A == 5 && B == 5 && C == 7){
      System.out.println("Yes");
    } else if(A == 7 && B == 5 && C == 5){
      System.out.println("Yes");
    } else{
      System.out.println("No");
    }
  }
}

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

public class wafu {
  public static void main(String[] args){
    int A;
    int B;
    int C;
    
    if(A == 5 && B == 7 && C == 5){
      System.out.println("Yes");
    } else if(A == 5 && B == 5 && C == 7){
      System.out.println("Yes");
    } else if(A == 7 && B == 5 && C == 5){
      System.out.println("Yes");
    } else{
      System.out.println("No");
    }
  }
}

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

public class wafu {
  public static void main(String[] args){
    int A;
    int B;
    int C;
    
    if(A == 5 && B == 7 && C == 5){
      System.out.println("Yes");
    } else if(A == 5 && B == 5 && C == 7){
      System.out.println("Yes");
    } else if(A == 7 && B == 5 && C == 5){
      System.out.println("Yes");
    } else{
      System.out.println("No");
    }

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

//A - Iroha and Haiku (ABC Edition)
int a,b,c;
int cntOf5 = 0;
int cntOf7 = 0;

void work(int n)
{
	if (n==5)
		cntOf5++;
	if (n==7)
		cntOf7++;
}
int main()
{
	scanf("%d %d %d",&a,&b,&c);
	work(a);
	work(b);
	work(c);
	if (cntOf5==2&&cntOf7==1)
		printf("%s","YES");
	else
		printf("%s","NO");

}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: 'scanf' was not declared in this scope
   15 |         scanf("%d %d %d",&a,&b,&c);
      |         ^~~~~
a.cc:20:17: error: 'printf' was not declared in this scope
   20 |                 printf("%s","YES");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | //A - Iroha and Haiku (ABC Edition)
a.cc:22:17: error: 'printf' was not declared in this scope
   22 |                 printf("%s","NO");
      |                 ^~~~~~
a.cc:22:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: Java

import java.util.*;
public class Mainfifthjune {

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

}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
	int a,b,c:
    cin >> a>>b>>c;
  int five = 0;
  int seven = 0;
  
  if(a ==5)then five ++;
  if(a == 7)thenseven ++;
  if(b ==5)then five ++;
  if(b == 7)thenseven ++;
  if(c ==5)then five ++;
  if(c == 7)thenseven ++;
  
  if(five == 2 && seven == 1) cout << "YES"<<endl;
  else cout << "NO"<<endl;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:18: error: found ':' in nested-name-specifier, expected '::'
    5 |         int a,b,c:
      |                  ^
      |                  ::
a.cc:5:17: error: 'c' has not been declared
    5 |         int a,b,c:
      |                 ^
a.cc:6:9: error: qualified-id in declaration before '>>' token
    6 |     cin >> a>>b>>c;
      |         ^~
a.cc:10:12: error: 'then' was not declared in this scope
   10 |   if(a ==5)then five ++;
      |            ^~~~
a.cc:11:13: error: 'thenseven' was not declared in this scope
   11 |   if(a == 7)thenseven ++;
      |             ^~~~~~~~~
a.cc:12:12: error: 'then' was not declared in this scope
   12 |   if(b ==5)then five ++;
      |            ^~~~
a.cc:13:13: error: 'thenseven' was not declared in this scope
   13 |   if(b == 7)thenseven ++;
      |             ^~~~~~~~~
a.cc:14:6: error: 'c' was not declared in this scope
   14 |   if(c ==5)then five ++;
      |      ^
a.cc:14:12: error: 'then' was not declared in this scope
   14 |   if(c ==5)then five ++;
      |            ^~~~
a.cc:15:6: error: 'c' was not declared in this scope
   15 |   if(c == 7)thenseven ++;
      |      ^
a.cc:15:13: error: 'thenseven' was not declared in this scope
   15 |   if(c == 7)thenseven ++;
      |             ^~~~~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'a' was not declared in this scope
    7 |     cin>>a,b,c;
      |          ^
a.cc:7:12: error: 'b' was not declared in this scope
    7 |     cin>>a,b,c;
      |            ^
a.cc:7:14: error: 'c' was not declared in this scope
    7 |     cin>>a,b,c;
      |              ^
Language: Java

import java.util.Scanner;

public class A_ABC042_A {

	public static void main(String[] args) {

		final String FIVE  = "5";
		final String SEVEN = "7";
		
		Scanner scanner = new Scanner(System.in);		
		String input = scanner.nextLine();
		scanner.close();
		
		String[] arrStr = (input.split(" ",0));

		int fivCnt = 0;
		int sevCnt = 0;
		
		for(String num : arrStr) {
			if(num.equals(FIVE)) {
				fivCnt ++;
			} else if(num.equals(SEVEN)) {
				sevCnt ++;
			}
		}
		
		String res;
		if(fivCnt == 2 && sevCnt == 1) {
			res = "YES";
		}else {
			res= "NO";
		}
		System.out.println(res);
	}
}


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

public class Main {

	public static void main(String[] args) {

		final String FIVE  = "5";
		final String SEVEN = "7";
		
		Scanner scanner = new Scanner(System.in);		
		String input = scanner.nextLine();
		scanner.close();
		
		String[] arrStr = (input.split(" ",0));

		int fivCnt = 0;
		int sevCnt = 0;
		
		for(String num : arrStr) {
			if(num.equals(FIVE)) {
				fivCnt ++;
			} else if(num.equals(SEVEN)) {
				sevCnt ++;
			}
		}
		
		String res;
		if(fivCnt == 2 && sevCnt == 1) {
			res = "YES";
		}else {
			res= "NO";
		}
		System.out.println(res);
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);		
		^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);		
		                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
        String str = scan.next();
        
        if(str.equals("575")) {
        	System.out.println("YES");
        }else if(str.equals("557")){
        	System.out.println("YES");
        }else if(str.equals("755")) {
        	System.out.println("YES");
        }else {
        	System.out.println("NO");
        }
	}
}

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

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

using namespace std;

int main()
{
    vector<bool> avail = { false,false,false,false,false,false,false,false,false,false };
    string N;
    int D;
    string res = "";
    cin >> N >> D;
    int MIN = 11;
    int MAX = -1;
    for (int i = 0; i<D; i++) {
        int a;
        cin >> a;
        if (MIN>a) {MIN = a;}
        if (MAX<a) {MAX = a;} 
        avail[a] = true;
    }
    bool new_size = false;
    bool test= true;
    while(test) {
        for (int i = 0; i<N.size();i++) {
            if (int(N[i])-48 > MAX) {
                new_size = true;
                res.push_back(avail[MIN]);
            } else if (true == avail[int(N[i])-48]) {
                res.push_back(avail[int(N[i])-48]);
            } else {
                for (int a = int(N[i])-48+1; a<avail.size(); a++) {
                    if (true == avail[a]) {
                        res.push_back(avail[a]);
                    }
            }
            
        }
    }
    if (new_size == true) {
        res.push_back(avail[MIN]);
    }

    cout<< res<<endl;

}





Compiler output:
a.cc: In function 'int main()':
a.cc:47:2: error: expected '}' at end of input
   47 | }
      |  ^
a.cc:8:1: note: to match this '{'
    8 | {
      | ^