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

#include<stdio.h>
main(){
	int A,B,C;
	scanf("%d%d%d",&A&B&C);
	if(A==5||B==5||C==7)
		printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
	if(A==5||B==7||C==5)
		printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
	if(A==7||B==5||C==5)
		printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
	else
	printf("No");
	
	
	
} 

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d%d%d",&A&B&C);
      |                        ~~^
      |                        |
      |                        int *
main.c:6:112: error: 'a' undeclared (first use in this function)
    6 |                 printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
      |                                                                                                                ^
main.c:6:112: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:114: error: 'b' undeclared (first use in this function)
    6 |                 printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
      |                                                                                                                  ^
main.c:6:116: error: 'c' undeclared (first use in this function)
    6 |                 printf("Yes Using three phrases of length %d, %d and %d, it is possible to construct a Haiku.",a,b,c);
      |                                                                                                                    ^
Language: C

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

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:26: error: invalid operands to binary & (have 'int *' and 'int')
    4 |         scanf("%d%d%d",&A&B&C);
      |                        ~~^
      |                        |
      |                        int *
Language: C

#include <stdio.h>

int main(void)
{
  int a;
  int five = 2, seven = 1;
  int i;
  for (i = 0; i < 3; i+)
  {
    scanf("%d", &a);
    if (a == 5) five--;
    else if(a == 7) seven--;
  }
  if (!five && !seven) printf("YES\n");
  else printf("NO\n");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:24: error: expected expression before ')' token
    8 |   for (i = 0; i < 3; i+)
      |                        ^
Language: C

#include<stdio.h>


int main(){
  int a, b, c;
  
  scanf(%d %d %d,&a,&b,&c);
  if(a = 5 ){
    printf("YES");
  }
 
  reeturn 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before '%' token
    7 |   scanf(%d %d %d,&a,&b,&c);
      |         ^
main.c:12:3: error: 'reeturn' undeclared (first use in this function)
   12 |   reeturn 0;
      |   ^~~~~~~
main.c:12:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:10: error: expected ';' before numeric constant
   12 |   reeturn 0;
      |          ^~
      |          ;
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main()
{
  int num=0,flag1=0,flag2=0;
  
  vector<int> a;
  for(int i=0;i<3<i++)
  {
    cin>>num;
    a.push_back(num);
  }
  for(auto it=a.begin();it<a.end();it++)
  {
    if(*it==5)
      flag1++;
    else if(*it==7)
      flag2++;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:22: error: expected ';' before ')' token
    9 |   for(int i=0;i<3<i++)
      |                      ^
      |                      ;
Language: Java

import java.util.*;

public class Main{
	Scanner s=new Scanner(System.in);
	public static void main(String [] args){
		int a,b,c;
		a=s.nextInt();
		b=s.nextInt();
		c=s.nextInt();
		int fiv=0,sev=0;
		if(a==5)fiv++;
		if(a==7)sev++;
		if(b==5)fiv++;
		if(b==7)sev++;
		if(c==5)fiv++;
		if(c==7)sev++;
		if(fiv==2&&sev==1)System.out.println("YES");
		else System.out.println("NO");
	}
}

Compiler output:
Main.java:7: error: non-static variable s cannot be referenced from a static context
		a=s.nextInt();
		  ^
Main.java:8: error: non-static variable s cannot be referenced from a static context
		b=s.nextInt();
		  ^
Main.java:9: error: non-static variable s cannot be referenced from a static context
		c=s.nextInt();
		  ^
3 errors
Language: Java

import java.util.*;

public class Main{
	Scanner s=new Scanner(System.in);
	public static void main(String [] args){
		int a,b,c;
		a=s.nextInt(),b=s.nextInt(),c=s.nextInt();
		int fiv=0,sev=0;
		if(a==5)fiv++;
		if(a==7)sev++;
		if(b==5)fiv++;
		if(b==7)sev++;
		if(c==5)fiv++;
		if(c==7)sev++;
		if(fiv==2&&sev==1)System.out.println("YES");
		else System.out.println("NO");
	}
}

Compiler output:
Main.java:7: error: ';' expected
		a=s.nextInt(),b=s.nextInt(),c=s.nextInt();
		             ^
Main.java:7: error: ';' expected
		a=s.nextInt(),b=s.nextInt(),c=s.nextInt();
		                           ^
2 errors
Language: Java

import java.util.*;
public class Main{
  public static void main(String[]args){
    Scanner sc=new Scanner(System.in);
    int A=sc.nextInt();
    int B=sc.nextInt();
    int C=sc.nextInt();
    
    if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:9: error: bad operand types for binary operator '&&'
    if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){
                             ^
  first type:  boolean
  second type: int
Main.java:9: error: bad operand types for binary operator '&&'
    if(A==5&&B==5&&C==7||A==5&&B=7&&C==5||A==7&&B==5&&C==5){
                                  ^
  first type:  int
  second type: boolean
2 errors
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";
}
else if(A==5&&B==7&&c==5)
{
cout<<"YES";}
else if(A==7&&B==5&&C==5)
{
cout<<"YES";
}
else
{
cout<<"NO";
}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'c' was not declared in this scope
    7 | if(A==5&&B==5&&c==7)
      |                ^
Language: C++

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

Compiler output:
a.cc:2:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    2 | main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:15: error: lvalue required as left operand of assignment
    6 |         if(a*b*c = 175)
      |            ~~~^~
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
    #define ll long long int
    #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int32_t main()
    {
        ll i,j,k,l,n,m,q,t,five=0,seven=0;
        cin>>a>>b>>c;
      if(a==5||b==5||c==5)
      {
      five++;
      }
      if(c==5)
      {
      five++;
      }
      if(b==5)
      {
      five++;
      }
       seven=3-five;
      if(five==2&&seven==1){
      cout<<"YES";
      }
      else
      {
      cout<< "NO";
      }

       return 0;
    }






Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |              ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |                 ^
a.cc:9:20: error: 'c' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |                    ^
Language: C++

    #include <bits/stdc++.h>
    using namespace std;
    #define ll long long int
    #define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

    int32_t main()
    {
        ll i,j,k,l,n,m,q,t,five=0,seven=0;
        cin>>a>>b>>c;
      if(a==5||b==5||c==5)
      {
      five++;
      }
       if(a==7||b==7||c==7)
      {
      seven++;
      }
      if(five==2&&seven==1){
      cout<<"YES";
      }
      else
      {
      cout<< "NO";
      }

       return 0;
    }






Compiler output:
a.cc: In function 'int32_t main()':
a.cc:9:14: error: 'a' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |              ^
a.cc:9:17: error: 'b' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |                 ^
a.cc:9:20: error: 'c' was not declared in this scope
    9 |         cin>>a>>b>>c;
      |                    ^
Language: C++

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

int main(){
 int A,B,C;
  cin>>A>>B>>C;
  int cincos=0,siete=0;
  if(A==5) cincos++
  if(A==7) siete++;
  if(B==5) cincos++;
  if(B==7) siete++;
  if(C==5) cincos++;
  if(C==7) siete++;
  
  if(cincos==2&&siete==1)
    cout<<"YES\n";
  else
    cout<<"NO\n";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: expected ';' before 'if'
    8 |   if(A==5) cincos++
      |                    ^
      |                    ;
    9 |   if(A==7) siete++;
      |   ~~
Language: C++

 #include<bits/stdc++.h>
#define int long long int 
#define fi first
#define se second
#define pb push_back
#define mp make_pair
#define pii pair<int,int>
#define vii vector<int>
#define mii map<int,int>
#define mod 1000000007
#define IOS std::ios::sync_with_stdio(false); cin.tie(NULL);cout.tie(NULL);
#define endl "\n"
#define pqmin priority_queue<int,vector<int>,greater<int>>
#define pqmax priority_queue<int>
using namespace std;
int32_t main()
{
    IOS;
    int a[3];
    cin>>a[0]>>a[1]>>a[2];
    sort(a,a+n);
    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 'int32_t main()':
a.cc:21:14: error: 'n' was not declared in this scope
   21 |     sort(a,a+n);
      |              ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:11: error: 'YES' was not declared in this scope
   15 |     cout<<YES<<endl;
      |           ^~~
a.cc:16:14: error: 'NO' was not declared in this scope
   16 |   else cout<<NO<<endl;
      |              ^~
Language: C

#include<stdio.h>
int main(){
	int a,b,c,max;
	scanf("a b c",&a,&b,&c);
	if(a>b&&a>c)
		max=a;
	if(b>a&&b>c)
		max=b;
	if(c>a&&c>b)
		max=c;
	if(max==7)
	{
		if(a*b*c==175&&a+b+c=17)
			printf("yes");
		else
			printf("no");
	}
	else
		printf("no");
}

Compiler output:
main.c: In function 'main':
main.c:13:37: error: lvalue required as left operand of assignment
   13 |                 if(a*b*c==175&&a+b+c=17)
      |                                     ^
Language: C

#include<stdio.h>
int main(){
	int a,b,c;
	scanf("a b c",&a,&b,&c);
	if(a>b&&a>c)
		max=a;
	if(b>a&&b>c)
		max=b;
	if(c>a&&c>b)
		max=c;
	if(max==7)
	{
		if(a*b*c==175&&a+b+c=17)
			printf("yes");
		else
			printf("no");
	}
	else
		printf("no");
}

Compiler output:
main.c: In function 'main':
main.c:6:17: error: 'max' undeclared (first use in this function)
    6 |                 max=a;
      |                 ^~~
main.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:37: error: lvalue required as left operand of assignment
   13 |                 if(a*b*c==175&&a+b+c=17)
      |                                     ^
Language: C++

//AC

#include<stdio.h>
#include<string.h>
int main()
{
	char a[10]={};
	int c,i,cnt=0,leap=0;
	while(gets(a)){
		c=strlen(a);
		for(i=0;i<c;i++){
			if(a[i]==' '){
				continue; 
			}else if(a[i]=='5'){
				cnt++;
			}else if(a[i]=='7'){
				leap++;
			}
		}if(cnt==2&&leap==1){
			printf("YES\n");
		}else{
			printf("NO\n");
		}cnt=0;leap=0;
	}
}

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

#include<iostream>
#include<string>
#include<algorithm>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected primary-expression before '==' token
   12 |   else if(a==7 && ==5 && c==5) cout<<"YES";
      |                   ^~
Language: C++

#include<stdio.h>
#include<string.h>
int main()
{
	char a[10]={};
	int c,i,cnt=0,leap=0;
	while(gets(a)){
		c=strlen(a);
		for(i=0;i<c;i++){
			if(a[i]==' '){
				continue; 
			}else if(a[i]=='5'){
				cnt++;
			}else if(a[i]=='7'){
				leap++;
			}
		}if(cnt==2&&leap==1){
			printf("YES\n");
		}else{
			printf("NO\n");
		}cnt=0;leap=0;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |         while(gets(a)){
      |               ^~~~
      |               getw
Language: C++

#include<stdio.h>

int main(void)
{
  int A,B,C;
  
  if(A==5 & B==5 & C==7)
    puts("YES");
  else if(A==5 & B==7 & C==5)
    puts("YES");
  else if(A==7 & B==5 & C==5)
    puts("YES");
  else
    puts("NO);
  
  return 0;
}

Compiler output:
a.cc:14:10: warning: missing terminating " character
   14 |     puts("NO);
      |          ^
a.cc:14:10: error: missing terminating " character
   14 |     puts("NO);
      |          ^~~~~
a.cc: In function 'int main()':
a.cc:16:3: error: expected primary-expression before 'return'
   16 |   return 0;
      |   ^~~~~~
Language: C

#include<stdio.h>

int main(void)
{
  int A,B,C;
  
  if(A==5 & B==5 & C==7)
    puts("YES");
  else if(A==5 & B==7 & C==5)
    puts("YES");
  else if(A==7 & B==5 & C==5)
    puts("YES");
  else
    puts("NO);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:10: warning: missing terminating " character
   14 |     puts("NO);
      |          ^
main.c:14:10: error: missing terminating " character
   14 |     puts("NO);
      |          ^~~~~
main.c:16:3: error: expected expression before 'return'
   16 |   return 0;
      |   ^~~~~~
main.c:16:12: error: expected ';' before '}' token
   16 |   return 0;
      |            ^
      |            ;
   17 | }
      | ~
Language: C

#include<stdio.h>

int main(void)
{
  int A,B,C;
  
  if(A==5 & B==5 & C==7)
    puts("YES");
  else if(A==5 & B==7 & C==5)
    puts("YES");
  else if(A==7 & B==5 & C==5)
    puts("YES;
  else
    puts("NO);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:10: warning: missing terminating " character
   12 |     puts("YES;
      |          ^
main.c:12:10: error: missing terminating " character
   12 |     puts("YES;
      |          ^~~~~
main.c:13:3: error: expected expression before 'else'
   13 |   else
      |   ^~~~
main.c:14:10: warning: missing terminating " character
   14 |     puts("NO);
      |          ^
main.c:14:10: error: missing terminating " character
   14 |     puts("NO);
      |          ^~~~~
main.c:17:1: error: expected declaration or statement at end of input
   17 | }
      | ^
Language: C++

#include<iostream>

using namespace std;

int soat3(int& a,int& b,int& c){
  if(a<b)swap(a,b);
  if(a<c)swap(a,c);
  if(b<c)swap(b,c);
}

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

  soat3(a,b,c);

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

Compiler output:
a.cc: In function 'int soat3(int&, int&, int&)':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
a.cc: In function 'int main()':
a.cc:18:5: error: 'cou' was not declared in this scope
   18 |     cou << "YES" << endl;
      |     ^~~
Language: Java

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

    if(a==5||b==5||c==5){
      if(a==7||b==7||c==7){
        if(a+b+c==17){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
      }else{
        System.out.println("No");
      }
    }else{
      System.out.println("No");
    }
  }
}


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

#include <algorithm>
#include <array>
#include <assert.h>
#include <chrono>
#include <bitset>
#include <deque>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <numeric>
#include <random>
#include <queue>
#include <set>
#include <stack>
#include <unordered_map>
#include <unordered_set>
#include <vector>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<double> vd;
typedef vector<bool> vb;
typedef vector<string> vs;
typedef vector<ld> vld;
typedef vector<vector<int>> vvi;
typedef vector<ll> vl;
typedef vector<vector<ll>> vvl;
typedef vector<vector<ld>> vvld;
typedef pair <int, int> pii;
typedef pair <ll, ll> pll;
typedef vector<pll> vpll;

#ifdef OLBOEB
mt19937 rnd(228 + 1488 + 238 + 24111997 % 322);
#else
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
#endif

void print_time() {
#ifdef OLBOEB
    cout.flush();
    cerr << "\ntime: " << clock() * 1.0 / CLOCKS_PER_SEC << endl;
#endif
}

#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define sz(x) ((ll)(x).size())
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

template<class T1, class T2>
ostream& operator<< (ostream &out, pair<T1, T2> pair) { return out << "(" << pair.first << ", " << pair.second << ")";}
template<class T> ostream& operator<<(ostream& out, vector<T> vec) { out<<"("; for (auto& v: vec) out<<v<<", "; return out<<")"; }
template<class T> ostream& operator<<(ostream& out, set<T> vec) { out<<"("; for (auto& v: vec) out<<v<<", "; return out<<")"; }
template<class L, class R> ostream& operator<<(ostream& out, map<L, R> vec) { out<<"("; for (auto& v: vec) out<<v<<", "; return out<<")"; }




int main() {
    cout << fixed << setprecision(20);
    ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0);

    vl a(3);
    for (ll i = 0; i < 3; ++i) {
        cin >> a[i];
    }
    sort(all(a));
    cout << (a == {5, 5, 7} ? "YES" : "NO") << endl;

    print_time();
    return 0;
}


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

package ABC_B;

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

public class IrohaLovesStrings {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int l = sc.nextInt();
		String[] array = new String[n];
		
		for(int i =0; i < n; i++) {
			array[i] = sc.next();
		}
		Arrays.sort(array);
		
		for(int i = 0; i < n; i++) {
			System.out.print(array[i]);
		}
		
	}
}


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

#include<stdio.h>
int main(){
    int i,n[4],m;
    for(i=0;i<3;i++){
        scanf("%d",&n[i]);
        if(n[i]!==7||5)m++;
    }
    if(m==0&&n[0]+n[1]+n[2]==19)printf("Yes");
    else printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected expression before '=' token
    6 |         if(n[i]!==7||5)m++;
      |                  ^
Language: C

#include<stdio.h>
int main(){
    int i,a[],n;
    for(i=0;i<3;i++){
        scanf("%d",&a[i]);
        if(a[i]!=7||5)n++;
    }
    if(n==0&&a[0]+a[1]+a[2]==19)printf("Yes");
    else printf("No");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:11: error: array size missing in 'a'
    3 |     int i,a[],n;
      |           ^
Language: C++

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

int main() {
  stirng s;
  cin >> s; 
  int a=0,b=0;
  for(int i=0;i<3;i++){
    if(s.at(i) == '5'){
      a++;
    }
    if(s.at(i) == '7'){
      b++;
    }
  }
  if(a == 2 && b == 1){
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'stirng' was not declared in this scope
    5 |   stirng s;
      |   ^~~~~~
a.cc:6:10: error: 's' was not declared in this scope
    6 |   cin >> s;
      |          ^
Language: Java

import java.util.*;

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

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


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

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>

int orde(const void* a, const void* b){

    //const char *x = a, *y = b;
    return strcmp(a,b);

    /*if (x[0] < y[0])
        return -1;
    if (x[0] > y[0])
        return 1;

    return 0;
*/
}

int main(){

int n, l;
scanf("%d %d", &n, &l );
char s[n][l+1];
for (int i = 0; i < n; i++)
    scanf(" %s", s[i]);

qsort(s,n,sizeof(s[0]), orde);

for (int i = 0; i < n; i++)
    printf("%s", s[i]);

printf("\n");

return 0;
}


Compiler output:
a.cc: In function 'int orde(const void*, const void*)':
a.cc:9:19: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive]
    9 |     return strcmp(a,b);
      |                   ^
      |                   |
      |                   const void*
In file included from a.cc:4:
/usr/include/string.h:156:32: note:   initializing argument 1 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                    ~~~~~~~~~~~~^~~~
a.cc:9:21: error: invalid conversion from 'const void*' to 'const char*' [-fpermissive]
    9 |     return strcmp(a,b);
      |                     ^
      |                     |
      |                     const void*
/usr/include/string.h:156:50: note:   initializing argument 2 of 'int strcmp(const char*, const char*)'
  156 | extern int strcmp (const char *__s1, const char *__s2)
      |                                      ~~~~~~~~~~~~^~~~
Language: C

#include <stdio.h>
int main(){
	int cin = 0, set = 0, readed;
	if(int i = 0; i < 3; ++i){
		scanf("%d", &readed);
		if(readed == 5) cin++;
		if(readed == 7) set++;
	}
	if(cin == 2 && set == 1){
		printf("YES");
	}else printf("NO");
}

Compiler output:
main.c: In function 'main':
main.c:4:12: error: expected expression before 'int'
    4 |         if(int i = 0; i < 3; ++i){
      |            ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: expected primary-expression before '>' token
    6 |   cin>>A>>B>>>C;
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'class std::vector<int>' has no member named 'sort'
    9 |   a=a.sort(a.begin( ),a.end( ));
      |       ^~~~
a.cc:10:23: error: lvalue required as left operand of assignment
   10 |   if(a[1]=5 && a[2]=5 && a[3]=7){
Language: Java

public class Main {

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

		Main solver = new Main();

		System.out.println(solver.solve(input));

	}


	public String solve(String input) {

		String answer;
		String abc[] = input.split(" ");
		int five = 0;
		int seven = 0;
		int other = 0;

		for(String n :abc) {
			Integer i = new Integer(n);
			if( i== 5) {
				five++;
			} else if(i == 7) {
				seven++;
			} else {
				other++;
			}
		}

		if(five == 2 && seven == 1) {
			answer = "YES";
		} else {
			answer = "NO";
		}
		return answer;
	}

}

Compiler output:
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner (System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		Scanner scanner = new Scanner (System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
Main.java:23: warning: [removal] Integer(String) in Integer has been deprecated and marked for removal
			Integer i = new Integer(n);
			            ^
2 errors
1 warning
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:5: error: 'cin' was not declared in this scope
    4 |     cin >> A >> B >> C;
      |     ^~~
a.cc:6:9: error: 'cout' was not declared in this scope
    6 |         cout << "YES" << endl;
      |         ^~~~
a.cc:6:26: error: 'endl' was not declared in this scope
    6 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout << "YES" << endl;
      |         ^~~~
a.cc:8:26: error: 'endl' was not declared in this scope
    8 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope
   10 |         cout << "YES" << endl;
      |         ^~~~
a.cc:10:26: error: 'endl' was not declared in this scope
   10 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope
   12 |         cout << "NO" << endl;
      |         ^~~~
a.cc:12:25: error: 'endl' was not declared in this scope
   12 |         cout << "NO" << endl;
      |                         ^~~~
Language: Java

import java.util.*;

public class Main{
  public static void main{String[] args){
    Scanner sc=new Scanner(System.in);
    int[] ABC=new int[3];
    for(int i=0;i<3;i++){
      ABC[i]=sc.nextInt();
    }
    Arrays.sort(ABC);
    boolean flg=false;
    if(ABC[0]==5){
      if(ABC[1]==5){
        if(ABC[2]==7){
          flg=true;
        }
      }
    }
    if(flg){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}

Compiler output:
Main.java:4: error: '(' expected
  public static void main{String[] args){
                         ^
Main.java:4: error: ';' expected
  public static void main{String[] args){
                                       ^
Main.java:25: error: reached end of file while parsing
}
 ^
3 errors
Language: C++

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

int main(){
	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"<<endl;}
  else{
    cout<<"NO"<<endl;
  }
  
}

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

#include<stdio.h>

int main(void) {
  int A, B, C;
  int max, min,minn;
  
  scanf("%d %d %d", &A, &B, &C);
  
  if(A <= B&&C <= B) {
    max = B;
    min = A;
    minx = C;
  }
  else if(A <= C&&B <= C) {
    max = C;
    min = A;
    minx = B;
  }
   else {
    max = A;
    min = C;
    minx = B;
  }
  if(max == 7 && min == 5 && minn == 5) {
    puts("YES");
  }
  else {
    puts("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:5: error: 'minx' undeclared (first use in this function); did you mean 'minn'?
   12 |     minx = C;
      |     ^~~~
      |     minn
main.c:12:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:36: error: no match for 'operator=' (operand types are 'std::vector<int>' and 'void')
    9 |   vec = sort(vec.begin(), vec.end());
      |                                    ^
In file included from /usr/include/c++/14/vector:72,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/vector.tcc:210:5: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(const std::vector<_Tp, _Alloc>&) [with _Tp = int; _Alloc = std::allocator<int>]'
  210 |     vector<_Tp, _Alloc>::
      |     ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/vector.tcc:211:42: note:   no known conversion for argument 1 from 'void' to 'const std::vector<int>&'
  211 |     operator=(const vector<_Tp, _Alloc>& __x)
      |               ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
In file included from /usr/include/c++/14/vector:66:
/usr/include/c++/14/bits/stl_vector.h:766:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::vector<_Tp, _Alloc>&&) [with _Tp = int; _Alloc = std::allocator<int>]'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:766:26: note:   no known conversion for argument 1 from 'void' to 'std::vector<int>&&'
  766 |       operator=(vector&& __x) noexcept(_Alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_vector.h:788:7: note: candidate: 'std::vector<_Tp, _Alloc>& std::vector<_Tp, _Alloc>::operator=(std::initializer_list<_Tp>) [with _Tp = int; _Alloc = std::allocator<int>]'
  788 |       operator=(initializer_list<value_type> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_vector.h:788:46: note:   no known conversion for argument 1 from 'void' to 'std::initializer_list<int>'
  788 |       operator=(initializer_list<value_type> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
a.cc:11:14: error: expected primary-expression before '{' token
   11 |   if (vec == {5, 5, 7}) {
      |              ^
a.cc:11:13: error: expected ')' before '{' token
   11 |   if (vec == {5, 5, 7}) {
      |      ~      ^~
      |             )
Language: C

#include "sdtio.h";


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

}

Compiler output:
main.c:1:19: warning: extra tokens at end of #include directive
    1 | #include "sdtio.h";
      |                   ^
main.c:1:10: fatal error: sdtio.h: No such file or directory
    1 | #include "sdtio.h";
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include "sdtio.h"


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

}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:34: error: expected ';' before '}' token
   11 |         else if(num[i] == 7) j7++
      |                                  ^
      |                                  ;
   12 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:28: error: expected ')' before ';' token
    9 |         if(int i = 0; i < 3; i++){
      |           ~                ^
      |                            )
a.cc:9:30: error: 'i' was not declared in this scope
    9 |         if(int i = 0; i < 3; i++){
      |                              ^
Language: C++

#include<>iostream>
using namespace std;

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

Compiler output:
a.cc:1:19: warning: extra tokens at end of #include directive
    1 | #include<>iostream>
      |                   ^
a.cc:1:9: fatal error: >iostrea: No such file or directory
    1 | #include<>iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: expected primary-expression before '<<' token
   13 |     else << "NO" << endl;
      |          ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected ',' or ';' before 'for'
    6 |     for (int i = 0; i < 3; i++) {
      |     ^~~
a.cc:6:21: error: 'i' was not declared in this scope
    6 |     for (int i = 0; i < 3; i++) {
      |                     ^
a.cc:13:10: error: expected primary-expression before '<<' token
   13 |     else << "NO" << endl;
      |          ^~
Language: C

#include<stdio.h>
int main(void)
{

	int a,b,c;

	int ax,bx,cx;

	scanf("%d",&a);
	scanf("%d",&b);
	scanf("%d",&c);

	if(a==5||b=5||c==7)
		printf("YES");
	else
		if(a==5||b=7||c==5)
			printf("YES");
		else	
			if(a==7||b=5||c==5)
				printf("YES");

			else
				printf("NO");

	return 0;

}

Compiler output:
main.c: In function 'main':
main.c:13:19: error: lvalue required as left operand of assignment
   13 |         if(a==5||b=5||c==7)
      |                   ^
main.c:16:27: error: lvalue required as left operand of assignment
   16 |                 if(a==5||b=7||c==5)
      |                           ^
main.c:19:35: error: lvalue required as left operand of assignment
   19 |                         if(a==7||b=5||c==5)
      |                                   ^
Language: C++

#include<bits/stdc++.h>
int main()
{
  ios::sync_with_stdio(false);
  int A,B,C;
  cin>>A>>B>>C;
  if(A == 5 && B == 7 & C == 5)
    cout<<"YES";
  else 
    cout<<"NO";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'ios' has not been declared
    4 |   ios::sync_with_stdio(false);
      |   ^~~
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<<"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>
ios::sync_with_stdio(false)
  int main()
{
  int A,B,C;
  cin>>A>>B>>C;
  if(A == 5 && B == 7 & C == 5)
    cout<<"YES";
  else 
    cout<<"NO";
  return 0;
}

Compiler output:
a.cc:2:1: error: 'ios' does not name a type
    2 | ios::sync_with_stdio(false)
      | ^~~
Language: Java

import java.util.*;
public class Main {
	
		Scanner sc = new Scanner(System.in);
      	String[] values = sc.nextLine().split(" ");
      	int countFor7 = 0;
      	int countFor5 = 0;
      	
      	for(String value: values) {
      		if ("7".equals(value)) {
				countFor7++;
			}else if("5".equals(value)) {
				countFor5++;
			}
      	}
      	
      	System.out.println((countFor5 == 2 && countFor7 == 1)? "YES": "NO");
	}
}

Compiler output:
Main.java:9: error: illegal start of type
      	for(String value: values) {
      	^
Main.java:9: error: ';' expected
      	for(String value: values) {
      	                ^
Main.java:9: error: <identifier> expected
      	for(String value: values) {
      	                        ^
Main.java:17: error: <identifier> expected
      	System.out.println((countFor5 == 2 && countFor7 == 1)? "YES": "NO");
      	                  ^
Main.java:17: error: illegal start of type
      	System.out.println((countFor5 == 2 && countFor7 == 1)? "YES": "NO");
      	                   ^
Main.java:19: error: class, interface, enum, or record expected
}
^
6 errors
Language: Java

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

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

#include <iostream>

using namespace std;

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

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

#include <stdio.h>
int main()
{
	int A,B,C flag=0;
	scanf ("%d%d%d",&A,&B,&C);
	if (A==5&&B==5&&C==7) flag=1;
	if (A==5&&B==7&&C==5) flag=1;
    if (A==7&&B==5&&C==5) flag=1;
    if (flag==1)
    	printf("YES\n")
     else printf  ("NO\n")

 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: expected initializer before 'flag'
    4 |         int A,B,C flag=0;
      |                   ^~~~
a.cc:5:32: error: 'C' was not declared in this scope
    5 |         scanf ("%d%d%d",&A,&B,&C);
      |                                ^
a.cc:6:31: error: 'flag' was not declared in this scope
    6 |         if (A==5&&B==5&&C==7) flag=1;
      |                               ^~~~
a.cc:7:31: error: 'flag' was not declared in this scope
    7 |         if (A==5&&B==7&&C==5) flag=1;
      |                               ^~~~
a.cc:8:27: error: 'flag' was not declared in this scope
    8 |     if (A==7&&B==5&&C==5) flag=1;
      |                           ^~~~
a.cc:9:9: error: 'flag' was not declared in this scope
    9 |     if (flag==1)
      |         ^~~~
a.cc:10:24: error: expected ';' before 'else'
   10 |         printf("YES\n")
      |                        ^
      |                        ;
   11 |      else printf  ("NO\n")
      |      ~~~~               
a.cc: At global scope:
a.cc:14:2: error: expected unqualified-id before 'return'
   14 |  return 0;
      |  ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <iostream>

using namespace std;

int main()#include <iostream>

using namespace std;

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

  cin >> a >> b >> c;

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

  return 0;
}
{
  int a, b, c;

  cin >> a >> b >> c;

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

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

  return 0;
}

Compiler output:
a.cc:5:11: error: stray '#' in program
    5 | int main()#include <iostream>
      |           ^
a.cc:5:12: error: expected initializer before 'include'
    5 | int main()#include <iostream>
      |            ^~~~~~~
a.cc:55:1: error: expected unqualified-id before '{' token
   55 | {
      | ^
Language: C++

#include <stdio.h>
int main()
{
	int A,B,C flag=0
	scanf ("%d%d%d",&A,&B,&C);
	if (A==5&&B==5&&C==7) flag=1;
	if (A==5&&B==7&&C==5) flag=1;
    if (A==7&&B==5&&C==5) flag=1;
    if (flag==1)
    	printf("YES/n")
     else printf  ("NO/n")

 }
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: expected initializer before 'flag'
    4 |         int A,B,C flag=0
      |                   ^~~~
a.cc:6:25: error: 'C' was not declared in this scope
    6 |         if (A==5&&B==5&&C==7) flag=1;
      |                         ^
a.cc:6:31: error: 'flag' was not declared in this scope
    6 |         if (A==5&&B==5&&C==7) flag=1;
      |                               ^~~~
a.cc:7:25: error: 'C' was not declared in this scope
    7 |         if (A==5&&B==7&&C==5) flag=1;
      |                         ^
a.cc:7:31: error: 'flag' was not declared in this scope
    7 |         if (A==5&&B==7&&C==5) flag=1;
      |                               ^~~~
a.cc:8:21: error: 'C' was not declared in this scope
    8 |     if (A==7&&B==5&&C==5) flag=1;
      |                     ^
a.cc:8:27: error: 'flag' was not declared in this scope
    8 |     if (A==7&&B==5&&C==5) flag=1;
      |                           ^~~~
a.cc:9:9: error: 'flag' was not declared in this scope
    9 |     if (flag==1)
      |         ^~~~
a.cc:10:24: error: expected ';' before 'else'
   10 |         printf("YES/n")
      |                        ^
      |                        ;
   11 |      else printf  ("NO/n")
      |      ~~~~               
a.cc: At global scope:
a.cc:14:2: error: expected unqualified-id before 'return'
   14 |  return 0;
      |  ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C++

#include <stdio.h>
int main
{ 
 int num[3];
    while(cin>>num[0]>>num[1]>>num[2]){
         int count1 = 0;
         int count2 = 0;
             for(int i=0;i<3;i++){
              if(num[i] == 5)
              count1++;
           else
              if(num[i] == 7)
              count2++;
        }
        if((count1 == 2) && (count2 == 1))
            cout << "YES" <<endl;
        else
            cout << "NO" <<endl;
    }
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:2: error: expected primary-expression before 'int'
    4 |  int num[3];
      |  ^~~
a.cc:4:2: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:5: error: expected unqualified-id before 'while'
    5 |     while(cin>>num[0]>>num[1]>>num[2]){
      |     ^~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include "stdio.h"
#include <iostream>
int main (){
 int number = -1;
 while (number < 0 || number>100) {
  printf ("Please input the number of the children\n");
  scanf ("%d",&number);
  if (number > 100 || number < 0) {
   printf("Please check the number you input\n");
  }
 }
 int sum = 0;
 for (int i = 0; i < number; i++) {
  sum = sum + i + 1;
 }
 printf ("The number of candies needed is:");
 printf ("%d", sum）;
 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:17:16: error: 'sum\U0000ff09' was not declared in this scope
   17 |  printf ("%d", sum）;
      |                ^~~~~
Language: C++

#include "stdio.h"
#include <iostream>
int main (){
 int number = -1;
 while (number < 0 || number>100) {
  printf("Please input the number of the children\n");
  scanfs("%d",&number);
  if (number > 100 || number < 0) {
   printf("Please check the number you input\n");
  }
 }
 int sum = 0;
 for (int i = 0; i < number; i++) {
  sum = sum + i + 1;
 }
 printf("The number of candies needed is:");
 printf("%d", sum）;
 return 0;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'scanfs' was not declared in this scope; did you mean 'scanf'?
    7 |   scanfs("%d",&number);
      |   ^~~~~~
      |   scanf
a.cc:17:15: error: 'sum\U0000ff09' was not declared in this scope
   17 |  printf("%d", sum）;
      |               ^~~~~