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

#include<stdio.h>
#include<stdlib.h>
int main(void){
	int A,B,C;
	scanf("%d",&A);
	scanf("%d",&B);
	scanf("%d",&C);
	if(A+B+C=17){
		printf("Yes\n");
	}else if(A+B+C>17);
	{
		printf("No\n");
	}else(A+B+C<17){ 
      printf("No\n");
}
	system("pause");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: lvalue required as left operand of assignment
    8 |         if(A+B+C=17){
      |            ~~~^~
a.cc:13:10: error: 'else' without a previous 'if'
   13 |         }else(A+B+C<17){
      |          ^~~~
a.cc:13:24: error: expected ';' before '{' token
   13 |         }else(A+B+C<17){
      |                        ^
      |                        ;
Language: C++

#include<stdio.h>
#include<stdlib.h>
int main(void){
	int A,B,C;
	scanf("%d",&A);
	scanf("%D",&B);
	scanf("%D",&C);
	if(A+B+C=17){
		printf("Yes\n");
	}else(A+B+C>17&A+B+C<17);
	{
		printf("No\n");
	}
	system("pause");
	return 0;
}

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

#include<stdio.h>

int main(void){

int f,s;
int a,b,c;

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

if(a==5){
f++;
}else if(a==7){
s++;
}

if(b==5){
f++;
}else if(b==7){
s++;
}

if(c==5){
f++;
}else if(c==7){
s++;
}

if(f==2 && s==1){

printf("YES\n");

}else{

printf("NO\n");

return 0;

}

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

import java.util.Scanner;

public class Test {

		public static void main(String[] args) {
			Scanner sc = new Scanner(System.in);
		    int A = sc.nextInt();
		    int B = sc.nextInt();
			int C = sc.nextInt();
			int a = 0, b = 0;

			if(A == 5) a++;
			else if(A == 7) b++;

			if(B == 5) a++;
			else if(B == 7) b++;

			if(C == 5) a++;
			else if(C == 7) b++;

			if(a == 2 && b == 1) System.out.println("YES");
			else System.out.println("NO");
		}
	

}

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

package com.ACM;

import java.util.Scanner;

public class Haiku {
	public void syllables(int A,int B,int C) {
		if((A<0||A>10)||(B<0||B>10)||(C<0||C>10)) {
			System.exit(0);
		}else {
			switch(A) {
			case 5:
				if((B==5&&C==7)||(B==7&&C==5)) {
					System.out.println("Yes");
				}else {
					System.out.println("No");
				}
				break;
			case 7:
				if(B==5&&C==5) {
					System.out.println("Yes");
				}else {
					System.out.println("No");
				}
				break;
				default:
					System.out.println("No");
					break;
			}
		}
	}
	public static void main(String[] args) {
		// TODO 自动生成的方法存根
		Scanner sc=new Scanner(System.in);
	        System.out.println("输入");
	        int A=sc.nextInt();
	        int B=sc.nextInt();
		int C=sc.nextInt();
		new Haiku().syllables(A,B,C);
		
	}

}

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

#include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define LL long long #define ULL unsigned long long #define E 1e-8 #define mod 1000000007 #define P pair<int,int> using namespace std; int main() { int a[3]; while(cin>>a[0]>>a[1]>>a[2]) { int sum = 0,sum2 = 0; for(int i=0;i<3;i++){ if(a[i] == 5) sum++; else if(a[i] == 7) sum2++; } if((sum == 2) && (sum2 == 1)) cout << "YES" <<endl; else cout<<"NO"<<endl; } }

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<iostream> #include<cstdio> #include<cstring> #include<string> #include<algorithm> #include<cmath> #include<utility> #include<set> #include<vector> #include<map> #include<queue> #include<stack> #define maxn 1010 #define INF 0x3f3f3f3f #define LL long long #define ULL unsigned long long #define E 1e-8 #define mod 1000000007 #define P pair<int,int> using namespace std; int main() { int a[3]; while(cin>>a[0]>>a[1]>>a[2]) { int sum = 0,sum2 = 0; for(int i=0;i<3;i++){ if(a[i] == 5) sum++; else if(a[i] == 7) sum2++; } if((sum == 2) && (sum2 == 1)) cout << "YES" <<endl; else cout<<"NO"<<endl; } }
      |                    ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

# include 〈stdio.h〉
int main （ ）
{
int a，b，c；
if (a=c=5，b=7)
else（）

Compiler output:
a.cc:1:11: error: extended character 〈 is not valid in an identifier
    1 | # include 〈stdio.h〉
      |           ^
a.cc:1:11: error: #include expects "FILENAME" or <FILENAME>
    1 | # include 〈stdio.h〉
      |           ^~~~~~~
a.cc:1:19: error: extended character 〉 is not valid in an identifier
    1 | # include 〈stdio.h〉
      |                   ^
a.cc:2:10: error: expected initializer before '\U0000ff08'
    2 | int main （ ）
      |          ^~
Language: C++

# include 〈stdio.h〉
int main （ ）
{
int A，B，C；
if (A=C=5，B=7) （A=B=5，C=7）（B=C=7，A=5）printf（"yes.＼n"）
else（A=C=7，B=5）（A=B=7，C=5）（B=C=7，A=5）printf（"no.＼n"）
return 0
}

Compiler output:
a.cc:1:11: error: extended character 〈 is not valid in an identifier
    1 | # include 〈stdio.h〉
      |           ^
a.cc:1:11: error: #include expects "FILENAME" or <FILENAME>
    1 | # include 〈stdio.h〉
      |           ^~~~~~~
a.cc:1:19: error: extended character 〉 is not valid in an identifier
    1 | # include 〈stdio.h〉
      |                   ^
a.cc:2:10: error: expected initializer before '\U0000ff08'
    2 | int main （ ）
      |          ^~
Language: C++

#include <stdio.h>
#include <stdlib.h>
int main()
{
	int a, b, c;
	scanf_s("%d%d%d", &a, &b, &c);
	   if  (a == 7, b == 5, c == 5 || a == 5, b == 7, c == 5 || a == 5, b == 5, c == 7)
		{
			printf("yes\n");
		}
		else
		printf("NO\n");
	system("pause");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    6 |         scanf_s("%d%d%d", &a, &b, &c);
      |         ^~~~~~~
      |         scanf
Language: C++

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

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

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

int main()
{
	int a,b,c;
	scanf("%d %d %d",&a,&b,&c);
	if(( a==5&&b==5&&c==7)||( a==5&&b==7&&c==5)||(a==7&&b==5&&c==5))
		printf("YES\n");
	else printf("NO\n");
	return o;
}

Compiler output:
main.c: In function 'main':
main.c:11:16: error: 'o' undeclared (first use in this function)
   11 |         return o;
      |                ^
main.c:11:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>


int main()
{
	int n5 = 0, n7 = 0, i, A[4];
	scanf_s("%d %d %d", &A[1], &A[2], &A[3]);
	for (i = 1; i < 4; i++)
	{
		if (A[i] = 5)n5++;
		if (A[i] = 7)n7++;
	}
	if (n5 == 2 & n7 == 1)printf("YES");
	else printf("NO");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         scanf_s("%d %d %d", &A[1], &A[2], &A[3]);
      |         ^~~~~~~
      |         scanf
Language: C

#include "stdafx.h"


int main()
{
	int n5 = 0, n7 = 0, i, A[4];
	scanf_s("%d %d %d", &A[1], &A[2], &A[3]);
	for (i = 1; i < 4; i++)
	{
		if (A[i] = 5)n5++;
		if (A[i] = 7)n7++;
	}
	if (n5 == 2 & n7 == 1)printf("YES");
	else printf("NO");
	return 0;
}

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

#include<stdio.h>
int main()
    { float,A,B,C;
    printf ("please enter YES and NO");
    scanf (%d ,%d,%d,&A,&B,&C);
     if(A=5,&&B=5,&&C=7) printf("YES");
     else
     if(A=7,&&B=5,&&C=7)printf("YES");
     else
      if(A=7,&&B=5,&&C=5)printf("YES");
      else puts ("NO")
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:3:12: error: expected identifier or '(' before ',' token
    3 |     { float,A,B,C;
      |            ^
main.c:5:12: error: expected expression before '%' token
    5 |     scanf (%d ,%d,%d,&A,&B,&C);
      |            ^
main.c:6:9: error: 'A' undeclared (first use in this function)
    6 |      if(A=5,&&B=5,&&C=7) printf("YES");
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: lvalue required as left operand of assignment
    6 |      if(A=5,&&B=5,&&C=7) printf("YES");
      |                ^
main.c:6:22: error: lvalue required as left operand of assignment
    6 |      if(A=5,&&B=5,&&C=7) printf("YES");
      |                      ^
main.c:8:16: error: lvalue required as left operand of assignment
    8 |      if(A=7,&&B=5,&&C=7)printf("YES");
      |                ^
main.c:8:22: error: lvalue required as left operand of assignment
    8 |      if(A=7,&&B=5,&&C=7)printf("YES");
      |                      ^
main.c:10:17: error: lvalue required as left operand of assignment
   10 |       if(A=7,&&B=5,&&C=5)printf("YES");
      |                 ^
main.c:10:23: error: lvalue required as left operand of assignment
   10 |       if(A=7,&&B=5,&&C=5)printf("YES");
      |                       ^
main.c:11:23: error: expected ';' before 'return'
   11 |       else puts ("NO")
      |                       ^
      |                       ;
   12 |       return 0;
      |       ~~~~~~           
main.c:10:7: error: label 'C' used but not defined
   10 |       if(A=7,&&B=5,&&C=5)printf("YES");
      |       ^~
main.c:10:7: error: label 'B' used but not defined
Language: C

#include<stdio.h>
int main()
    { float,A,B,C;
    printf ("please enter YES and NO");
    scanf (%d ,%d,%d,&A,&B,&C);
     if(A=5,&&B=5,&&C=7) puts("YES");
     else
     if(A=7,&&B=5,&&C=7)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:3:12: error: expected identifier or '(' before ',' token
    3 |     { float,A,B,C;
      |            ^
main.c:5:12: error: expected expression before '%' token
    5 |     scanf (%d ,%d,%d,&A,&B,&C);
      |            ^
main.c:6:9: error: 'A' undeclared (first use in this function)
    6 |      if(A=5,&&B=5,&&C=7) puts("YES");
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:16: error: lvalue required as left operand of assignment
    6 |      if(A=5,&&B=5,&&C=7) puts("YES");
      |                ^
main.c:6:22: error: lvalue required as left operand of assignment
    6 |      if(A=5,&&B=5,&&C=7) puts("YES");
      |                      ^
main.c:8:16: error: lvalue required as left operand of assignment
    8 |      if(A=7,&&B=5,&&C=7)puts("YES");
      |                ^
main.c:8:22: error: lvalue required as left operand of assignment
    8 |      if(A=7,&&B=5,&&C=7)puts("YES");
      |                      ^
main.c:10:17: error: lvalue required as left operand of assignment
   10 |       if(A=7,&&B=5,&&C=5)puts("YES");
      |                 ^
main.c:10:23: error: lvalue required as left operand of assignment
   10 |       if(A=7,&&B=5,&&C=5)puts("YES");
      |                       ^
main.c:11:23: error: expected ';' before 'return'
   11 |       else puts ("NO")
      |                       ^
      |                       ;
   12 |       return 0;
      |       ~~~~~~           
main.c:10:7: error: label 'C' used but not defined
   10 |       if(A=7,&&B=5,&&C=5)puts("YES");
      |       ^~
main.c:10:7: error: label 'B' used but not defined
Language: C

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

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

#include<bits/stdc++.h>
int A B C 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 && B==7 &&C=5) puts("YES");
       else if (A==5 &&B=5 &&C=7) puts("YES");
        else if(A==7 &&B=5 &&C= 5) puts("YES");
        else if(A ==7 &&B==5 &&C==5) puts("YES");
        else puts("NO");
}

Compiler output:
a.cc:2:7: error: expected initializer before 'B'
    2 | int A B C
      |       ^
Language: C++

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

  int main() {
    int n, f = 0, s = 0;
    
    for (i = 0; i < 3; i++) {
      cin >> n;
      if (n == 5)
        f += 1;
      if (n == 7)
        s += 1;
    }
    
    if (f == 2 && s == 1)
      cout << "YES" << endl;
    else 
      cout << "NO" << endl;
    return 0;
    
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'i' was not declared in this scope
    8 |     for (i = 0; i < 3; i++) {
      |          ^
Language: C

#include<bits/>
using namespace std;
int A ,B, C; 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 ,&& B==7 ,&&C=5) puts("YES");
       else if (A==5 ,&&B=5, &&C=7) puts("YES");
        else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
        else puts("NO");
}


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

#include<bits/stdc++.h>
using namespace std;
int A ,B, C; 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 ,&& B==7 ,&&C=5) puts("YES");
       else if (A==5 ,&&B=5, &&C=7) puts("YES");
        else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
        else puts("NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                 ~~~~^~~
a.cc:7:26: error: lvalue required as left operand of assignment
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                          ^~~
a.cc:8:23: error: lvalue required as left operand of assignment
    8 |        else if (A==5 ,&&B=5, &&C=7) puts("YES");
      |                       ^~~
a.cc:8:30: error: lvalue required as left operand of assignment
    8 |        else if (A==5 ,&&B=5, &&C=7) puts("YES");
      |                              ^~~
a.cc:9:23: error: lvalue required as left operand of assignment
    9 |         else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
      |                       ^~~
a.cc:9:30: error: lvalue required as left operand of assignment
    9 |         else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
      |                              ^~~
a.cc:7:20: error: label 'B' used but not defined
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                    ^
a.cc:7:28: error: label 'C' used but not defined
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int A B C; 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 ,&& B==7 ,&&C=5) puts("YES");
       else if (A==5 ,&&B=5, &&C=7) puts("YES");
        else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
        else puts("NO");
}

Compiler output:
a.cc:3:7: error: expected initializer before 'B'
    3 | int A B C;
      |       ^
a.cc: In function 'int main()':
a.cc:6:27: error: 'A' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                           ^
a.cc:6:31: error: 'B' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                               ^
a.cc:6:35: error: 'C' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                                   ^
a.cc:7:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                 ~~~~^~~
a.cc:7:26: error: lvalue required as left operand of assignment
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                          ^~~
a.cc:8:23: error: lvalue required as left operand of assignment
    8 |        else if (A==5 ,&&B=5, &&C=7) puts("YES");
      |                       ^~~
a.cc:8:30: error: lvalue required as left operand of assignment
    8 |        else if (A==5 ,&&B=5, &&C=7) puts("YES");
      |                              ^~~
a.cc:9:23: error: lvalue required as left operand of assignment
    9 |         else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
      |                       ^~~
a.cc:9:30: error: lvalue required as left operand of assignment
    9 |         else if(A==7 ,&&B=5 ,&&C= 5) puts("YES");
      |                              ^~~
a.cc:7:20: error: label 'B' used but not defined
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                    ^
a.cc:7:28: error: label 'C' used but not defined
    7 |        if(A==5 ,&& B==7 ,&&C=5) puts("YES");
      |                            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int A B C; 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 && B==7 &&C=5) puts("YES");
       else if (A==5 &&B=5 &&C=7) puts("YES");
        else if(A==7 &&B=5 &&C= 5) puts("YES");
        else puts("NO");
}

Compiler output:
a.cc:3:7: error: expected initializer before 'B'
    3 | int A B C;
      |       ^
a.cc: In function 'int main()':
a.cc:6:27: error: 'A' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                           ^
a.cc:6:31: error: 'B' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                               ^
a.cc:6:35: error: 'C' was not declared in this scope
    6 |        scanf ("%d %d %d",&A, &B, &C);
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int A B C 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 && B==7 &&C=5) puts("YES");
       else if (A==5 &&B=5 &&C=7) puts("YES");
        else if(A==7 &&B=5 &&C= 5) puts("YES");
        else if(A ==7 &&B==5 &&C==5) puts("YES");
        else puts("NO");
}

Compiler output:
a.cc:3:7: error: expected initializer before 'B'
    3 | int A B C
      |       ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int A B C 

int main() {
       scanf ("%d %d %d",&A, &B, &C);
       if(A==5 && B==7 &&C=5) puts("YES");
       else if (A==5 &&B=5 &&C=7) puts("YES");
        else if(A==7 &&B=5 &&C= 5) puts("YES");
        else if(A ==7 &&B==5 &&C==5) puts("YES");
        else puts("NO");
}

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

#include<bits/stdc++.h>
using namespace std;
int A,B,C

int main（)  {
      scanf("%d %d",&A,&B,&C);
       if(A == 5 &&B ==7 C==5)puts("YES");
       while(A == 5 &&B==5 &&C==7)puts（“YES”）;
       while（A==7 &&B==5  &&C==5）puts（“YES”）
       else puts（“NO”）
     }

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

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

Compiler output:
main.c: In function 'main':
main.c:6:10: error: called object is not a function or function pointer
    6 |   printf("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO");
      |          ^~~~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:8: error: called object is not a function or function pointer
    6 |   puts("%s\n"(a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)?"YES":"NO");
      |        ^~~~~~
Language: C++

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int a,b[10001];
int main()
{
	for(int i=1;i<=n;i++)
	  {
	  	cin>>a;
	  	b[a]++;
	  }
	if(b[5]==2&&b[7]==1)
	  cout<<"YES";
	else
	  cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:24: error: 'n' was not declared in this scope
    6 |         for(int i=1;i<=n;i++)
      |                        ^
Language: C++

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

 

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


#include <bits/stdc++.h>
using namespace std;
int main()
{
	int a;
	cin>>a;
	if(a=="557"||a=="575"||a=="755")
	{
		cout<<"No";
	}
	else
	{
		cout<<"Yes";
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(a=="557"||a=="575"||a=="755")
      |            ~^~~~~~~
a.cc:8:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(a=="557"||a=="575"||a=="755")
      |                      ~^~~~~~~
a.cc:8:33: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         if(a=="557"||a=="575"||a=="755")
      |                                ~^~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'i' was not declared in this scope
    6 |         for(i=1;i<=3;i++)
      |             ^
a.cc:10:23: error: cannot convert '<brace-enclosed initializer list>' to 'int' in assignment
   10 |         if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES";
      |                       ^
a.cc:10:24: error: expected ')' before '||' token
   10 |         if(a[3]={5,5,7}||a[3]={5,7,5}||a[3]={7,5,5}) cout<<"YES";
      |           ~            ^~
      |                        )
Language: Java

import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}}

Compiler output:
Main.java:1: error: bad operand types for binary operator '^'
import java.util.*;class Main{public static void main(String[] g){Scanner s=new Scanner(System.in);System.out.println(s.nextInt()^s.nextInt()^s.nextInt()>6?"YES":"NO");}}
                                                                                                                                             ^
  first type:  int
  second type: boolean
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std ;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:26: error: invalid operands of types 'int*' and 'int [4]' to binary 'operator+'
   11 |     sort ( a + 1 , a + 1 + a ) ;
      |                    ~~~~~ ^ ~
      |                      |     |
      |                      int*  int [4]
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int a,b,c;cin>>a>>b>>c;
  	if(a==5&&b==5&&c==7)
    {
      	cout<<"YES"<<endl;
    }
  	else if(a==7&&b==7&&c==5)
    {
      	cout<<"YES"<<endl;
    }
  	else if(a==5&&b==7&&c==5)
    {
      	cout<<5/0<<endl;
    }
  	else if(a==5&&b==7&&c==7)
    {
      	while(1){}
    }
  	else　if(a==7&&b==5&&c==5)
    {
      	long long int e[1000000000][10000000000];
      	long long int f[1000000000][10000000000];
      	long long int g[1000000000][10000000000];
      	long long int h[1000000000][10000000000];
      	long long int j[1000000000][10000000000];
      	long long int k[1000000000][10000000000];
      	long long int l[1000000000][10000000000];
      	long long int m[1000000000][10000000000];
      	long long int n[1000000000][10000000000];
      	long long int o[1000000000][10000000000];
      	long long int p[1000000000][10000000000];
      	long long int q[1000000000][10000000000];
      	long long int r[1000000000][10000000000];
      	long long int s[1000000000][10000000000];
      	long long int t[1000000000][10000000000];
    }
  	return 0;
}

