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

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

      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:5: error: incompatible types: int cannot be converted to String
      String a = sc.nextInt();
                           ^
Main.java:6: error: incompatible types: int cannot be converted to String
      String b = sc.nextInt();
                           ^
Main.java:7: error: incompatible types: int cannot be converted to String
      String c = sc.nextInt();
                           ^
Main.java:9: error: bad operand types for binary operator '=='
      if(a== 5 && b == 7 && c ==5){
          ^
  first type:  String
  second type: int
Main.java:9: error: bad operand types for binary operator '=='
      if(a== 5 && b == 7 && c ==5){
                    ^
  first type:  String
  second type: int
Main.java:9: error: bad operand types for binary operator '=='
      if(a== 5 && b == 7 && c ==5){
                              ^
  first type:  String
  second type: int
Main.java:11: error: bad operand types for binary operator '=='
      }else if(a== 5 && b== 5 &&c ==7){
                ^
  first type:  String
  second type: int
Main.java:11: error: bad operand types for binary operator '=='
      }else if(a== 5 && b== 5 &&c ==7){
                         ^
  first type:  String
  second type: int
Main.java:11: error: bad operand types for binary operator '=='
      }else if(a== 5 && b== 5 &&c ==7){
                                  ^
  first type:  String
  second type: int
Main.java:13: error: bad operand types for binary operator '=='
      }else if(a == 7 && b == 5&& c ==5){
                 ^
  first type:  String
  second type: int
Main.java:13: error: bad operand types for binary operator '=='
      }else if(a == 7 && b == 5&& c ==5){
                           ^
  first type:  String
  second type: int
Main.java:13: error: bad operand types for binary operator '=='
      }else if(a == 7 && b == 5&& c ==5){
                                    ^
  first type:  String
  second type: int
12 errors
Language: Java

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

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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
pablic class Main{
^
Main.java:3: error: <identifier> expected
	pablic static void main(String[] args){
	      ^
2 errors
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <algorithm>
using namespace std; //std::の省略のため
using ll = long long;

int main()
{
  int N, K;
  cin >> N >> K;
  int D[K];

  for (int i = 0; i < K; i++)
    cin >> D[i];

  int ans = N;
  int tmp;
  bool judge;

  while ()
  {
    tmp = ans;
    judge = true;
    while (tmp != 0)
    {
      for (int i = 0; i < K; i++)
      {
        if ((tmp % 10) == D[i])
        {
          judge = false;
          break;
        }
      }

      if (!judge)
        break;

      tmp /= 10;
    }

    if (judge)
      break;
    else
      ans++;
  }

  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:10: error: expected primary-expression before ')' token
   20 |   while ()
      |          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:7:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
    7 |   int c:
      |        ^
main.c:7:8: error: expected expression before ':' token
main.c:11:14: error: 'c' undeclared (first use in this function)
   11 |   if(a + b + c == 17){
      |              ^
main.c:11:14: 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(){
  
  
    int a[3];
    int c5=0,c7=0;
    fr(0,3){
        cin >> a[i];
        if(a[i]==5){ ++c5;continue;}
        else if(a[i]==7) {++c7;continue;}
    }
    if(c5==2 && c7==1) cout << "YES";
    else cout << "YES";
    


  	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'fr' was not declared in this scope
    8 |     fr(0,3){
      |     ^~
a.cc:18:18: error: expected '}' at end of input
   18 |         return 0;
      |                  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
	int A, B, C;
  	cin >> A >> B >> C
      
   
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: expected ';' before '}' token
    8 |         cin >> A >> B >> C
      |                           ^
      |                           ;
......
   11 | }
      | ~
Language: Java

import java.util.*;

public class Main {
    public static int five = 0;
    public static int seven = 0;
    public static void main(String[] args) {
        String[] inputs = sc.next().split(" ");
        check(args[0]);
        check(args[1]);
        check(args[2]);
        System.out.println(five==2 && seven ==1 ? "YES":"NO");
    }
    public static void check(String str){
        int number = Integer.parseInt(str);
        if(number==5)five++;
        if(number==7)seven++;
    }

}

Compiler output:
Main.java:7: error: cannot find symbol
        String[] inputs = sc.next().split(" ");
                          ^
  symbol:   variable sc
  location: class Main
1 error
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:3: error: unknown type name 'iny'; did you mean 'int'?
    3 |   iny a,b,c;
      |   ^~~
      |   int
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  vector<int> length(11, 0);
  
  length[A.size()]++;
  length[B.size()]++;
  length[C.size()]++;
  
  if (length[5] == 2 && length[7] == 1) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: request for member 'size' in 'A', which is of non-class type 'int'
   10 |   length[A.size()]++;
      |            ^~~~
a.cc:11:12: error: request for member 'size' in 'B', which is of non-class type 'int'
   11 |   length[B.size()]++;
      |            ^~~~
a.cc:12:12: error: request for member 'size' in 'C', which is of non-class type 'int'
   12 |   length[C.size()]++;
      |            ^~~~
Language: Java

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 if {
     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)
Main.java:12: error: '(' expected
  } else if {
           ^
Main.java:12: error: illegal start of expression
  } else if {
            ^
3 errors
Language: C++

int main(){
  int a = 1;
  for(int i=0; i<3;i++){
    int d;  cin >> d;
    a *= d;
  }
  string ans = "NO";
  if(a == 25*7) ans = "YES";
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:13: error: 'cin' was not declared in this scope
    4 |     int d;  cin >> d;
      |             ^~~
a.cc:7:3: error: 'string' was not declared in this scope
    7 |   string ans = "NO";
      |   ^~~~~~
a.cc:8:17: error: 'ans' was not declared in this scope
    8 |   if(a == 25*7) ans = "YES";
      |                 ^~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout << ans << endl;
      |   ^~~~
a.cc:9:11: error: 'ans' was not declared in this scope
    9 |   cout << ans << endl;
      |           ^~~
a.cc:9:18: error: 'endl' was not declared in this scope
    9 |   cout << ans << endl;
      |                  ^~~~
Language: C++

#include <iostream>     // Cでいうstdio.h 標準入出力ライブラリ
using namespace std;    // 名前空間

int main(void){

    // int変数定義
    int num1;
    int num2;
    int num3;
    
    // コンソール入力
    cin >> num1;
    cin >> num2;
    cin >> num3;

    if(num1 + num2 + num3 == 17) {
        cout << "YES"
    } else {
        cout << "NO"
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: expected ';' before '}' token
   17 |         cout << "YES"
      |                      ^
      |                      ;
   18 |     } else {
      |     ~                 
a.cc:19:21: error: expected ';' before '}' token
   19 |         cout << "NO"
      |                     ^
      |                     ;
   20 |     }
      |     ~
Language: Java

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

public class Main1 {

    public static void main(String[] args) {

        int f = 2;
        int s = 1;
        int k = 0;
        String str = null;
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        try {
            str = br.readLine();

            String[] i = str.split(" ");


            for (int j = 0; j < 3; j++) {
                if (i[j].equals("5")) {
                    --f;
                } else if (i[j].equals("7")) {
                    --s;
                }
            }
        } catch (NumberFormatException e) {
            System.out.println("NO");
        } catch (IOException e) {
            System.out.println("NO");
        }
        if (f == 0 && s == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: request for member 'size' in 'a', which is of non-class type 'int [3]'
    6 |   sort(a, a+a.size());
      |               ^~~~
Language: C++

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

int main() {
  int a,b,c;cin>>a>>b>>c;
  if (a+b+c == 12) cout << "YES" << endl;
  else cotu << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'cotu' was not declared in this scope
    7 |   else cotu << "NO" << endl;
      |        ^~~~
Language: Java

package jp.AtCoder.seto_42;

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

public class a {

    public static void main(String[] args) {

        int f = 2;
        int s = 1;
        int i;
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        try {
            for (int j = 0; j < 3; j++) {
                i = Integer.parseUnsignedInt(br.readLine());
                if (i == 5) {
                    --f;
                } else if (i == 7) {
                    --s;
                }
            }
        } catch (NumberFormatException | IOException e) {
            System.out.println("NO");
        }
        if (f == 0 && s == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}

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

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

public class a {

    public static void main(String[] args) {

        int f = 2;
        int s = 1;
        int i;
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);

        try {
            for (int j = 0; j < 3; j++) {
                i = Integer.parseUnsignedInt(br.readLine());
                if (i == 5) {
                    --f;
                } else if (i == 7) {
                    --s;
                }
            }
        } catch (NumberFormatException | IOException e) {
            System.out.println("NO");
        }
        if (f == 0 && s == 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}

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

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

#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(v) v.begin(), v.end()

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

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

import java.util.*;
class Main{
    public static void main(String[] a){
Scanner in = new Scanner(System.in);
       int a = in.nextInt();
       int b = in.nextInt();
       int c = in.nextInt();
       
       if (a == 5 || a==7 || b == 5 || b == 7 || c == 5 || c == 7)
           if (a + b + c == 17)
                System.out.printf("YES");
            else
                System.out.printf("NO");
       else
            System.out.printf("NO");
       
       
               
    }
    
}

Compiler output:
Main.java:5: error: variable a is already defined in method main(String[])
       int a = in.nextInt();
           ^
1 error
Language: Java

package javaapplication7;
import java.util.*;

public class JavaApplication7 {

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

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

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

#define CPP_STR(x) CPP_STR_I(x)
#define CPP_CAT(x,y) CPP_CAT_I(x,y)
#define CPP_STR_I(args...) #args
#define CPP_CAT_I(x,y) x ## y

#define ASSERT(expr...) assert((expr))

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



Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: expression cannot be used as a function
   18 |        (a == 5 && b == 5 && c == 7)
      |        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   19 |        (a == 5 && b == 7 && c == 5) ||
      |        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a==5&&b==5&&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:7:23: error: expected primary-expression before '||' token
    7 |   if(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5) cout<<"YES";
      |                       ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
   map <int,int> freq;
   for(int i = 0; i < 3;i++)
   {
     int value = 0;
     cin>>value;
     freq[value]++;
   }

      if(freq[5] == 2 && freq[7] == 1)
        cout<<"YES"<<endl;
      else
        cout<<"NO"<<endl;
      
  }
}

Compiler output:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C

#include <stdio.h>

int main (void){
  int a[3];
  int count5 = 0;
  int count7 =0;
  for (int i=0, i<=3; i++){
    scanf("%d",&a[i]);
    if(a[i] == 5) {
      count5++;
    }else if (a[i] == 7){
      count7++;
    }
  }
    if (count5 == 2 && count7 == 1){
      printf("YES");
    }else {
      printf("NO");
    }
    return 0;
 }


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    7 |   for (int i=0, i<=3; i++){
      |                  ^~
main.c:7:26: error: expected ';' before ')' token
    7 |   for (int i=0, i<=3; i++){
      |                          ^
      |                          ;
Language: C

#include <stdio.h>

int main (void){
  int a[3];
  int count5 = 0;
  int count7 =0;
  for (int i=0, i<=3; i++){
    scanf("%d",&a[i]);
    if(a[i] = 5) {
      count5++;
    }else if (a[i] = 7){
      count7++;
    }
    if (count5 == 2 && count7 == 1){
      printf("YES");
    }else {
      printf("NO");
    }
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:7:18: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<=' token
    7 |   for (int i=0, i<=3; i++){
      |                  ^~
main.c:7:26: error: expected ';' before ')' token
    7 |   for (int i=0, i<=3; i++){
      |                          ^
      |                          ;
main.c:20:3: error: expected declaration or statement at end of input
   20 |   }
      |   ^
Language: C++

# -*- coding: utf-8 -*-
def main():
    # input = "5 7 7"
    input = list(map(int, input().split()))
    print(input)

    counter5 = 0
    counter7 = 0

    for num in input:
        if num == 5:
            counter5+=1
        
        if num == 7:
            counter7+=1

    if counter5 == 2 and counter7 == 1:
        print("Yes")
    
    else:
        print("No")



if __name__ == "__main__":
    main()

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:3:7: error: invalid preprocessing directive #input
    3 |     # input = "5 7 7"
      |       ^~~~~
a.cc:2:1: error: 'def' does not name a type
    2 | def main():
      | ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected initializer before '==' token
    5 |   int ans==0;
      |          ^~
a.cc:8:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
    8 |     if(a==5)ans++;
      |             ^~~
      |             abs
a.cc:9:18: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |     else if(a==7)ans--;
      |                  ^~~
      |                  abs
a.cc:15:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
   15 |   if(ans==1)std::cout<<"YES";
      |      ^~~
      |      abs
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c; cin >> a >> b >> c;
  if(b < c)swap(b,c);
  if(a < b)swap(a,b);
  if(make_tuple(a,b,c) == {a,b,c})cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before '{' token
    7 |   if(make_tuple(a,b,c) == {a,b,c})cout << "YES" << endl;
      |                           ^
a.cc:7:26: error: expected ')' before '{' token
    7 |   if(make_tuple(a,b,c) == {a,b,c})cout << "YES" << endl;
      |     ~                    ^~
      |                          )
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected primary-expression before '{' token
    7 |   if(make_tuple(a,b,c) == {a,b,c})cout << "YES" << endl;
      |                           ^
a.cc:7:26: error: expected ')' before '{' token
    7 |   if(make_tuple(a,b,c) == {a,b,c})cout << "YES" << endl;
      |     ~                    ^~
      |                          )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'YES' was not declared in this scope
   11 |     cout << YES << endl;
      |             ^~~
a.cc:12:5: error: expected '(' before 'else'
   12 | }if else (A == 5 && B == 5 && C == 7) {
      |     ^~~~
      |     (
a.cc:14:5: error: expected '(' before 'else'
   14 | }if else (A == 7 && B == 5 && C == 5) {
      |     ^~~~
      |     (
a.cc:16:2: error: 'else' without a previous 'if'
   16 | }else {
      |  ^~~~
a.cc:17:13: error: 'NO' was not declared in this scope
   17 |     cout << NO << endl;
      |             ^~
Language: C

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

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

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

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

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

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

int main() {
    int N, L;
    cin >> N >> L;

    if (N < 1 || 100 < N)    return false;
    if (L < 1 || 100 < L)    return false;

    string* s = new string[N];

    for (int i = 0; i < N; i++)
    {
        //cout << "S" << i << " = ";
        cin >> s[i];
    }

    int c[100];
    for (int i = 0; i < N; i++)
    {
        c[i] = 0;
        for (int j = 0; j < N; j++)
        {
            if (j == i) continue;

            if (s[i] > s[j]) c[i]++;
        }
    }

    int count = 0;
    for (int i = 0; i < N; i++)
    {
        for (int j = 0; j < N; j++)
        {
            if (count == c[j]) cout << s[j];
        }
        count++;
    }

    delete[] s;

    return true;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> N >> L;
      |     ^~~
a.cc:8:5: error: 'string' was not declared in this scope
    8 |     string* s = new string[N];
      |     ^~~~~~
a.cc:8:13: error: 's' was not declared in this scope
    8 |     string* s = new string[N];
      |             ^
a.cc:8:21: error: 'string' does not name a type
    8 |     string* s = new string[N];
      |                     ^~~~~~
a.cc:33:32: error: 'cout' was not declared in this scope; did you mean 'count'?
   33 |             if (count == c[j]) cout << s[j];
      |                                ^~~~
      |                                count
a.cc:38:5: error: type '<type error>' argument given to 'delete', expected pointer
   38 |     delete[] s;
      |     ^~~~~~~~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if(A != 7 && B != 7 && C != 7)
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else
      | ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if(A != 7 && B != 7 && C != 7)
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else
      | ^~~~
Language: C++


#include<bits/stdc++.h>
//#include<iostream>
//#include<string>

#define ll          long long
#define uint        unsigned int 
#define ld          long double
#define SAM         ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define FOR(i,a,b)  for(int i=a;i<b;++i)
#define RFOR(i,a,b) for(int i=a;i>b;--i)
#define mod         1000000007
#define mxn         200005
#define pb          push_back
#define pii         pair<int,int>
#define f           first
#define s           second
#define sz(x)       (int)x.size()
#define all(x)      x.begin(),x.end()

using namespace std;

int main()
{
    SAM;
    int arr[11];
    memset(arr,0,sizeof(arr))
    FOR(i,0,3)
    {
        int x;
        cin>>x;
        arr[x]++;
    }
    
    if(arr[5]==2 && arr[7]==1)
        cout<<"Yes";
    else
        cout<<"NO";
    
    
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:27:30: error: expected ';' before 'for'
   27 |     memset(arr,0,sizeof(arr))
      |                              ^
      |                              ;
a.cc:28:9: error: 'i' was not declared in this scope
   28 |     FOR(i,0,3)
      |         ^
a.cc:10:33: note: in definition of macro 'FOR'
   10 | #define FOR(i,a,b)  for(int i=a;i<b;++i)
      |                                 ^
Language: C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<cmath>
#include<algorithm>
#include<queue>
#include<vector>
#define For(i,k,delta) for(i=0;i<k;i+=delta)

using namespace std;

typedef long long ll;
typedef short int sh;

const int inf=0x3f3f3f3f;
const int MAX=2e5+10;
const int mod=1e9+7;

template<class T>
inline Mms(T Array[],int k)
{
    memset(Array,k,sizeof(Array));
}

int main()
{
    int a,b,c;
    while(scanf("%d%d%d",&a,&b,&c)!=EOF)
    {
        if((a==5&&b==5&&c==7)||(a==5&&c==5&&b==7)||(b==5&&c==5&&a==7))
            puts("YES");
        else
            puts("NO");
    }
    return 0;
}


Compiler output:
a.cc:21:8: error: ISO C++ forbids declaration of 'Mms' with no type [-fpermissive]
   21 | inline Mms(T Array[],int k)
      |        ^~~
a.cc: In function 'int Mms(T*, int)':
a.cc:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
   24 | }
      | ^
Language: C++

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

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

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

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

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

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

int main() {
int N,L;
cin >> N >> L;
vector<string>A(N);
for(int i=0;i<N;i++){
    cin >> A.at(i);
}
sort(A.begin(),A.end());
string C;
for(int j=0;j<N;j++){
    C+=A.at(j);
}
cout << C << endl;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

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

public class A {
	static class IO 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public IO() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
    public static void main(String[] args){
        IO fs = new IO();
        int [] a = new int[3];
        for(int i = 0; i<3; i++){
            a[i] = fs.nextInt();
        }
        Arrays.sort(a);
        if(a[0] ==5 && a[1] ==5 && a[2] ==7)System.out.println("YES");
        else System.out.println("NO");
    }
}


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



// -------------------------------------------------------
#include <iostream>
#include <string>
#include <stdio.h>
#include <cassert>
#include <vector>
using namespace std;

int main() {
	int A, B, C;
	// string s;
#ifdef DEBUG
	int a = 5;
	int b = 7;
	int c = 5;
    A = a; B = b; C = c;
#elif
	cin >> A >> B >> C;
#endif

	vector<int> vec{ A, B, C };
	// cin >> s;
	vector<int> five;
	vector<int> seven;

	for (int i : vec) {
		if (i == 5) {
			five.push_back(1);
		}
		else if (i == 7) {
			seven.push_back(1);
		}
	}
	if (five.size() == 2 && seven.size() == 1) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}

#ifdef DEBUG
	cin >> A;
#endif
	return 0;
}


Compiler output:
a.cc:19:6: error: #elif with no expression
   19 | #elif
      |      ^
Language: C++

// -------------------------------------------------------
#include <iostream>
#include <string>
#include <stdio.h>
#include <windows.h>
#include <cassert>
#include <vector>
using namespace std;

int main() {
	int A, B, C;
	// string s;
#ifdef DEBUG
	int a = 5;
	int b = 7;
	int c = 5;
    A = a; B = b; C = c;
#elif
	cin >> A >> B >> C;
#endif

	vector<int> vec{ A, B, C };
	// cin >> s;
	vector<int> five;
	vector<int> seven;

	for (int i : vec) {
		if (i == 5) {
			five.push_back(1);
		}
		else if (i == 7) {
			seven.push_back(1);
		}
	}
	if (five.size() == 2 && seven.size() == 1) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}

#ifdef DEBUG
	Sleep(10000000);
#endif
	return 0;
}


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

Compiler output:
a.cc:5:10: fatal error: windows.h: No such file or directory
    5 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <string>
#include <stdio.h>
#include <windows.h>
#include <cassert>
#include <vector>
using namespace std;
int main() {
	int A, B, C;
	// string s;
	cin >> A >> B >> C;

	vector<int> vec{ A, B, C };
	// cin >> s;
	vector<int> five;
	vector<int> seven;

	for (int i : vec) {
		if (i == 5) {
			five.push_back(1);
		}
		else if (i == 7) {
			seven.push_back(1);
		}
	}
	if (five.size() == 2 && seven.size() == 1) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}

	Sleep(10000000);
}

Compiler output:
a.cc:4:10: fatal error: windows.h: No such file or directory
    4 | #include <windows.h>
      |          ^~~~~~~~~~~
compilation terminated.
Language: C++

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

typedef long long ll;
const ll mod = 1e9 + 7;
ll h, w, a, b, ans, f[10000];

ll binpow(ll a, ll b)
{
	if (b == 1)	return a;
	if (b == 0)	return 1;
	if (b % 2 == 0) {
		ll temp = binpow(a, b/2) % mod;
		return (temp * temp) % mod;
	}
	else {
		return binpow(a, b-1) % mod;
	}
}

ll inv(ll n) {
	return binpow(n, mod - 2);
}

ll fact(ll n) {
	f[0] = 1;
	f[1] = 1;
	for(ll i = 1; i <= n; i++)
		f[i] = f[i-1] * i % mod;
	return f[n];
}

ll calc(ll n, ll m) {
	// ll p = 1;
	// for(ll i = n; i < (n + m - 1); i++) {
	// 	p *= i;
	// 	p %= mod;
	// 	p *= (i * binpow((i - m + 1), mod - 2)) % mod;
	// 	p %= mod;
	// }
	// return p;
	return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
}

signed main() {
	fact(200000);
	cin >> h >> w >> a >> b;
	for(ll i = 1; i <= h - a; i++)
		ans += calc(i, b) * calc(h - i + 1, w - b) % mod;		
	cout << ans % mod;
}

Compiler output:
a.cc: In function 'll calc(ll, ll)':
a.cc:42:30: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   42 |         return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
      |                              ^
cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith]
a.cc:42:38: error: 'fac' was not declared in this scope; did you mean 'fact'?
   42 |         return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
      |                                      ^~~
      |                                      fact
a.cc:42:72: error: 'MOD' was not declared in this scope
   42 |         return fact[n + m - 2] * inv(fac[n-1]) % mod * inv(fac[m-1]) % MOD;
      |                                                                        ^~~
Language: C

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


Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
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;
  }
else{
  cout << "NO" << endl;
}
  return0;
}
  

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
    8 |   String s;
      |   ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
   13 |     cin>>s;
      |          ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
    8 |   String s;
      |   ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
   13 |     cin>>s;
      |          ^
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'String' was not declared in this scope
    8 |   String s[1000];
      |   ^~~~~~
a.cc:13:10: error: 's' was not declared in this scope
   13 |     cin>>s[i];
      |          ^
a.cc:16:8: error: 's' was not declared in this scope
   16 |   sort(s+0,s+l);
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,l,i;
  vector<String> s(100);
  i=0;
  cin>> n >> l;
  for(i=0;i<n;i++)
  {
    cin>>s[i];
    
  }
  sort(s.begin(),s.end());
  for(i=0;i<n;i++)
  {
    cout<<s[i];
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'String' was not declared in this scope
    6 |   vector<String> s(100);
      |          ^~~~~~
a.cc:6:16: error: template argument 1 is invalid
    6 |   vector<String> s(100);
      |                ^
a.cc:6:16: error: template argument 2 is invalid
a.cc:11:11: error: invalid types 'int[int]' for array subscript
   11 |     cin>>s[i];
      |           ^
a.cc:14:10: error: request for member 'begin' in 's', which is of non-class type 'int'
   14 |   sort(s.begin(),s.end());
      |          ^~~~~
a.cc:14:20: error: request for member 'end' in 's', which is of non-class type 'int'
   14 |   sort(s.begin(),s.end());
      |                    ^~~
a.cc:17:12: error: invalid types 'int[int]' for array subscript
   17 |     cout<<s[i];
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,l,i;
  vector<String> s[100];
  i=0;
  cin>> n >> l;
  for(i=0;i<n;i++)
  {
    cin>>s[i];
    
  }
  sort(v.begin(),v.end());
  for(i=0;i<n;i++)
  {
    cout<<s[i];
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'String' was not declared in this scope
    6 |   vector<String> s[100];
      |          ^~~~~~
a.cc:6:16: error: template argument 1 is invalid
    6 |   vector<String> s[100];
      |                ^
a.cc:6:16: error: template argument 2 is invalid
a.cc:14:8: error: 'v' was not declared in this scope
   14 |   sort(v.begin(),v.end());
      |        ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: 'i' was not declared in this scope
    6 |   for(i=0;i<3;i++)
      |       ^
a.cc:10:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 |   sort(a,a+3);
      |   ^~~~
      |   short
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==7)&&(b==5)&&(c==5))
  {
    
        cout<<"YES";
     
  }
  else if((a==5)&&(b==7)&&(c==5))
  {
   cout<<"yes"
  }
  else
  {
    cout<<"NO";
  }
  return 0;
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>a >> b >> c;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |         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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:19:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |    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:23:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |     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<bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'a' was not declared in this scope
    5 |   vector<int> x = {a,b,c};
      |                    ^
a.cc:5:22: error: 'b' was not declared in this scope
    5 |   vector<int> x = {a,b,c};
      |                      ^
a.cc:5:24: error: 'c' was not declared in this scope
    5 |   vector<int> x = {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> x = {a,b,c};
      |                         ^
      |                         |
      |                         <brace-enclosed initializer list>
Language: C++

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


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

           //  यस्य स्मरणमात्रेण जन्मसंसारबन्धनात् ।  विमुच्यते नमस्तस्मै विष्णवे प्रभविष्णवे ॥
 
 
 
/****
*     Author- Indrajeet Mishra
*             MNNIT Allahabad, Prayagraj
*             Chemical Engineering undergraduate
 
 
 
****/
 
/*#pragma warning(disable:4996)
#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize ("Ofast")
#pragma GCC target ("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#pragma GCC optimize ("-ffloat-store")*/
 
#include <stdio.h>
#define ll long long
#define rep(i,x,y) for(ll i=x;i<y;i++)
#define test(s) if (!(s)) { cout << __LINE__ << " " << #s << endl; exit(-1); }
#define debug(x) do { std::cerr << x; } while (0)
#define endl "\n"
#define pb push_back
#define pf push_front
#define vll vector<ll>
#define dll deque<ll>
#define sll set<ll, greater <ll>>
#define mll map<ll, ll>
#define vii vector<int>
#define dii deque<int>
#define sii set <int, greater <int>>
#define mii map<int, int>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define mod 1000000007
#define inv2 500000004
#define inv6 166666668
#define N 1000005
#define inf 200000000
#define eps 1e-10
#define PI 3.14159265359
#define all(v) (v).begin(),(v).end()
#define min(a,b) (((a)<(b))?(a):(b))
#define max(a,b) (((a)>(b))?(a):(b))
#define gcd(a,b) __gcd(a,b)

using namespace std;
int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    ll a=0,b=0,c=0;cin>>a>>b>>c;
    if(a*b*c==175)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:52:5: error: 'ios_base' has not been declared
   52 |     ios_base::sync_with_stdio(false);
      |     ^~~~~~~~
a.cc:53:5: error: 'cin' was not declared in this scope
   53 |     cin.tie(NULL);
      |     ^~~
a.cc:21:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
   20 | #include <stdio.h>
  +++ |+#include <iostream>
   21 | #define ll long long
a.cc:55:19: error: 'cout' was not declared in this scope
   55 |     if(a*b*c==175)cout<<"YES"<<endl;
      |                   ^~~~
a.cc:55:19: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:56:10: error: 'cout' was not declared in this scope
   56 |     else cout<<"NO"<<endl;
      |          ^~~~
a.cc:56:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'str' was not declared in this scope; did you mean 'std'?
    7 |   str ans = "NO";
      |   ^~~
      |   std
a.cc:13:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |           ans = "YES";
      |           ^~~
      |           abs
a.cc:18:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   18 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int f=0,s=0;
  if(a===5) f++;
  if(a==7) s++;
  if(b==7) s++;
  if(b==5) f++;
  if(c==5) f++;
  if(c==7) s++;
  if(f==2 && s==1) cout << "YES\n";
  else cout << "NO\n";
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:46: error: expected ';' before 'else'
    6 |   if(a>=5 && b >= 7 && c >=5) cout << "YES\n"
      |                                              ^
      |                                              ;
    7 |   else cout << "NO\n"
      |   ~~~~