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

#define _CRT_SECURE_NO_WARNINGS
#include <bits/stdc++.h>
#include <unordered_map>
#define endl '\n';
#define all(v) ((v).begin()), ((v).end())
#define sz(s)               (int)s.size()
#define Ceil(x,y)             ((x+y-1)/y)
#define RT(x)           return cout<<x,0;
#define mem(x,y)    memset(x,y,sizeof(x))
#define vi                    vector<int>
#define pii                 pair<int,int>
#define fx(n)           fixed<<setprecision(n)
#define watch(x) cout<<(#x)<<" = "<<x<<endl
#define forr(i, n) for (int i = 0; i < int(n); i++)
typedef long long ll;
typedef unsigned long long ull;
typedef double dl;
const double PI = acos(-1), EPS = 1e-7;
const int OO = 0x3f3f3f3f, N = 1e7 + 5, MOD = 1e9 + 7;
using namespace std;
void fast() { std::ios_base::sync_with_stdio(0); cin.tie(NULL); cout.tie(NULL); }
int main()
{
	fast();
	vector<ll>v(3);
	for(int i=0;i<3;i++)
        cin>>v[i];
    sort(all(v));
    if(v[0]==5 && v[1]==5 &&v[2]==7)
        cout<<"YES\n":
    else
    cout<<"NO\n";
	
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:30:22: error: expected ';' before ':' token
   30 |         cout<<"YES\n":
      |                      ^
      |                      ;
Language: C++

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'return'
    8 |   else cout<<"NO"<<endl
      |                        ^
      |                        ;
    9 | 
   10 |   return 0;
      |   ~~~~~~
Language: C

#include<stdio.h>
int main()
{
    int A,B,C;
    scanf(“%d %d %d”,&A,&B,&C);
          if(A%7==0)
          {
                 if(B%5==0 && C%5==0)
                 {
                        printf(“Yes”);
                 }
          }
         else if(A%5==0)
          {
                 if(B%5==0 && C%7==0)
                 printf(“Yes”);
                 else if(B%7==0 && C%5==0)
                  printf(“Yes”);
          }
          else
           {
                  printf(“No”);
           }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:11: error: stray '\342' in program
    5 |     scanf(<U+201C>%d %d %d<U+201D>,&A,&B,&C);
      |           ^~~~~~~~
main.c:5:12: error: expected expression before '%' token
    5 |     scanf(“%d %d %d”,&A,&B,&C);
      |            ^
main.c:5:20: error: stray '\342' in program
    5 |     scanf(<U+201C>%d %d %d<U+201D>,&A,&B,&C);
      |                           ^~~~~~~~
main.c:10:32: error: stray '\342' in program
   10 |                         printf(<U+201C>Yes<U+201D>);
      |                                ^~~~~~~~
main.c:10:36: error: stray '\342' in program
   10 |                         printf(<U+201C>Yes<U+201D>);
      |                                           ^~~~~~~~
main.c:10:33: error: 'Yes' undeclared (first use in this function)
   10 |                         printf(“Yes”);
      |                                 ^~~
main.c:10:33: note: each undeclared identifier is reported only once for each function it appears in
main.c:16:25: error: stray '\342' in program
   16 |                  printf(<U+201C>Yes<U+201D>);
      |                         ^~~~~~~~
main.c:16:29: error: stray '\342' in program
   16 |                  printf(<U+201C>Yes<U+201D>);
      |                                    ^~~~~~~~
main.c:18:26: error: stray '\342' in program
   18 |                   printf(<U+201C>Yes<U+201D>);
      |                          ^~~~~~~~
main.c:18:30: error: stray '\342' in program
   18 |                   printf(<U+201C>Yes<U+201D>);
      |                                     ^~~~~~~~
main.c:22:26: error: stray '\342' in program
   22 |                   printf(<U+201C>No<U+201D>);
      |                          ^~~~~~~~
main.c:22:29: error: stray '\342' in program
   22 |                   printf(<U+201C>No<U+201D>);
      |                                    ^~~~~~~~
main.c:22:27: error: 'No' undeclared (first use in this function)
   22 |                   printf(“No”);
      |                           ^~
Language: C

#include<studio.h>
int main()
{
    int A,B,C;
    scanf(“%d %d %d”,&A,&B,&C);
          if(A%7==0)
          {
                 if(B%5==0 && C%5==0)
                 {
                        printf(“Yes”);
                 }
          }
         else if(A%5==0)
          {
                 if(B%5==0 && C%7==0)
                 printf(“Yes”);
                 else if(B%7==0 && C%5==0)
                  printf(“Yes”);
          }
          else
           {
                  printf(“No”);
           }
return 0;
}

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

#include<studio.h>
int main()
{
    int A,B,C;
    scanf(“%d %d %d\n”,&A,&B,&C);
          if(A%7==0)
          {
                 if(B%5==0 && C%5==0)
                 {
                        printf(“Yes\n”);
                 }
          }
         else if(A%5==0)
          {
                 if(B%5==0 && C%7==0)
                 printf(“Yes\n”);
                 else if(B%7==0 && C%5==0)
                  printf(“Yes\n”);
          }
          else
           {
                  printf(“No\n”);
           }
return 0;
}

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

#include <stdio.h>
using std::cin;
using std::cout;
void answer()
{
	int a,five=0,seven=0;
	for(int i=0;i<3;i++){
		cin>>a;
		if(a==5)
			five++;
		else
		if(a==7)
		 seven++;
	}
	if(2==five||1==seven)
		cout<<"YES";
	else
		cout<<"NO";
	}
int main(){
	answer();
	return 0;
}

Compiler output:
a.cc:2:12: error: 'cin' has not been declared in 'std'
    2 | using std::cin;
      |            ^~~
a.cc:3:12: error: 'cout' has not been declared in 'std'
    3 | using std::cout;
      |            ^~~~
a.cc: In function 'void answer()':
a.cc:8:17: error: 'cin' was not declared in this scope
    8 |                 cin>>a;
      |                 ^~~
a.cc:16:17: error: 'cout' was not declared in this scope
   16 |                 cout<<"YES";
      |                 ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout<<"NO";
      |                 ^~~~
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:2: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | {cin>>a[i];
      |  ^~~
      |  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:1: 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
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void main()
{ vector<int>a;int k=0,l=0;
   a.resize(3);
   for(int i=0;i<a.size();i++)
   cin>>a[i];
   for(int i=0;i<a.size();i++)
    { if(a[i]==5)
        k++;
      else if(a[i]==7)
       l++;}
if(k==2&&l==1)
 cout<<"YES";
else
cout<<"NO";
}
      

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
Language: C

#include<stdio.h>
int main()
{
int a[3],f=0,s=0,i,t;
for(i=0;i<3;i++)
{
scanf("%d ",&a[i])
if(a[i]==5)
f++;
else if(a[i]==7)
s++;
}
t=f+s;
if(t==3&&f==2&&s==1)
printf("YES");
else
printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:7:19: error: expected ';' before 'if'
    7 | scanf("%d ",&a[i])
      |                   ^
      |                   ;
    8 | if(a[i]==5)
      | ~~                 
main.c:10:1: error: 'else' without a previous 'if'
   10 | else if(a[i]==7)
      | ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
{ vector<int>a;int k=0,l=0;
   a.resize(3);
   for(int i=0;i<a.size();i++)
   cin>>a[i];
   for(int i=0;i<a.size();i++)
    { if(a[i]==5)
        k++;
      else if(a[i]==7)
       l++;}
if(k==2&&l==1)
 cout<<"YES";
else
cout<<"NO";
}
      

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | { vector<int>a;int k=0,l=0;
      | ^
Language: C++

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

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

#include <bits/stdc++.h>
#define endl '\n'
#define ll long long int
#define vi vector<int>
#define vll vector<ll>
#define vvi vector < vi >
#define pii pair<int,int>
#define pll pair<long long, long long>
#define mod 1000000007
#define inf 1000000000000000001;
#define all(c) c.begin(),c.end()
#define mp(x,y) make_pair(x,y)
#define mem(a,val) memset(a,val,sizeof(a))
#define eb emplace_back
#define f first
#define faster ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define s second
#define rep(i, a, b) for(int i = int(a); i <= int(b); ++i)
using namespace std;


int main(){
    faster
    int T = 1;
    while(T--){
        int n5=0;,n7=0;
        int a;
        for(int i=0; i<3; i++){
            cin>>a;
            if(a == 5) n5++;
            if(a == 7) n7++;
        }
        if(n5 == 2 && n7 == 1) cout<<"YES";
        else cout<<"NO";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:18: error: expected primary-expression before ',' token
   26 |         int n5=0;,n7=0;
      |                  ^
a.cc:26:19: error: 'n7' was not declared in this scope; did you mean 'n5'?
   26 |         int n5=0;,n7=0;
      |                   ^~
      |                   n5
Language: C++

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

int main() {
    int N, L, i;
    cin >> N;
    cin >> L;
    vector<int> A(data, data+N)
    
    for (i=0; i<N; i++){
        cin >> A[i];
    }
    sort(A.begin(), A.end());

    for(i=0; i<N; i++){
        cout << A[i];
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:29: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator+'
   10 |     vector<int> A(data, data+N)
      |                         ~~~~^~
a.cc:12:5: error: expected ',' or ';' before 'for'
   12 |     for (i=0; i<N; i++){
      |     ^~~
a.cc:12:23: error: expected ';' before ')' token
   12 |     for (i=0; i<N; i++){
      |                       ^
      |                       ;
Language: C++

//B - Iroha Loves Strings: 2Min;
//Assunto: Sort;
#include<bits/stdc++.h>
#define fi first
#define se second
#define pb push_back
#define all(x) x.begin(), x.end()
#define rall(x) x.rbegin(), x.rend()
#define loop(i, a, b) for(int i = a; i < b; i++)
#define loopBack(i, a, b) for(int i = a; i >= b; i--)
#define INF INT_MAX
#define LINF LLONG_MAX
#define DINF DBL_MAX
#define MAX 100050
#define MOD 1000000007
using namespace std;
typedef long long int ll;
typedef pair<int, int> ii;

int main() {
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    //freopen("in.txt", "r", stdin);
    //freopen("out.txt", "w", stdout);
    cin >> a >> b >> c;
    show[a]++; show[b]++; show[c]++;
    if(show[5] == 2 and show[7] == 1) cout << "YES\n";
    else cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:12: error: 'a' was not declared in this scope
   24 |     cin >> a >> b >> c;
      |            ^
a.cc:24:17: error: 'b' was not declared in this scope; did you mean 'pb'?
   24 |     cin >> a >> b >> c;
      |                 ^
      |                 pb
a.cc:24:22: error: 'c' was not declared in this scope
   24 |     cin >> a >> b >> c;
      |                      ^
a.cc:25:5: error: 'show' was not declared in this scope
   25 |     show[a]++; show[b]++; show[c]++;
      |     ^~~~
Language: C++

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ABC042A
{
    class Program
    {
        static void Main(string[] args)
        {
            int a, b, c;
            var word = Console.ReadLine().Split(' ');
            a = int.Parse(word[0]);
            b = int.Parse(word[1]);
            c = int.Parse(word[2]);
            if(a==5&&b==7&&c==5||a==7&&b==5&&c==5||a==5&&b==5&&c==7)
                Console.WriteLine("Yes");
            else
                Console.WriteLine("No");

                

            Console.ReadKey();
        }
    }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Collections.Generic;
      |       ^~~~~~
a.cc:3:7: error: expected nested-name-specifier before 'System'
    3 | using System.Linq;
      |       ^~~~~~
a.cc:4:7: error: expected nested-name-specifier before 'System'
    4 | using System.Text;
      |       ^~~~~~
a.cc:5:7: error: expected nested-name-specifier before 'System'
    5 | using System.Threading.Tasks;
      |       ^~~~~~
a.cc:11:26: error: 'string' has not been declared
   11 |         static void Main(string[] args)
      |                          ^~~~~~
a.cc:11:35: error: expected ',' or '...' before 'args'
   11 |         static void Main(string[] args)
      |                                   ^~~~
a.cc:27:6: error: expected ';' after class definition
   27 |     }
      |      ^
      |      ;
a.cc: In static member function 'static void ABC042A::Program::Main(int*)':
a.cc:14:13: error: 'var' was not declared in this scope
   14 |             var word = Console.ReadLine().Split(' ');
      |             ^~~
a.cc:15:17: error: expected primary-expression before 'int'
   15 |             a = int.Parse(word[0]);
      |                 ^~~
a.cc:16:17: error: expected primary-expression before 'int'
   16 |             b = int.Parse(word[1]);
      |                 ^~~
a.cc:17:17: error: expected primary-expression before 'int'
   17 |             c = int.Parse(word[2]);
      |                 ^~~
a.cc:19:17: error: 'Console' was not declared in this scope
   19 |                 Console.WriteLine("Yes");
      |                 ^~~~~~~
a.cc:21:17: error: 'Console' was not declared in this scope
   21 |                 Console.WriteLine("No");
      |                 ^~~~~~~
a.cc:25:13: error: 'Console' was not declared in this scope
   25 |             Console.ReadKey();
      |             ^~~~~~~
Language: C++

#include<iostream>
#include<alogrithm>
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\n";
  else
    cout << "No\n";
  return 0;
}


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

#include<iostream>
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\n";
  else
    cout << "No\n";
  return 0;
}


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

import java.util.*

fun main(args:Array<String>){
    val a = readLine()!!.split(" ").map{it.toInt()}.sorted()
    println(if(a[0] == 5 && a[1] == 5 && a[2] == 7) "YES" else "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'
Language: C++

# AtCode 042

if gets.split(' ').map(&:to_i).sort == [5, 5, 7]
  puts "YES"
else
  puts "NO"
end
  


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #AtCode
    1 | # AtCode 042
      |   ^~~~~~
a.cc:3:1: error: expected unqualified-id before 'if'
    3 | if gets.split(' ').map(&:to_i).sort == [5, 5, 7]
      | ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool check_digit(int arr[], int, int);
int main(){
        int  K;
        string N;
        cin >> N >> K;
        int *arr = new int[K];
        int num = 0;
        int c, flag = 0;
        for(int i = 0; N[i] != '\0'; i++){
                c = (N[i] - '0')*pow(10,N.size()-i-1);
                num = num + c;
        }
        cout << num;
        for(int i = 0; i < K; i++){
                cin >> arr[i];
        }
        int digit;
        for(int i = num; ; i++){
                for(int j = i; j != 0; j /= 10){
                        digit = j%10;
                        if(!check_digit(arr, K, digit)){
                                break;
                        }
                        if(j < 10)
                                flag = 1;

                }
                if(flag == 1){
                        cout << i;
                        break;
                }
        }
                                            


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

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

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

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, N) for (int i = 0; i < (N); i++)
#define all(a) (a).begin(), (a).end()
#define pb push_back
 
using ll = long long;
using i_i = tuple<int, int>;

int main(){
    vector<int> a(3);
    rep(i, 3) cin >> a[i];
    bool x =  ((a[0]==5 && a[1] == 5 && a[2] == 7)||(a[0]==5 && a[1] == 7 && a[2] == 5)||(a[0]==7 && a[1] == 5 && a[2] == 5));
    cout << (x ? "YES" : "NO") << endl;
    return;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   16 |     return;
      |     ^~~~~~
Language: C++

//UTF-8でコーディングしています
#include <bits/stdc++.h>
using namespace std;

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

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

#include<iostream>
using namespace std;

int main(){
int a,b,c;
  int t=0;
  
  cin >> a >> b >> c;
  
  if(a>b){
    t=a;
    a=b;
    b=t;
  }
  if(b>c){
    t=b;
    b=c;
    c=t;
  }
  if(a>b){
    t=a;
    a=b;
    b=t;
  }
  
  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:32:4: error: expected '}' at end of input
   32 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	for(int i = 0; i < 3 ; i++){
        	String input = list.get(i);
          	System.out.print(input);
			
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:22: error: cannot find symbol
    	System.out.println(ans);
    	                   ^
  symbol:   variable ans
  location: class Main
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	for(int i = 0; i < 3 ; i++){
        	String input = list.get(i);
          	System.out.print(input)
			
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:19: error: ';' expected
          	System.out.print(input)
          	                       ^
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	for(int i = 0; i < 3 ; i++){
        	String input = list.get(i);
          	String ans = ans + input;
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:21: error: cannot find symbol
    	System.out.println(ans);
    	                   ^
  symbol:   variable ans
  location: class Main
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	String ans;
      	for(int i = 0; i < 3 ; i++){
        	String input = list.get(i);
          	ans = ans + input;
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:20: error: variable ans might not have been initialized
          	ans = ans + input;
          	      ^
Main.java:22: error: variable ans might not have been initialized
    	System.out.println(ans);
    	                   ^
2 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	String ans;
      	for(int i = 0; 2 ; i++){
        	String input = list.get(i);
          	ans = ans + input;
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:18: error: incompatible types: int cannot be converted to boolean
      	for(int i = 0; 2 ; i++){
      	               ^
1 error
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
    	int N = Integer.parseInt(str);
      	str = scan.next();
      	int L = Integer.parseInt(str);
      	ArrayList<String> list = new ArrayList<>();
      	
      	for(int i = 0; i < N; i++){
        	String input = scan.next();
          	list.add(input);
        }
      	
      	Collections.sort(list);
      	String ans;
      	for(i = 0; 2 ; i++){
        	input = list.get(i);
          	ans = ans + input;
        }
    	System.out.println(ans);
    }
}

Compiler output:
Main.java:18: error: cannot find symbol
      	for(i = 0; 2 ; i++){
      	    ^
  symbol:   variable i
  location: class Main
Main.java:18: error: incompatible types: int cannot be converted to boolean
      	for(i = 0; 2 ; i++){
      	           ^
Main.java:18: error: cannot find symbol
      	for(i = 0; 2 ; i++){
      	               ^
  symbol:   variable i
  location: class Main
Main.java:19: error: cannot find symbol
        	input = list.get(i);
        	^
  symbol:   variable input
  location: class Main
Main.java:19: error: cannot find symbol
        	input = list.get(i);
        	                 ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
          	ans = ans + input;
          	            ^
  symbol:   variable input
  location: class Main
6 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 == "7"){
        	if (num_2 == "5" && num_3 == "5"){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 == 7){
        	if (num_1 == 5 && num_3 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 == 7){
        	if (num_2 == 5 && num_1 == 5){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:11: error: bad operand types for binary operator '=='
      	if (num_1 == "7"){
      	          ^
  first type:  int
  second type: String
Main.java:12: error: bad operand types for binary operator '=='
        	if (num_2 == "5" && num_3 == "5"){
        	          ^
  first type:  int
  second type: String
Main.java:12: error: bad operand types for binary operator '=='
        	if (num_2 == "5" && num_3 == "5"){
        	                          ^
  first type:  int
  second type: String
3 errors
Language: Java

import java.util.*;
class Main{
	public static void main(String[] args){
    	Scanner scan = new Scanner(System.in);
      	String str = scan.next();
      	int num_1 = Integer.parseInt(str);
      	String str = scan.next();
      	int num_2 = Integer.parseInt(str);
      	String str = scan.next();
      	int num_3 = Integer.parseInt(str);
      	if (num_1 = "7"){
        	if (num_2 = "5" && num_3 = "5"){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_2 = "7"){
        	if (num_1 = "5" && num_3 = "5"){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }else if (num_3 = "7"){
        	if (num_2 = "5" && num_1 = "5"){
            	System.out.println("YES");
            }else{
            	System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:7: error: variable str is already defined in method main(String[])
      	String str = scan.next();
      	       ^
Main.java:9: error: variable str is already defined in method main(String[])
      	String str = scan.next();
      	       ^
Main.java:11: error: incompatible types: String cannot be converted to int
      	if (num_1 = "7"){
      	            ^
Main.java:11: error: incompatible types: int cannot be converted to boolean
      	if (num_1 = "7"){
      	          ^
Main.java:12: error: bad operand types for binary operator '&&'
        	if (num_2 = "5" && num_3 = "5"){
        	                ^
  first type:  String
  second type: int
Main.java:12: error: incompatible types: int cannot be converted to boolean
        	if (num_2 = "5" && num_3 = "5"){
        	          ^
Main.java:17: error: incompatible types: String cannot be converted to int
        }else if (num_2 = "7"){
                          ^
Main.java:17: error: incompatible types: int cannot be converted to boolean
        }else if (num_2 = "7"){
                        ^
Main.java:18: error: bad operand types for binary operator '&&'
        	if (num_1 = "5" && num_3 = "5"){
        	                ^
  first type:  String
  second type: int
Main.java:18: error: incompatible types: int cannot be converted to boolean
        	if (num_1 = "5" && num_3 = "5"){
        	          ^
Main.java:23: error: incompatible types: String cannot be converted to int
        }else if (num_3 = "7"){
                          ^
Main.java:23: error: incompatible types: int cannot be converted to boolean
        }else if (num_3 = "7"){
                        ^
Main.java:24: error: bad operand types for binary operator '&&'
        	if (num_2 = "5" && num_1 = "5"){
        	                ^
  first type:  String
  second type: int
Main.java:24: error: incompatible types: int cannot be converted to boolean
        	if (num_2 = "5" && num_1 = "5"){
        	          ^
14 errors
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> X(3);
  int count5 = 0;
  int count7 = 0;
  for (int i = 0; i < 3; i++) {
    cin >> X.at(i);
  }
  for (int i = 0; i < 3; i++) {
    if (X(i) == 5) {
      count5++;
    }
    if (X(i) == 7) {
      count7++;
    }
  }
  if (count5 == 2 && count7 == 1) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: no match for call to '(std::vector<int>) (int&)'
   12 |     if (X(i) == 5) {
      |         ~^~~
a.cc:15:10: error: no match for call to '(std::vector<int>) (int&)'
   15 |     if (X(i) == 7) {
      |         ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> X(3);
  int count5 = 0;
  int count7 = 0;
  for (int i = 0; i < 3; i++) {
    cin >> X(i);
  }
  for (int i = 0; i < 3; i++) {
    if (X.at(i) == 5) {
      count5++;
    }
    if (X.at(i) == 7) {
      count7++;
    }
  }
  if (count5 == 2 && count7 == 1) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
    9 |     cin >> X(i);
      |            ~^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  vector<int> X(3);
  int count5 = 0;
  int count7 = 0;
  for (int i = 0; i < 3; i++) {
    cin >> X(i);
  }
  for (int i = 0; i < 3; i++) {
    if (X(i) == 5) {
      count5++;
    }
    if (X(i) == 7) {
      count7++;
    }
  }
  if (count5 == 2 && count7 == 1) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: no match for call to '(std::vector<int>) (int&)'
    9 |     cin >> X(i);
      |            ~^~~
a.cc:12:10: error: no match for call to '(std::vector<int>) (int&)'
   12 |     if (X(i) == 5) {
      |         ~^~~
a.cc:15:10: error: no match for call to '(std::vector<int>) (int&)'
   15 |     if (X(i) == 7) {
      |         ~^~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a, b, c;
    cin >> a >> b >>c;
     string s; 
    if(a == 5 && b == 7 && c == 5){
      s = "YES" }
    else {
      s = "NO" }
    // 文字列の入力
    cout << s << endl;
    return 0;
}
#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a, b, c;
    cin >> a >> b >>c;
     string s; 
    if(a == 5 && b == 7 && c == 5){
      s = "YES";
    }
    else {
      s = "NO";
    }
    // 文字列の入力
    cout << s << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |       s = "YES" }
      |                ^~
      |                ;
a.cc:12:15: error: expected ';' before '}' token
   12 |       s = "NO" }
      |               ^~
      |               ;
a.cc: At global scope:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a, b, c;
    cin >> a >> b >>c;
     string s; 
    if(a == 5 && b == 7 && c == 5){
      s = "YES" }
    else {
      s = "NO" }
    // 文字列の入力
    cout << s << endl;
    return 0;
}
#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int mojisu[3];
    cin >> mojisu[0] >> mojisu[1] >>mojisu[2];
  	int gomoji = 0;
  	int nanamoji = 0;
	for(int i=0;i<3;i++){
      if(mojisu[i] == 5) gomoji++;
      if(mojisu[i] == 7) nanamoji++;
    }
  	string s;
    if(gomoji == 2 && nanamoji == 1){
      s = "YES" }
    else {
      s = "NO" }
    // 文字列の入力
    cout << s << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |       s = "YES" }
      |                ^~
      |                ;
a.cc:12:15: error: expected ';' before '}' token
   12 |       s = "NO" }
      |               ^~
      |               ;
a.cc: At global scope:
a.cc:19:5: error: redefinition of 'int main()'
   19 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:32:16: error: expected ';' before '}' token
   32 |       s = "YES" }
      |                ^~
      |                ;
a.cc:34:15: error: expected ';' before '}' token
   34 |       s = "NO" }
      |               ^~
      |               ;
Language: C++

#include<iostream>
using namespace std;
int main()
{
    // 整数の入力
    int a, b, c;
    cin >> a >> b >>c;
     string s; 
    if(a == 5 && b == 7 && c == 5){
      s = "YES" }
    else {
      s = "NO" }
    // 文字列の入力
    cout << s << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: expected ';' before '}' token
   10 |       s = "YES" }
      |                ^~
      |                ;
a.cc:12:15: error: expected ';' before '}' token
   12 |       s = "NO" }
      |               ^~
      |               ;
Language: C

include<stdio.h>

int main(void){
  int x[3];

  for(int i = 0;i < 3;i++){
    scanf("%d",&x[i]);
  }

  if(x[0]*x[1]*x[2] == 175){
    printf("YES");
  }else{
    printf("NO");
  }

  return 0;
}


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

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'map' was not declared in this scope
    6 |   map<int,int>M;
      |   ^~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note:   'std::map'
  102 |     class map
      |           ^~~
/usr/include/c++/14/map:89:13: note:   'std::pmr::map'
   89 |       using map
      |             ^~~
a.cc:6:7: error: expected primary-expression before 'int'
    6 |   map<int,int>M;
      |       ^~~
a.cc:7:3: error: 'M' was not declared in this scope
    7 |   M[5]=0;
      |   ^
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<< "YES" << endl;
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     cout<< "YES" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout << "NO" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout << "NO" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:97: error: 'morning' was not declared in this scope
    8 |   if ((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (a == 7 && b == 5 && c == morning 5)) {
      |                                                                                                 ^~~~~~~
a.cc:8:104: error: expected ')' before numeric constant
    8 |   if ((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (a == 7 && b == 5 && c == morning 5)) {
      |                                                                       ~                                ^~
      |                                                                                                        )
a.cc:10:4: error: expected ')' before 'else'
   10 |   } else {
      |    ^~~~~
      |    )
a.cc:8:6: note: to match this '('
    8 |   if ((a == 5 && b == 5 && c == 7) || (a == 5 && c == 5 && b == 7) || (a == 7 && b == 5 && c == morning 5)) {
      |      ^
Language: C

clude <stdio.h>
 
int main(){
    int a,b,c;
    int answer;
    answer=0;
 
    scanf("%d %d %d",&a,&b,&c);
 
    if(a==7){
        if(b==5&&c==5) answer =1;
        
    }
 
    else if(b==7){
        if(a==5&&c==5) answer =1;
        
    }
    else if(c==7){
        if(b==5&&a==5) answer =1;
        
    }
 
 
 
    if(answer==1){
     printf("YES");
    }
    else
    {
    printf("No");
    }
    
 
        
 
 
 
 
    return 0;
 
}

Compiler output:
main.c:1:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | clude <stdio.h>
      |       ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
    int a[3] = {0, 0, 0};

    cin >> a[0] >> b[0] >> c[0];

    int fn = 0;
    int sn = 0;

    for(int i = 0; i < 3; i++)
    {
        if(a[i] == 5)
        {
            fn++;
            if(fn > 2)
            {
                cout << "NO" << endl;
                return 0;
            }
        }
        else if(a[i] == 7)
        {
            sn++;
            if(sn > 1)
            {
                cout << "NO" << endl;
            }
        }
        else
        {
            cout << "NO" << endl;
            return 0;
        }
    }

    cout << "YES" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: 'b' was not declared in this scope
    7 |     cin >> a[0] >> b[0] >> c[0];
      |                    ^
a.cc:7:28: error: 'c' was not declared in this scope
    7 |     cin >> a[0] >> b[0] >> c[0];
      |                            ^
Language: C++

    #include<bits/stdc++.h>
    using namespaces 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:2:11: error: expected nested-name-specifier before 'namespaces'
    2 |     using namespaces std;
      |           ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |       cin>>a>>b>>c;
      |       ^~~
      |       std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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<<"NO";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

    #include<iostream>
    using namespaces 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:2:11: error: expected nested-name-specifier before 'namespaces'
    2 |     using namespaces std;
      |           ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |       cin>>a>>b>>c;
      |       ^~~
      |       std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         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:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         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<<"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 namespaces 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:2:7: error: expected nested-name-specifier before 'namespaces'
    2 | using namespaces std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<"NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~