Compiler output:
a.cc:22:9: error: extended character 　 is not valid in an identifier
   22 |         else　if(a==7&&b==5&&c==5)
      |         ^
a.cc: In function 'int main()':
a.cc:16:16: warning: division by zero [-Wdiv-by-zero]
   16 |         cout<<5/0<<endl;
      |               ~^~
a.cc:22:9: error: 'else\U00003000if' was not declared in this scope
   22 |         else　if(a==7&&b==5&&c==5)
      |         ^~~~~~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
	int a,b,c;cin>>a>>b>>c;
  	if(a==5&&b==7&&c==5)cout<<"YES"<<endl;
  	else if(a==7&&b==5&&c==5)cout<<"NO"<<endl;
  	else if(a==7&&b==7&&c==5)
    {
      	while(1){}
    }
  	else if(a==5&&b==7&&c==7)
    {
      	int d[10000000000][10000000000]={0};
    }
  	else
    {
      	int e=0;
      	int f=100/e;
    }
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: size of array 'd' exceeds maximum object size '9223372036854775807'
   14 |         int d[10000000000][10000000000]={0};
      |             ^
Language: C++

#include <stdio.h>

int main(void)

#include<stdio.h>

int main(void)

{
    int n[3], i, count5 = 0, count7 = 0;
    for (i = 0; i < 3; i++)
    {
        scanf("%d", &n[i]);
        if (n[i] == 5) {
            count5 ++;
        } else if (n[i] == 7) {
            count7 ++;
        }
    }

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


Compiler output:
a.cc:7:1: error: expected initializer before 'int'
    7 | int main(void)
      | ^~~
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:37: error: expected ';' before ':' token
   12 |             else if(a[1]==7) jud = 0:
      |                                     ^
      |                                     ;
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'for'
    5 |     for(int i=0;i<3;i++){
      |     ^~~
a.cc:5:17: error: 'i' was not declared in this scope
    5 |     for(int i=0;i<3;i++){
      |                 ^
a.cc:9:9: error: 'a' was not declared in this scope
    9 |     if((a[0]+a[1]+a[2])==17){
      |         ^
a.cc:12:37: error: expected ';' before ':' token
   12 |             else if(a[1]==7) jud = 0:
      |                                     ^
      |                                     ;
Language: C++

#include<stdio.h>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected initializer before 'for'
    5 |     for(int i=0;i<3;i++){
      |     ^~~
a.cc:5:17: error: 'i' was not declared in this scope
    5 |     for(int i=0;i<3;i++){
      |                 ^
a.cc:8:9: error: expected unqualified-id before 'true'
    8 |     int true = 1;
      |         ^~~~
a.cc:9:9: error: 'a' was not declared in this scope
    9 |     if((a[0]+a[1]+a[2])==17){
      |         ^
a.cc:11:32: error: lvalue required as left operand of assignment
   11 |             if(a[1]==5) true = 0;
      |                                ^
a.cc:12:37: error: lvalue required as left operand of assignment
   12 |             else if(a[1]==7) true = 0:
      |                                     ^
a.cc:15:32: error: lvalue required as left operand of assignment
   15 |             if(a[1]==5) true = 0;
      |                                ^
a.cc:18:15: error: lvalue required as left operand of assignment
   18 |     if(true = 0) printf("YES\n");
      |               ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:13:16: error: 'ry' undeclared (first use in this function); did you mean 'sry'?
   13 |     if(srx==2&&ry==1)
      |                ^~
      |                sry
main.c:13:16: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import com.sun.deploy.util.ArrayUtil;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;

public class Main {
    
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        List<Integer> arr = new ArrayList<Integer>(Arrays.asList(sc.nextInt(), sc.nextInt(),sc.nextInt()));
        if (arr.contains(5)){
            arr.remove(arr.indexOf(5));
            if (arr.contains(5)){
                arr.remove(arr.indexOf(5));
                if (arr.contains(7)){
                    System.out.println("YES");
                }else{
                    System.out.println("NO");
                }
            }else{
                System.out.println("NO");
            }
        }else{
            System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:1: error: package com.sun.deploy.util does not exist
import com.sun.deploy.util.ArrayUtil;
                          ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:23: error: 'n' was not declared in this scope
    6 |         for(int i=0;i<n;i++){
      |                       ^
Language: Java

import java.util.*;
class Main{
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int a=sc.nextInt()
  int b=sc.nextInt();
  String c[] =new String[a];
  for(int i=0;i<b;i++){
   c[i]=sc.next();
  }
  Arrays.sort(c);
  for(int i=0;i<b;i++){
   System.out.print(c[i]);
  }
 }
}


Compiler output:
Main.java:5: error: ';' expected
  int a=sc.nextInt()
                    ^
1 error
Language: Java

import java.util.*;
public class Main {
   
   static void bubbleSort(int[] arr) {  
        int n = arr.length;  
        int temp = 0;  a
         for(int i=0; i < n; i++){  
                 for(int j=1; j < (n-i); j++){  
                          if(arr[j-1] > arr[j]){  
                                 //swap elements  
                                 temp = arr[j-1];  
                                 arr[j-1] = arr[j];  
                                 arr[j] = temp;  
                         }  
                          
                 }  
         }  
  
    }  

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

        arr[0] = sc.nextInt();
        arr[1] = sc.nextInt();
        arr[2] = sc.nextInt();

        bubbleSort(arr);
        if (arr[0]==5&&arr[1]==5&&arr[2]==7) {
        	System.out.println("YES");
        } else {
        	System.out.println("NO");
        }
    }
}	

Compiler output:
Main.java:6: error: not a statement
        int temp = 0;  a
                       ^
Main.java:6: error: ';' expected
        int temp = 0;  a
                        ^
2 errors
Language: C++

#include<cstdio>
using namespace std;
int a,b,c;
int t[8];
int main()
{
  scanf("%d %d %d",&a,&b,&c);
  t[a]++;
  t[b]++;
  t[c]++;
  if(t[5]==2&&t[7]==1)
   puts("YES");
  else
   puts("NO")
}

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

#include<cstdio>
using namespace std;
int a,b,c;
int t[8];
int main()
{
  scanf("%d %d %d",&a,&b,&c);
  t[a]++;
  t[b]++;
  t[c]++;
  if(t[5]==2&&t[7]==1)
   puts('YES');
  else
   puts('NO')
}

Compiler output:
a.cc:12:9: warning: multi-character character constant [-Wmultichar]
   12 |    puts('YES');
      |         ^~~~~
a.cc:14:9: warning: multi-character character constant [-Wmultichar]
   14 |    puts('NO')
      |         ^~~~
a.cc: In function 'int main()':
a.cc:12:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   12 |    puts('YES');
      |         ^~~~~
      |         |
      |         int
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:14:9: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   14 |    puts('NO')
      |         ^~~~
      |         |
      |         int
/usr/include/stdio.h:714:30: note:   initializing argument 1 of 'int puts(const char*)'
  714 | extern int puts (const char *__s);
      |                  ~~~~~~~~~~~~^~~
a.cc:14:14: error: expected ';' before '}' token
   14 |    puts('NO')
      |              ^
      |              ;
   15 | }
      | ~
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("OK");
		}else{
			System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:8: error: ')' expected
		if((a == 5 && b == 5 && c == 7)||(a == 5 && b == 7 && c == 5)||(a == 7 && b == 5 && c == 5){
		                                                                                           ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 't7' was not declared in this scope; did you mean 'tm'?
    9 |     if(t7==1) cout<<"YES";
      |        ^~
      |        tm
Language: C++

function main(input){
const args = input.split(" ");
if(args.indexOf("5")!==-1&&args.indexOf("7")!==-1&&args.indexOf("5")!==args.lastIndexOf("5")){
console.log("YES");}else{console.log("NO")}
}

Compiler output:
a.cc:1:1: error: 'function' does not name a type; did you mean 'union'?
    1 | function main(input){
      | ^~~~~~~~
      | union
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main(void){
    // Your code here!
    vector<int> v(3);
    cin>>v[0]>>v[1]>>v[2];
    sort(v.begin(),v.end());
    if((v[2]==7&&v[0]==5)&&v[1]==5)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;
}


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

#include <iostream>
using namespace std;

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


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

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

Compiler output:
a.cc:3:22: error: expected initializer before '==' token
    3 | int a,b,c,sum5=0,sum7==0;
      |                      ^~
a.cc: In function 'int main()':
a.cc:10:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
   10 |     if(a==7)sum7++;
      |             ^~~~
      |             sum5
a.cc:11:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
   11 |     if(b==7)sum7++;
      |             ^~~~
      |             sum5
a.cc:12:13: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
   12 |     if(c==7)sum7++;
      |             ^~~~
      |             sum5
a.cc:13:17: error: 'sum7' was not declared in this scope; did you mean 'sum5'?
   13 |     if(sum5==2&&sum7==1)cout<<"YES";
      |                 ^~~~
      |                 sum5
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: lvalue required as left operand of assignment
   11 |     if(ans1=2&&ans2=1)cout<<"YES";
      |             ~^~~~~~
Language: C++

#include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); }

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++.h> using namespace std; int main(){ int a,b,c,t7=0; scanf("%d%d%d",&a,&b,&c); if(a==7) t7++; if(b==7) t7++; if(c==7) t7++; if(t7==1) printf("YES"); else printf("NO"); }
      |                         ^~~~~
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected ';' before 'if'
    9 |         cin>>t
      |               ^
      |               ;
   10 |         if(t==5)
      |         ~~     
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else if(t==7)
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin>>t
      |         ^~~
      |         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:12:9: error: 'else' without a previous 'if'
   12 |         else if(t==7)
      |         ^~~~
a.cc:20:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |          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:24:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   24 |         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++

// Iroha and Haiku

#include <iostream>

using namespace std;

int main(){
	int p[3];
	cin >> p[0] >> p[1] >> p[2];

	sort(p, p+3);
	if (p[0] == 5 && p[1] == 5 && p[2] == 7)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

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

if (A == 5) {
		if (B == 5) {
			if (C == 7) {
				cout << "YES" << endl;
				return 0;
			}
		}
	}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if (A == 5) {
      | ^~
Language: Java

import java.util.Scanner;

public class MainA {

	public static void main(String[] args) {
		Scanner sc  = new Scanner(System.in);
		int haikuarray[] = new int[3];
		for(int i = 0; haikuarray.length > i; i++) {
			haikuarray[i] = sc.nextInt();
		}
		sc.close();
		boolean j = retHaiku(haikuarray);
		if(j == true) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}

	}

	public static boolean retHaiku(int harray[]) {
		int sevencnt = 0;
		int fivecnt = 0;
		for(int i = 0; harray.length > i; i++) {
			if(harray[i] == 7 && sevencnt == 0) {
				sevencnt++;
			}else if(harray[i] == 5 && fivecnt < 2) {
				fivecnt++;
			}else {
				return false;
			}
		}
		return true;
	}

}

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

public class Main {
	private static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {
		int[] ret = new int[2];
		for(int i = 0; i < 3; i++) {
			int tmp = sc.nextInt();
			if(tmp == 5)
				ret[0]++;
			if(tmp == 7)
				ret[1]++;
		}
		System.out.println(ret[0] == 2 && ret[1] == 1 ? "YES" : "NO");
	}
}

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

#include <iostream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <iomanip>
#include <algorithm>
#include <string>
#include <map>
#include <queue>
using namespace std;
int main()
{
 	int a,b,c;
 	cin>>a>>b>>c;
 	if(a==5&&b==5&&c==7)
	 {
		cout<<"YES"<<endl;
     }
    else if
	(a==5&&c==5&&b==7)
	{
	cout<<"YES"<<endl;
    }
	else if
	(a==7&&b==5&&c==5)
    { 
	cout<<"YES"<<endl;
	}
	else 
	cout<<"NO"<<endl; 
 	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int a[2];
int i;

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

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

import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayDeque;
import java.util.Deque;
import java.util.Collection;
import java.util.LinkedList;
import java.util.Queue;

class Main{
          public static void main(String[] args) {
                  Scanner scan = new Scanner(System.in);
                  int A = scan.nextInt();
                  int B = scan.nextInt();
                  int C = scan.nextInt();
                  boolean f;
                  if (A == 5 && B == 7 && C == 5) {
                          f = true;
                  }
                  if (A == 7 && B == 5 && C == 5) {
                          f = true;
                  }
                  if (A == 5 && B == 5 && C == 7) {
                          f = true;
                  }
                  if (f) {
                          System.out.println("YES");
                  }
                  else System.out.println("NO");
                  }
}


Compiler output:
Main.java:25: error: variable f might not have been initialized
                  if (f) {
                      ^
1 error