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

#include<iostream>
int main
{
std:;cin >> num1 >> num2 >>num3
if(num1+num2+num3=12)
{
std::cout << "YES" << endl
}
else
{
std::cout << "No" << endl
}

return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:5: error: expected primary-expression before ';' token
    4 | std:;cin >> num1 >> num2 >>num3
      |     ^
a.cc:4:5: error: expected '}' before ';' token
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:4:6: error: 'cin' does not name a type
    4 | std:;cin >> num1 >> num2 >>num3
      |      ^~~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

include<iostream>
int main
{
std:;cin >> num1 >> num2 >>num3
if(num1+num2+num3=12)
{
std::cout << "YES" << endl
}
else
{
std::cout << "No" << endl
}

return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<iostream>
      | ^~~~~~~
Language: C++

#include "stdafx.h"
#include <iostream>
#include <cstdlib>

using namespace std;

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

    if ((a+b+c) == 17) {
        if (a == 5) {
            if (abs(b - c) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else if (b == 5) {
            if (abs(a - c) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else if (c == 5) {
            if (abs(a - b) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else {
            cout << "NO" << endl;
        }
    }

    int ss;
    cin >> ss;
    return 0;
}

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

#include "stdafx.h"
#include <iostream>
#include <cstdlib>

using namespace std;

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

    if ((a+b+c) == 17) {
        if (a == 5) {
            if (abs(b - c) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else if (b == 5) {
            if (abs(a - c) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else if (c == 5) {
            if (abs(a - b) == 2)
            {
                cout << "YES" << endl;
            }
        }
        else {
            cout << "NO" << endl;
        }
    }

  
    return 0;
}

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

#include<iostream>

using namespace std;

int main() {
	int a=0, b=0, c=0;
	while (a<1 ||  a>10) {
		cin >> a;
	}
	while (b<1 || b>10) {
		cin >> b;
	}
	while (c<1 || c>10) {
		cin >> c;
	}
	if (a==7 && b==5 && c==5) {
		cout << "yes" << endl;
	}

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

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

	else  {
		cout << "no" << endl;
	}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:10: error: expected '}' at end of input
   30 |         }
      |          ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

s = gets().split().map(&:to_i)

five, seven = 0, 0
3.times do |i|
	if s[i] == 5
		five += 1
	elsif s[i] == 7
		seven += 1
	end
end

if five == 2 && seven == 1
	puts "YES"
else
	puts "NO"
end

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


using namespace std;

int main(){

	int a,b,c;

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

	return 0;
	

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         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 | 
a.cc:10:17: error: 'cout' was not declared in this scope
   10 |                 cout<<"YES"<<endl;
      |                 ^~~~
a.cc:10:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:30: error: 'endl' was not declared in this scope
   10 |                 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 | 
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout<<"YES"<<endl;
      |                 ^~~~
a.cc:12:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:30: error: 'endl' was not declared in this scope
   12 |                 cout<<"YES"<<endl;
      |                              ^~~~
a.cc:12:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:14:17: error: 'cout' was not declared in this scope
   14 |                 cout<<"YES"<<endl;
      |                 ^~~~
a.cc:14:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:30: error: 'endl' was not declared in this scope
   14 |                 cout<<"YES"<<endl;
      |                              ^~~~
a.cc:14:30: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout<<"NO"<<endl;
      |                 ^~~~
a.cc:16:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:29: error: 'endl' was not declared in this scope
   16 |                 cout<<"NO"<<endl;
      |                             ^~~~
a.cc:16:29: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: expected ';' before '}' token
    8 |     cout<<"YES"<<"\n"
      |                      ^
      |                      ;
    9 |   }
      |   ~                   
a.cc:11:22: error: expected ';' before '}' token
   11 |     cout<<"YES"<<"\n"
      |                      ^
      |                      ;
   12 |   }
      |   ~                   
a.cc:14:22: error: expected ';' before '}' token
   14 |     cout<<"YES"<<"\n"
      |                      ^
      |                      ;
   15 |   }
      |   ~                   
a.cc:17:21: error: expected ';' before '}' token
   17 |     cout<<"NO"<<"\n"
      |                     ^
      |                     ;
   18 |   }
      |   ~
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&&c==5&&b==7)||(b==5&&c==5&&a==7)){
    cout<<"Yes";
  }
  else{
    cout<<"No";
  }
}

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

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

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

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

#include<stdio.h>
int main(void)
{
 int A,B,C;
A>=1;
B>=1;
C>=1;
A<=10;
B<=10;
C<=10
if(A=5,B=7,C=5){
printf("YES\n");

}else if(A=5,B=5,C=7){
printf("YES\n");

}else if(A=7,B=5,C=5){
printf("YES\n");

}else{
printf("NO\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: expected ';' before 'if'
   10 | C<=10
      |      ^
      |      ;
   11 | if(A=5,B=7,C=5){
      | ~~
Language: C

#include<stdio.h>
int main(void)
{
 int A,B,C;
A>=1;
B>=1;
C>=1;
A<=10;
B<=10;
C<=10
if(A=5,B=7,C=5){
printf("YES\n")

}else if(A=5,B=5,C=7){
printf("YES\n");

}else if(A=7,B=5,C=5){
printf("YES\n");

}else{
printf("NO\n");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:6: error: expected ';' before 'if'
   10 | C<=10
      |      ^
      |      ;
   11 | if(A=5,B=7,C=5){
      | ~~
Language: C

#include<stdio.h>
int main(void)
{
 int A,B,C;
A>=1;
B>=1;
C>=1;
A<=10;
B<=10;
C<=10;
if(A=5,B=7,C=5){
printf("YES\n")}
if(A=5,B=5,C=7){
printf("YES\n")}
if(A=7,B=5,C=5){
printf("YES\n")
}else{
printf("NO\n")
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:16: error: expected ';' before '}' token
   12 | printf("YES\n")}
      |                ^
      |                ;
main.c:14:16: error: expected ';' before '}' token
   14 | printf("YES\n")}
      |                ^
      |                ;
main.c:16:16: error: expected ';' before '}' token
   16 | printf("YES\n")
      |                ^
      |                ;
   17 | }else{
      | ~               
main.c:18:15: error: expected ';' before '}' token
   18 | printf("NO\n")
      |               ^
      |               ;
   19 | }
      | ~
Language: C

#include<stdio.h>
int main(void)
{
 int A,B,C;
A>=1;
B>=1;
C>=1;
A<=10;
B<=10;
C<=10
if(A=5,B=7,C=5){
printf("YES\n")}
if(A=5,B=5,C=7){
printf("YES\n")}
if(A=7,B=5,C=5){
printf("YES\n")
}else{
printf("NO\n")
}
return 0;
}








Compiler output:
main.c: In function 'main':
main.c:10:6: error: expected ';' before 'if'
   10 | C<=10
      |      ^
      |      ;
   11 | if(A=5,B=7,C=5){
      | ~~
Language: C++

import java.util.Scanner;
import java.util.Map;
import java.util.HashMap;

public class Main {
    public static void main(String[] args) throws Exception {
        // Here your code !
        Scanner sc = new Scanner(System.in);
        int A = sc.nextInt();
        int B = sc.nextInt();
        int C = sc.nextInt();
        
        String result = "NO";
        if(A==5&&B==5&&C==7){
            result = "YES";
        }else if(A==5&&B==7&&C==5){
            result = "YES";
        }else if(A==7&&B==5&&C==5){
            result = "YES";
        }
        System.out.println(result);
        
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.util.Map;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.HashMap;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <math>
#include <string>
#include <vector>
//#define loop(K) for(int i=0;i < K;i++)

using namespace std;

int main(){
	int N,L;
	cin >> N >> L;	//入力
	vector<string> mozi(N); //比較する文字の数
	vector<string> sum(1);  //文字を足したやつ

	for(int i=0;i < N;i++){ //文字入力
		cin >> mozi[i];
	}

	qsort(mozi.begin(),mozi.end()); //文字列の最初から最後までをクイックソート
	for(int i=0;i < N;i++){ //文字を合体させる処理
		sum[0] += mozi[i];
	}
	cout << sum[0] << endl; //出力
	return 0;
}

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

#include<iostream>
using namespace std;

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

  for(int i=0;i<3;i++){
    if(a[i] == 5)b[0]++
    if(a[i] == 7)b[1]++
  }

  if(b[0] == 2 && b[1] == 1){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ';' before '}' token
    7 |     cin>>a[i]
      |              ^
      |              ;
    8 |   }
      |   ~           
a.cc:11:24: error: expected ';' before 'if'
   11 |     if(a[i] == 5)b[0]++
      |                        ^
      |                        ;
   12 |     if(a[i] == 7)b[1]++
      |     ~~
Language: C++

l = list(map(int, input().split()))

if l.count(5) == 2 and l.count(7) == 1:
        print("YES")
else:
        print("NO")

Compiler output:
a.cc:1:1: error: 'l' does not name a type
    1 | l = list(map(int, input().split()))
      | ^
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        Main instance = new Main();
        sc = instance.new Scanner();
        instance.solve();
    }

    private void solve() {
        try {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();

            String answer = "NO";

            if (a + b + c == 17) {
              if (a == 5) {
                if (b == 7 || c == 7) {
                  answer = "YES";
                }
              } else if (a == 7) {
                if (b == 5 || c == 5) {
                  answer = "YES";
                }
              } 
            }

            System.out.println(answer);
            
          }


          System.out.println(winner);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class Scanner {
        String[] s;
        int i;
        BufferedReader br;
        String regex = " ";

        public Scanner() {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                super.finalize();
            } finally {
                destruction();
            }
        }

        private void destruction() throws IOException {
            if (br != null) br.close();
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String st = br.readLine();
            while (st == "") st = br.readLine();
            s = st.split(regex, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public Long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }

        public Double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
Main.java:19: error: 'try' without 'catch', 'finally' or resource declarations
        try {
        ^
Main.java:45: error: illegal start of type
        } catch (Exception e) {
          ^
Main.java:45: error: ';' expected
        } catch (Exception e) {
                            ^
Main.java:96: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

public class Main {

    private static Scanner sc;

    public static void main(String[] args) {
        Main instance = new Main();
        sc = instance.new Scanner();
        instance.solve();
    }

    private void solve() {
        try {
            int a = sc.nextInt();
            int b = sc.nextInt();
            int c = sc.nextInt();

            String answer = "NO";

            if (a + b + c == 17) {
              if (a == 5) {
                if (b == 7 || c == 7) {
                  answer == "YES";
                }
              } else if (a == 7) {
                if (b == 5 || c == 5) {
                  answer == "YES";
                }
              } 
            }

            System.out.println(answer);
            
          }


          System.out.println(winner);

        } catch (Exception e) {
            e.printStackTrace();
        }
    }

    private class Scanner {
        String[] s;
        int i;
        BufferedReader br;
        String regex = " ";

        public Scanner() {
            s = new String[0];
            i = 0;
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        @Override
        protected void finalize() throws Throwable {
            try {
                super.finalize();
            } finally {
                destruction();
            }
        }

        private void destruction() throws IOException {
            if (br != null) br.close();
        }

        public String next() throws IOException {
            if (i < s.length) return s[i++];
            String st = br.readLine();
            while (st == "") st = br.readLine();
            s = st.split(regex, 0);
            i = 0;
            return s[i++];
        }

        public int nextInt() throws NumberFormatException, IOException {
            return Integer.parseInt(next());
        }

        public Long nextLong() throws NumberFormatException, IOException {
            return Long.parseLong(next());
        }

        public Double nextDouble() throws NumberFormatException, IOException {
            return Double.parseDouble(next());
        }
    }
}


Compiler output:
Main.java:29: error: not a statement
                  answer == "YES";
                         ^
Main.java:33: error: not a statement
                  answer == "YES";
                         ^
Main.java:19: error: 'try' without 'catch', 'finally' or resource declarations
        try {
        ^
Main.java:45: error: illegal start of type
        } catch (Exception e) {
          ^
Main.java:45: error: ';' expected
        } catch (Exception e) {
                            ^
Main.java:96: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

mport java.util.ArrayList;
import java.util.Scanner;
import java.util.Collections;
public class Main {
	public static void main(String args[]) {
		
		Scanner scan = new Scanner(System.in);
		int number = scan.nextInt();
		int length = scan.nextInt();
		ArrayList list = new ArrayList(number);
		
		for (int i = 0; i < number; i++) {
			list.set(i,scan.nextLine());
		}
		Collections.sort(list);
		for (int i = 0; i < number; i++) {
			System.out.print(list.get(i));
		}
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.ArrayList;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
Main.java:3: error: class, interface, enum, or record expected
import java.util.Collections;
^
3 errors
Language: Java

package practice;
import java.util.*;

public class ABC042A {

	public static void main(String[] args){

		Scanner scan = new Scanner(System.in);
		int first	= scan.nextInt();
		int second	= scan.nextInt();
		int therd	= scan.nextInt();
		int FIVE	= 0;
		int SEVEN	= 0;
		
		if ((first == 5 | first == 7) & (second == 5 | second == 7) & (therd == 5 | therd == 7) & (first + second + therd == 17)) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}

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

#define _USE_MATH_DEFIN
#include<bits/stdc++.h>
using namespace std;  
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) for(int i=0;i<(n);i++)  
typedef long long ll;
typedef vector<int> vi;
typedef vector<vi> vvi;
#define pii pair<int,int>
#define piii pair<int,pii>
#define mp make_pair
#define pb push_back  
#define ALL(a) (a).begin(),(a).end()
#define FST first
#define SEC second  
const int INF = (INT_MAX/2);
const double eps = 1e-14;
const double PI = M_PI;  
#define DEB cout<<"!"<<endl
#define SHOW(a,b) cout<<(a)<<" "<<(b)<<endl  
#define DIV 1000000009  
int main(){
	int number[10];
	fill_n(number[0],10,1);
	int target,K;cin >> target >> K;
	REP(i,K){
		int a; cin >>a;
		number[a] = 0;
	}
	
	for(int ans = target; ans < 10000; ans++){
		string str = to_string(ans);
		REP(j,str.size()){
			if(number[str[j] = '0'] == 0)
				continue;
		}
		cout << ans << endl;
		break;
	}
	
	return 0;
} 

Compiler output:
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_algobase.h: In instantiation of '_OI std::fill_n(_OI, _Size, const _Tp&) [with _OI = int; _Size = int; _Tp = int]':
a.cc:24:8:   required from here
   24 |         fill_n(number[0],10,1);
      |         ~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_algobase.h:1184:56: error: no matching function for call to '__iterator_category(int&)'
 1184 |                                std::__iterator_category(__first));
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:65:
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: note: candidate: 'template<class _Iter> constexpr typename std::iterator_traits< <template-parameter-1-1> >::iterator_category std::__iterator_category(const _Iter&)'
  239 |     __iterator_category(const _Iter&)
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: note:   template argument deduction/substitution failed:
/usr/include/c++/14/bits/stl_iterator_base_types.h: In substitution of 'template<class _Iter> constexpr typename std::iterator_traits< <template-parameter-1-1> >::iterator_category std::__iterator_category(const _Iter&) [with _Iter = int]':
/usr/include/c++/14/bits/stl_algobase.h:1184:35:   required from '_OI std::fill_n(_OI, _Size, const _Tp&) [with _OI = int; _Size = int; _Tp = int]'
 1184 |                                std::__iterator_category(__first));
      |                                ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
a.cc:24:8:   required from here
   24 |         fill_n(number[0],10,1);
      |         ~~~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/stl_iterator_base_types.h:239:5: error: no type named 'iterator_category' in 'struct std::iterator_traits<int>'
  239 |     __iterator_category(const _Iter&)
      |     ^~~~~~~~~~~~~~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<stack>
#include<queue>
#include<vector>
#include<cmath>
#include<utility>
#include<set>
#define ll long long int
#define ld long double
#define INF 10000
#define EPS 0.0000000001
#define rep(i,n) for(int i=0;i<n;i++)
#define CC puts("-------ok--------");
#define all(in) in.begin(), in.end
using namespace std;
typedef pair<int, int> P;
int main(){
    
    
    int n,n1,n2;
    cin >> n >> n1 >> n2;
    int array[100] = {0};
    array[n]++;
    array[n2]++;
    array[n2]++;
    if(array[7] == 1  || array[5] == 1)
        cout << "YES" << endl;
    else
        cout << "NO" << endl;
}
    
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:23: error: expected ';' before 'if'
    8 |         sort(A, A + 3)
      |                       ^
      |                       ;
    9 |         if (A[0] == 5 && A[1] == 5 && A[2] == 7)
      |         ~~             
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else
      |         ^~~~
Language: C++

N = gets.split.map(&:to_i)
five, seven = [0,0]
N.each do |n|
  five += 1 if n == 5
  seven += 1 if n == 7
end
if five == 2 && seven == 1 then
  puts "YES"
else
  puts "NO"
end


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

NUM = gets.split.map(&:to_i)
five, seven = [0,0]
NUM.each do |n|
  five += 1 if n == 5
  seven += 1 if n == 7
end
if five == 2 && seven == 1 then
  puts "YES"
else
  puts "NO"
end


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

/** coder Mohammad Al-Hussein *_^ */
#include <bits/stdc++.h>
#define ll long long
#define F first
#define S second
#define mp make_pair
#define All(v) v.begin(),v.end()
#define mod  1000000007
#define write freopen("output.txt","w",stdout)
#define read freopen("test (1).txt","r",stdin)
#define FIO std::ios_base::sync_with_stdio(false);
using namespace std;

int h,w,a,b;
int dp[1000002][1000002];

ll solve(int i,int j)
{
    if(i <= 0 || i > h || j <= 0 || j > w || (i == a&&b == j))return 0;

    if(i == h && j == w) return 1;

    if(dp[i][j] != -1) return dp[i][j];

    return dp[i][j] = (solve(i+1,j) + solve(i,j+1))%mod;
}

int main()
{
    memset(dp,-1,sizeof(dp));
    cin >> h >> w >> a >> b
     cout << solve(1,1) << endl;





    return 0;
}














Compiler output:
a.cc: In function 'int main()':
a.cc:31:28: error: expected ';' before 'cout'
   31 |     cin >> h >> w >> a >> b
      |                            ^
      |                            ;
   32 |      cout << solve(1,1) << endl;
      |      ~~~~
Language: C++

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

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


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

#include <iostream>
using namespace std;

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


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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: lvalue required as left operand of assignment
    6 | if(A=5,B=7,C=5 || A=7,B=5,C=5 || A=5,B=5,C=7){
      |              ~~^~~~
a.cc:6:31: error: lvalue required as left operand of assignment
    6 | if(A=5,B=7,C=5 || A=7,B=5,C=5 || A=5,B=5,C=7){
      |                             ~~^~~~
a.cc:7:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    7 |     answer="YES";
      |            ^~~~~
      |            |
      |            const char*
a.cc:10:12: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |     answer="NO";
      |            ^~~~
      |            |
      |            const char*
Language: C++

#include<iostream>
#include<array>
#include<string>
int main(void){
	int a,b,c;/*xは個数nは順番*/

std::cin >> a >> b >> c;
	
	
	if (a==5&&b==7&&c==5||a==7&&b==5&&c==5||a==5&&b==5&&c==7) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}


	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' at end of input
   18 |         return 0;
      |                  ^
a.cc:4:15: note: to match this '{'
    4 | int main(void){
      |               ^
Language: Java

import java.util.Scanner;
public class irohaDigit {
	public static void main(String[] args)
	{
		int N;
		int D;
		Scanner sc = new Scanner(System.in);
		N = sc.nextInt();
		D = sc.nextInt();
		int d[] = new int[10];
		for(int i=0;i<D;i++)
		{
			d[sc.nextInt()]=1;
		}
		int sum=0;
		int start9= 0;
		int maxD = String.valueOf(N).length();
		for(int i=maxD-1;i>=0;i--)
		{
			int x = N/(int)(Math.pow(10,i));
			N = N%(int)Math.pow(10, i);
			if(d[x]==1)
			{	
				{
					for(int j=x;j<10;j++)
					{	if(d[j]!=1)
						{
							x=j;
							break;
						}
						else
							if(j==9)
							{	j=-1;
								start9=1;
							}
					}
				}
				
			}
			if(i==(maxD-1) && start9==1)
				sum = sum+10*(int)Math.pow(10,i);
			else
				sum = sum+x*(int)Math.pow(10,i);
			if(N==0)
				break;
		}
		System.out.print(sum);
	}
}


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

#include <stdio.h>

int main(void)
{
    int a[3], i, count = 0;
    scanf("%d%d%d", a[0], b[1], c[2]);
    for(i = 0; i < 3; i++)
    {
        switch(a[i])
        {
            case 5:count++;
            case 7:break;
            default:printf("NO\n");
                return 0;
        }
    }
    if(count != 2){
        printf("NO\n");
        return 0;
    }
    printf("YES\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: 'b' was not declared in this scope
    6 |     scanf("%d%d%d", a[0], b[1], c[2]);
      |                           ^
a.cc:6:33: error: 'c' was not declared in this scope
    6 |     scanf("%d%d%d", a[0], b[1], c[2]);
      |                                 ^
Language: Java

import java.util.*;

public class Main{

public static void main(String[] args){

Scanner x = new Scanner(System.in);

int num=x.nextInt();
int length=x.nextInt();

String[] arr = new String[num];

for(int i = 0;i<num;i++){
arr[i]=x.next();
}
Collections.sort(arr);
String result="";
for(int i = 0;i<num;i++){
result += arr[i];
}

return result;
}

}

Compiler output:
Main.java:17: error: no suitable method found for sort(String[])
Collections.sort(arr);
           ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; String[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
Main.java:23: error: incompatible types: unexpected return value
return result;
       ^
2 errors
Language: C++

#include <iostream>
using namespace std;

int main(){
	char haiku[4] = "";
	int temp = 0;
	for(int i = 0; i < 3; i++) {
		cin >> temp;
		haiku[i] = haiku[i] + ('0' + temp);
		haiku[4] = "\0";
	}

	if(haiku == "557" || haiku == "575" || haiku == "755")
		cout << "YES" << endl;
	else
		cout << "NO" << endl;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:28: error: invalid conversion from 'const char*' to 'char' [-fpermissive]
   10 |                 haiku[4] = "\0";
      |                            ^~~~
      |                            |
      |                            const char*
Language: C++

#include <iostream>
using namespace std;

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

	char s[4];
	s = "" + haiku[0] + haiku[1] + haiku[2];
	if(s == "557" || s == "575" || s == "755")
		cout << "YES" << endl;
	else
		cout << "NO" << endl;


	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: incompatible types in assignment of 'const char*' to 'char [4]'
    9 |         s = "" + haiku[0] + haiku[1] + haiku[2];
      |         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C++

import java.util.*;
public class Main{

public static void main(String[] args){
int f=0;
int s=0;
Scanner x= new Scanner(System.in);
for(int i=0;i<3;i++){
if(x.nextInt() == 5)
f++;
if(x.nextInt()==7)
s++;

}
if(s==1 &&f==2)
System.out.print("TRUE");
System.out.print("FALSE");
}

}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: expected unqualified-id before 'public'
    2 | public class Main{
      | ^~~~~~
Language: Java

import java.util.Scanner;

public class IrohaAndHaiku {
  public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
    String line = in.nextLine();
    in.close();
    String[] ary = line.split(" ");
    boolean w7 = false;
    boolean[] w5 = {false, false};

    for (String w : ary) {
      int intW = Integer.parseInt(w.trim());
      if (intW != 5 && intW != 7) {
        System.out.println("NO");
        return;
      } else if (intW == 7 && w7) {
        System.out.println("NO");
        return;
      } else if (intW == 5 && w5[0] && w5[1]) {
        System.out.println("NO");
        return;
      } else if (intW == 7 && w7 == false) {
        w7 = true;
      } else if (intW == 5) {
        if (w5[0] == false) {
          w5[0] = true;
        } else if (w5[1] == false) {
          w5[1] = true;
        }
      }
    }

    if (w7 && w5[0] && w5[1]) {
      System.out.println("YES");
    }
  }
}


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

#include <iostream>
#include <vector>

using std::cout;
using std::endl;
using std::cin;
using std::vector;
using std::count;

int main(){
    vector<int> v;
    
    v.resize(3);
    cin >> v[0] >> v[1] >> v[2];
    count(v.begin(),v.end(),7)==1 && count(v.begin(), v.end(), 5)==2?
    cout << "YES" << endl : cout << "NO" << endl;
    
    return 0;
}

Compiler output:
a.cc:8:12: error: 'count' has not been declared in 'std'
    8 | using std::count;
      |            ^~~~~
a.cc: In function 'int main()':
a.cc:15:5: error: 'count' was not declared in this scope; did you mean 'cout'?
   15 |     count(v.begin(),v.end(),7)==1 && count(v.begin(), v.end(), 5)==2?
      |     ^~~~~
      |     cout
Language: C++

#include <iostream>
#include <vector>

using std::cout;
using std::endl;
using std::cin;
using std::vector;

int main(){
    vector<int> v;
    
    v.resize(3);
    cin >> v[0] >> v[1] >> v[2];
    std::count(v.begin(),v.end(),7)==1 && std::count(v.begin(), v.end(), 5)==2?
    cout << "YES" << endl : cout << "NO" << endl;
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'count' is not a member of 'std'; did you mean 'cout'?
   14 |     std::count(v.begin(),v.end(),7)==1 && std::count(v.begin(), v.end(), 5)==2?
      |          ^~~~~
      |          cout
a.cc:14:48: error: 'count' is not a member of 'std'; did you mean 'cout'?
   14 |     std::count(v.begin(),v.end(),7)==1 && std::count(v.begin(), v.end(), 5)==2?
      |                                                ^~~~~
      |                                                cout
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <limits.h>

int int_sort( const void * a , const void * b ) {
  /* 引数はvoid*型と規定されているのでint型にcastする */
  if( *( int * )a < *( int * )b ) {
    return -1;
  }
  else
  if( *( int * )a == *( int * )b ) {
    return 0;
  }
  return 1;
}

void delnumber(int K[], const int D_k[], int k){
  int K_size = 10; //sizeof(k) / sizeof(k[0]);
  int D_size = k; //sizeof(D_k) / sizeof(D_k[0]);
  //printf("%d, %d", K_size, D_size);

  for(int i = 0; i < K_size; i++){
    for(int j = 0; j< D_size; j++){
      //printf("i = %d, j = %d\n", i, j);
      if(K[i] == D_k[j]){
       K[i] = INT_MAX;
     }
    }
  }
}

int makenumber(int K[], int N){
  while()

  return 0;
}

int main(){
  int K[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9};
  int N, k;
  scanf("%d %d", &N , &k);
  int D_k[k];
  int D_kCounter = 1;


  for(int i = 0; i<k; i++){
   scanf("%d", &D_k[i]);
   D_kCounter = D_kCounter * D_k[i];
 }


  if(D_kCounter == 362880){
    printf("failed");
    return -1;
  }

  delnumber(K, D_k, k);
  qsort(K, 10, sizeof(int), int_sort);;
  return 0;
}


Compiler output:
main.c: In function 'makenumber':
main.c:33:9: error: expected expression before ')' token
   33 |   while()
      |         ^
Language: C++

#include<iostream>
#include<stdio.h>
#include<cstdio>
using namespace std;
int main(){
	int A,B,C;
	cin >> A >> B >> C;
	if(A*B == 35 && C==5 ){
    cout << "YES"<< endl;
    }else if(A*C == 35 && B=5){
    cout << "YES" << endl;
    }else{
    cout << "NO" <<endl; 
    }		
}

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

#include<iostream>
#include<stdio.h>
#include<cstdio>
using namespace std;
int main(){
	int A,B,C;
	cin >> A >> B >> C;
	if(A*B == 35 && C==5 ){
    cout << 'YES'<< endl;
    }else if(A*C == 35 && B=5){
    cout << 'YES' << endl;
    }else{
    cout << 'NO'; 
    }		
}

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'YES'<< endl;
      |             ^~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'YES' << endl;
      |             ^~~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |     cout << 'NO';
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:24: error: lvalue required as left operand of assignment
   10 |     }else if(A*C == 35 && B=5){
      |              ~~~~~~~~~~^~~~
Language: C++

#include<stdio.h>
#include<string.h>
 
int main(void) {
	char str[102][102], temp[102];
	int N, L, i;
	scanf("%d %d", &N, &L);
	gets(temp);
	for (L = 0;L < N;L++)
		gets(str[L]);
	for (L = 0;L < N-1;L++) {
		for (i = 0;i < N - 1;i++) {
			if (strcmp(str[i], str[i + 1]) > 0) {
				strcpy(temp, str[i]);
				strcpy(str[i], str[i + 1]);
				strcpy(str[i + 1], temp);
			}
		}
 
	}
	for (i = 0;i < N;i++)
		printf("%s", str[i]);
	return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    8 |         gets(temp);
      |         ^~~~
      |         getw
Language: Java

package abc042;

import java.util.Scanner;

public class Iroha_and_Haiku {

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

		int A = stdIn.nextInt();
		int B = stdIn.nextInt();
		int C = stdIn.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:5: error: class Iroha_and_Haiku is public, should be declared in a file named Iroha_and_Haiku.java
public class Iroha_and_Haiku {
       ^
1 error
Language: Java

import java.util.Arrays;
import java.util.Scanner;
public class Test {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int ab[] = new int[3];
	    ab[0] = scan.nextInt();
	    ab[1] = scan.nextInt();
	    ab[2] = scan.nextInt();
	    Arrays.sort(ab);
	    if(ab[0] == 5 && ab[1] == 5 && ab[2] == 7) {
	    	System.out.println("YES");
	    } else {
	    	System.out.println("NO");
	    }
	}
}


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

public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
	    String a = scan.next();
	    String b = scan.next();
	    String c = scan.next();
	    int ab[] = new int[3];
	    ab[0] = Integer.valueOf(a).intValue();
	    ab[1] = Integer.valueOf(b).intValue();
	    ab[2] = Integer.valueOf(c).intValue();
	    Arrays.sort(ab);
	    if(ab[0] == 5 && ab[1] == 5 && ab[2] == 7) {
	    	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: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;
public class Test {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
	    String a = scan.next();
	    String b = scan.next();
	    String c = scan.next();
	    int ab[] = new int[3];
	    ab[0] = Integer.valueOf(a).intValue();
	    ab[1] = Integer.valueOf(b).intValue();
	    ab[2] = Integer.valueOf(c).intValue();
	    Arrays.sort(ab);
	    if(ab[0] == 5 && ab[1] == 5 && ab[2] == 7) {
	    	System.out.println("YES");
	    } else {
	    	System.out.println("NO");
	    }
	}
}


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

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Scanner;


public class Test {
	public static void main(String args[]){
	    Scanner scan = new Scanner(System.in);
	    String a = scan.next();
	    String b = scan.next();
	    String c = scan.next();
	    int ab[] = new int[3];
	    ab[0] = Integer.valueOf(a).intValue();
	    ab[1] = Integer.valueOf(b).intValue();
	    ab[2] = Integer.valueOf(c).intValue();
	    Arrays.sort(ab);
	    if(ab[0] == 5 && ab[1] == 5 && ab[2] == 7) {
	    	System.out.println("YES");
	    } else {
	    	System.out.println("NO");
	    }
	}
}


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

#!/usr/bin/env python

line = raw_input()
if line.count('5') == 2 and line.count('7') == 1:
    print "YES"
else:
    print "NO"
    



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python
      |  ^
a.cc:3:1: error: 'line' does not name a type
    3 | line = raw_input()
      | ^~~~
Language: C++

import java.util.*;


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

    int five = 0;
    int seven = 0;

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

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


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	// your code goes here

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


   



	return 0;
}

Compiler output:
a.cc:21:9: error: expected unqualified-id before 'return'
   21 |         return 0;
      |         ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

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


   




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

#include<stdio.h>
#include<iostream>
#include<fstream>
#include<string.h>
#include<algorithm>
#include<functional>
using namespace std;

int main(void){

	int A, B, C;
	ifs >> A >> B >> C;

	int go=0, nana=0;

	if (A == 5)go++;
	else if (A == 7)nana++;

	if (B == 5)go++;
	else if (B == 7)nana++;

	if (C == 5)go++;
	else if (C == 7)nana++;


	if (go == 2 && nana == 1)cout << "YES" << endl;
	else cout << "NO" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'ifs' was not declared in this scope; did you mean 'ffs'?
   12 |         ifs >> A >> B >> C;
      |         ^~~
      |         ffs
Language: C++

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

int n,l;
string tab[101];
int main() {
cin >> n >> l;
for (int i = 0; i < n; i++) cin >> tab[i];
sort(tab, tab+n);
for (int i = 0; i < n; i++) cout <<tab[i];
cout <<"\n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: 'sort' was not declared in this scope; did you mean 'short'?
   10 | sort(tab, tab+n);
      | ^~~~
      | short
Language: C++

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

string tab[101];
int main() {
cin >> n >> l;
for (int i = 0; i < n; i++) cin >> tab[i];
sort(tab, tab+n);
for (int i = 0; i < n; i++) cout <<tab[i];
cout <<"\n";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'n' was not declared in this scope
    7 | cin >> n >> l;
      |        ^
a.cc:7:13: error: 'l' was not declared in this scope
    7 | cin >> n >> l;
      |             ^
a.cc:9:1: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 | sort(tab, tab+n);
      | ^~~~
      | short
Language: C++

#include <iostream>
#include <vector>
#include <algorithm>
 
using namespace std;
int main(){
vector<int> v;
int a,b,c;
cin >> a >> b >> c;
v.push_back(a);
v.push_back(b);
v.push_back(c);
sort(v.begin(), v.end();
if(v[0] == 5 && v[1] == 5 && v[2] == 7){
cout << "YES" << endl;
}else{
cout << "NO" << endl;
}
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: expected ')' before ';' token
   13 | sort(v.begin(), v.end();
      |     ~                  ^
      |                        )