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

#include <iostream>
#include <vector>
#include <alogrithm>

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

}

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

#include<stdio.h>


int main() {
	int a, b, c;
	int check=false;
	scanf("%d %d %d", &a, &b, &c);
	if (a == 5 && b == 5 && c == 7) 
		check = true;
	else if (a == 5 && b == 7 && c == 5)
		check = true;
	else if (a == 7 && b == 5 && c == 5)
		check = true;
	if (check == true)
		puts("YES");
	else
		puts("NO");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:19: error: 'false' undeclared (first use in this function)
    6 |         int check=false;
      |                   ^~~~~
main.c:2:1: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
    6 |         int check=false;
      |                   ^~~~~
main.c:9:25: error: 'true' undeclared (first use in this function)
    9 |                 check = true;
      |                         ^~~~
main.c:9:25: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include<stdio.h>


int main() {
	int a, b, c;
	bool check=false;
	scanf("%d %d %d", &a, &b, &c);
	if (a == 5 && b == 5 && c == 7) 
		check = true;
	else if (a == 5 && b == 7 && c == 5)
		check = true;
	else if (a == 7 && b == 5 && c == 5)
		check = true;
	if (check == true)
		puts("YES");
	else
		puts("NO");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: unknown type name 'bool'
    6 |         bool check=false;
      |         ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:6:20: error: 'false' undeclared (first use in this function)
    6 |         bool check=false;
      |                    ^~~~~
main.c:6:20: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:6:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:25: error: 'true' undeclared (first use in this function)
    9 |                 check = true;
      |                         ^~~~
main.c:9:25: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C++

#include <iostream>
#include <vector>

using namespace std;

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


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

mport java.util.Scanner;

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

        int judgement5 = 0;
        int judgement7 = 0;

        int[] number = new int[3];

        for (int i = 0; i < number.length; i++) {
            number[i] = sc.nextInt();
        }

        for (int i : number) {
            if (i == 5) {
                judgement5++;
            } else if (i == 7) {
                judgement7++;
            }
        }

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: C++

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


const int MAX=100;



int main()
{
    int N,L;
    string S[MAX];
    
    cin >> N >> L ;
    
    for(int i=0; i<N ; i++)
    {
        cin >> S[i];
    }
    
    sort(S,S+N);
    string res="";
    
    for(int i=0; i<N ; i++)
    {
        res+=S[i];
    }
    cout <<  res << endl;
    return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:13:44: error: expected ')' before '{' token
   13 |         }else if((a==5&&b==7)||(b==5&&a==7){
      |                 ~                          ^
      |                                            )
main.c:20:1: error: expected expression before '}' token
   20 | }
      | ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:26: error: expected ')' before '{' token
    7 |         if((a==5)&&(b==5){
      |           ~              ^
      |                          )
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C++

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

int main()
{
	int N[2];
	int count5,count7; 

	count5=0;
	count7=0;

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

		if(N[i]=5){

			count5++;

		}else if(N[i]=7){

			count7++; 

		}

	}

	if(count5=2 && count7=1){
		cout << "YES";
	}else{
		cout << "NO";
	}

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:21: error: lvalue required as left operand of assignment
   28 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
Language: C++

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

int main()
{
	int N[2];
	int count5,count7; 

	count5=0;
	count7=0;

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

		if(N[i]=5){

			count5++;

		}else if(N[i]=7){

			count7++; 

		}

	}

	if(count5=2 && count7=1){
		cout << "YES";
	}else{
		cout << "NO";
	}

	return 0;
}



Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |                 cin >> N[i];
      |                 ^~~
      |                 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:28:21: error: lvalue required as left operand of assignment
   28 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
a.cc:29:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |                 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:31:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                 cout << "NO";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
use namespace std;

int main()
{
	int N[2];
	int count5,count7; 

	count5=0;
	count7=0;

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

		if(N[i]=5){

			count5++;

		}else if(N[i]=7){

			count7++; 

		}

	}

	if(count5=2 && count7=1){
		cout << "YES";
	}else{
		cout << "NO";
	}

	return 0;
}


Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |                 cin >> N[i];
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:28:21: error: lvalue required as left operand of assignment
   28 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
a.cc:29:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |                 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:31:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                 cout << "NO";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
use namespace std;

int main()
{
	int num[2];
	int count5,count7; 

	count5=0;
	count7=0;

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

		if(num(i)=5){

			count5++;

		}else if(num(i)=7){

			count7++; 

		}

	}

	if(count5=2 && count7=1){
		cout << "YES";
	}else{
		cout << "NO";
	}

	return 0;
}


Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |                 cin >> num[i];
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:23: error: 'num' cannot be used as a function
   16 |                 if(num(i)=5){
      |                    ~~~^~~
a.cc:20:29: error: 'num' cannot be used as a function
   20 |                 }else if(num(i)=7){
      |                          ~~~^~~
a.cc:28:21: error: lvalue required as left operand of assignment
   28 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
a.cc:29:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |                 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:31:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                 cout << "NO";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
use namespace std;

int main()
{
	int num[2];
	int count5,count7; 

	count5=0;
	count7=0;

	for(i=0 ; i<3 ; i++ ){
		
		cin >> num[i];

		if(num(i)=5){

			count5++;

		}else if(num(i)=7){

			count7++; 

		}

	}

	if(count5=2 && count7=1){
		cout << "YES";
	}else{
		cout << "NO";
	}

	return 0;
}


Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |         for(i=0 ; i<3 ; i++ ){
      |             ^
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |                 cin >> num[i];
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:23: error: 'num' cannot be used as a function
   16 |                 if(num(i)=5){
      |                    ~~~^~~
a.cc:20:29: error: 'num' cannot be used as a function
   20 |                 }else if(num(i)=7){
      |                          ~~~^~~
a.cc:28:21: error: lvalue required as left operand of assignment
   28 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
a.cc:29:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   29 |                 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:31:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   31 |                 cout << "NO";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
use namespace std;

int main()
{
	int num[2];
	int count5,count7; 

	count5=0;
	count7=0;

	for(i=0 ; i<3 ; i++ ){
		
		cin >> num[i];

		if(num(i)=5){
			count5++;
		}else if(num(i)=7){
			count7++; 
		}

	}

	if(count5=2 && count7=1){
		cout << "YES"
	}else{
		cout << "NO"
	}

	return 0;
}


Compiler output:
a.cc:2:1: error: 'use' does not name a type
    2 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:12:13: error: 'i' was not declared in this scope
   12 |         for(i=0 ; i<3 ; i++ ){
      |             ^
a.cc:14:17: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   14 |                 cin >> num[i];
      |                 ^~~
      |                 std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:16:23: error: 'num' cannot be used as a function
   16 |                 if(num(i)=5){
      |                    ~~~^~~
a.cc:18:29: error: 'num' cannot be used as a function
   18 |                 }else if(num(i)=7){
      |                          ~~~^~~
a.cc:24:21: error: lvalue required as left operand of assignment
   24 |         if(count5=2 && count7=1){
      |                   ~~^~~~~~~~~
a.cc:25:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |                 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:27:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   27 |                 cout << "NO"
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <iostream>
#include <string>

int main(void)
{
  string A, B, C;
  std::cin >> A >> B >> C;

  std::cout << A << "," << B << "," << C << endl;

  
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string A, B, C;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:15: error: 'A' was not declared in this scope
    7 |   std::cin >> A >> B >> C;
      |               ^
a.cc:7:20: error: 'B' was not declared in this scope
    7 |   std::cin >> A >> B >> C;
      |                    ^
a.cc:7:25: error: 'C' was not declared in this scope
    7 |   std::cin >> A >> B >> C;
      |                         ^
a.cc:9:45: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   std::cout << A << "," << B << "," << C << endl;
      |                                             ^~~~
      |                                             std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>
#include<argorithm>
int a,b,c;
int main(){
   scanf("%d",&a);
   scanf("%d",&b);
   scanf("%d",&c);
   int f[3] = {a,b,c};
   sort(f);
   if(f  == {5,5,7}){
   printf("YES/n");
   return 0
   }
   else{printf("NO/n");
   return 0;
}
}

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

#include ＜iostream＞
using namespace std;

int main(){
int a,b,c;
cin＞＞a＞＞b＞＞c;
int d[10];

d[a]++;
d[b]++;
d[c]++;
if(d[5]==2&&d[7]==1)
cout＜＜"YES"＜＜endl;
else
cout＜＜"NO"＜＜endl;
return 0;

}

Compiler output:
a.cc:1:10: error: #include expects "FILENAME" or <FILENAME>
    1 | #include ＜iostream＞
      |          ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin\U0000ff1e\U0000ff1ea\U0000ff1e\U0000ff1eb\U0000ff1e\U0000ff1ec' was not declared in this scope
    6 | cin＞＞a＞＞b＞＞c;
      | ^~~~~~~~~~~~~~~~~~
a.cc:13:1: error: 'cout\U0000ff1c\U0000ff1c' was not declared in this scope
   13 | cout＜＜"YES"＜＜endl;
      | ^~~~~~~~
a.cc:15:1: error: 'cout\U0000ff1c\U0000ff1c' was not declared in this scope
   15 | cout＜＜"NO"＜＜endl;
      | ^~~~~~~~
Language: Java

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

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

#include <stdio.h>
int main (void)
{
int v[2], i ;
printf("整数を入力してください");
for(i=0; i<2 ; i++)
printf("%dつ目",i+1);
do{
scanf("%d",&v[i]);
if(v[i]<1||v[i]>10)
printf("1~10で入力してください:");
}while(v[i]<1||v[i]>10);

if (v[0]==7 && v[1]==5 && v[2]==5 )
printf("Yes");
else if (v[1]==7&&v[0]==5&&v[2] ==5)
printf("Yes");
else if (v[2]==7&&v[0]==5&&v[1]==5 )
printf("Yes");
else
prinyf("No");
return 0; 
}



Compiler output:
main.c: In function 'main':
main.c:21:1: error: implicit declaration of function 'prinyf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   21 | prinyf("No");
      | ^~~~~~
      | printf
Language: C

#include <stdio.h>
int main (void)
{
int v[2], i ;
printf("整数を入力してください");
for(i=0; i<2 ; i++)
printf("%dつ目",i+1);
do{
scanf("%d",&v[i]);
if(v[i]<1||v[i]>10)
printf("1~10で入力してください:");
}while(v[i]<1||v[i]>10);

if (v[0]==7 && v[1]==5 && v[2]==5 || v[1]==7 && v[0] ==5 && v[2] ==5 || v[2] ==7 && v[1]==5 && v[0]==5)
printf("Yes");
else
printf("No");
return o; 
}



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

#include <stdio.h>
int main (void)
{
int v[2], i ;
printf("整数を入力してください");
for(i=0; i<2 ; i++)
printf("%dつ目",i+1);
do{
scanf("%d",&v[i]);
if(v[i]<1||v[i]>10)
printf("1~10で入力してください:");
}while(v[i]<1||v[i]>10);

if (v[0]==7&&v[1]==5&&v[2]==5||v[1]==7&&v[0]==5&&v[2]==5||v[2]==7&&v[1]==5&&v[0]==5)
printf("Yes");
else
printf("No");
return o; 
}



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

#include <stdio.h>
int main (void)
{
int v[2], i ;
printf("整数を入力してください")
for(i=0; i<2 ; i++)
printf("%dつ目",i+1);
do{
scanf("%d",&v[i]);
if(v[i]<1||v[i]>10)
printf("1~10で入力してください:");
}while(v[i]<1||v[i]>10)

if (v[0]==7&&v[1]==5&&v[2]==5||v[1]==7&&v[0]==5&&v[2]==5||v[2]==7&&v[1]==5&&v[0]==5)
printf("Yes");
else
printf("No");
return o; 
}



Compiler output:
main.c: In function 'main':
main.c:5:33: error: expected ';' before 'for'
    5 | printf("整数を入力してください")
      |                                 ^
      |                                 ;
    6 | for(i=0; i<2 ; i++)
      | ~~~                              
main.c:12:24: error: expected ';' before 'if'
   12 | }while(v[i]<1||v[i]>10)
      |                        ^
      |                        ;
   13 | 
   14 | if (v[0]==7&&v[1]==5&&v[2]==5||v[1]==7&&v[0]==5&&v[2]==5||v[2]==7&&v[1]==5&&v[0]==5)
      | ~~                      
main.c:16:1: error: 'else' without a previous 'if'
   16 | else
      | ^~~~
main.c:18:8: error: 'o' undeclared (first use in this function)
   18 | return o;
      |        ^
main.c:18:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>
#difine
int main (void)
{
int v[2], i ;
printf("整数を入力してください")
for(i=0; i<2 ; i++)
printf("%dつ目",i+1);
do{
scanf("%d",&v[i]);
if(v[i]<1||v[i]>10)
printf("1~10で入力してください:");
}while(v[i]<1||v[i]>10)

if (v[0]==7&&v[1]==5&&v[2]==5||v[1]==7&&v[0]==5&&v[2]==5||v[2]==7&&v[1]==5&&v[0]==5)
printf("Yes");
else
printf("No");
return o; 
}



Compiler output:
main.c:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine
      |  ^~~~~~
      |  define
main.c: In function 'main':
main.c:6:33: error: expected ';' before 'for'
    6 | printf("整数を入力してください")
      |                                 ^
      |                                 ;
    7 | for(i=0; i<2 ; i++)
      | ~~~                              
main.c:13:24: error: expected ';' before 'if'
   13 | }while(v[i]<1||v[i]>10)
      |                        ^
      |                        ;
   14 | 
   15 | if (v[0]==7&&v[1]==5&&v[2]==5||v[1]==7&&v[0]==5&&v[2]==5||v[2]==7&&v[1]==5&&v[0]==5)
      | ~~                      
main.c:17:1: error: 'else' without a previous 'if'
   17 | else
      | ^~~~
main.c:19:8: error: 'o' undeclared (first use in this function)
   19 | return o;
      |        ^
main.c:19:8: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

public class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] strs = br.readLine().split(" ");
        int count_five = 0;
        int count_seven =0;
        for(String s : strs){
            if(s.equals("5")){
                count_five++;
            }else if (s.equals("7")){
                count_seven++;
            }
        }
        if (count_five == 2 && count_seven == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

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

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
 int a=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:4: error: incompatible types: String cannot be converted to int
 int b=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:5: error: incompatible types: String cannot be converted to int
 int c=new java.util.Scanner(System.in).nextLine();
                                                ^
3 errors
Language: Java

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

Compiler output:
Main.java:6: error: package Sytem does not exist
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
                           ^
Main.java:7: error: package Sytem does not exist
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
                                ^
Main.java:8: error: package Sytem does not exist
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
                                ^
3 errors
Language: Java

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

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
 int a=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:4: error: incompatible types: String cannot be converted to int
 int b=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:5: error: incompatible types: String cannot be converted to int
 int c=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:6: error: package Sytem does not exist
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
                           ^
Main.java:7: error: package Sytem does not exist
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
                                ^
Main.java:8: error: package Sytem does not exist
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
                                ^
6 errors
Language: Java

public class Main{
 public static void main (String[]args){
 String a=new java.util.Scanner(System.in).nextLine();
 String b=new java.util.Scanner(System.in).nextLine();
 String c=new java.util.Scanner(System.in).nextLine();
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
 else{System.out.println("NO");}
 }
}

Compiler output:
Main.java:6: error: bad operand types for binary operator '=='
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
     ^
  first type:  String
  second type: int
Main.java:6: error: bad operand types for binary operator '=='
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
           ^
  first type:  String
  second type: int
Main.java:6: error: bad operand types for binary operator '=='
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
                 ^
  first type:  String
  second type: int
Main.java:6: error: package Sytem does not exist
 if(a==7&&b==5&&c==5){Sytem.out.println("YES");}
                           ^
Main.java:7: error: bad operand types for binary operator '=='
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
          ^
  first type:  String
  second type: int
Main.java:7: error: bad operand types for binary operator '=='
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
                ^
  first type:  String
  second type: int
Main.java:7: error: bad operand types for binary operator '=='
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
                      ^
  first type:  String
  second type: int
Main.java:7: error: package Sytem does not exist
 else if(a==5&&b==7&&c==5){Sytem.out.println("YES");}
                                ^
Main.java:8: error: bad operand types for binary operator '=='
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
          ^
  first type:  String
  second type: int
Main.java:8: error: bad operand types for binary operator '=='
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
                ^
  first type:  String
  second type: int
Main.java:8: error: bad operand types for binary operator '=='
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
                      ^
  first type:  String
  second type: int
Main.java:8: error: package Sytem does not exist
 else if(a==5&&b==5&&c==7){Sytem.out.println("YES");}
                                ^
12 errors
Language: C

#include <stdio.h>

int main(void) {
	int a, b, c, d=0;
	
	scanf("%d %d %d", &a, &b, &c);
	
	if(a==5 && b==5 && c==7){
	printf("YES\n");
	d++;}
	if(a==5 && b==7 && c==5){
	printf("YES\n");
	d++;}
	if(a==7 && b==5 && c==5){
	printf("YES\n");
	d++}
	if(d==1)
	printf("NO\n");
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:12: error: expected ';' before '}' token
   16 |         d++}
      |            ^
      |            ;
Language: Java

public class Main{
 public static void main (String[]args){
 String a=new java.util.Scanner(System.in).nextLine();
 String b=new java.util.Scanner(System.in).nextLine();
 String c=new java.util.Scanner(System.in).nextLine();
 switch(a b c){
  case 7 5 5:
System.out.println("YES");
 break;
 case 5 7 5:
Ssytem.out.println("YES")
 break;
 case 5 5 7:
Ssytem.out.println("YES")
break;
 default:
Ssytem.out.print("NO");
}
 }
}

Compiler output:
Main.java:6: error: ')' expected
 switch(a b c){
         ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
          ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
            ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
             ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
              ^
Main.java:7: error: : or -> expected
  case 7 5 5:
        ^
Main.java:7: error: not a statement
  case 7 5 5:
         ^
Main.java:7: error: ';' expected
  case 7 5 5:
          ^
Main.java:10: error: : or -> expected
 case 5 7 5:
       ^
Main.java:10: error: not a statement
 case 5 7 5:
        ^
Main.java:10: error: ';' expected
 case 5 7 5:
         ^
Main.java:11: error: ';' expected
Ssytem.out.println("YES")
                         ^
Main.java:13: error: : or -> expected
 case 5 5 7:
       ^
Main.java:13: error: not a statement
 case 5 5 7:
        ^
Main.java:13: error: ';' expected
 case 5 5 7:
         ^
Main.java:14: error: ';' expected
Ssytem.out.println("YES")
                         ^
16 errors
Language: Java

public class Main{
 public static void main (String[]args){
 int a=new java.util.Scanner(System.in).nextLine();
 int b=new java.util.Scanner(System.in).nextLine();
 int c=new java.util.Scanner(System.in).nextLine();
 switch(a b c){
  case 7 5 5:
System.out.println("YES");
 break;
 case 5 7 5:
Ssytem.out.println("YES")
 break;
 case 5 5 7:
Ssytem.out.println("YES")
break;
 default:
Ssytem.out.print("NO");
}
 }
}

Compiler output:
Main.java:6: error: ')' expected
 switch(a b c){
         ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
          ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
            ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
             ^
Main.java:6: error: case, default, or '}' expected
 switch(a b c){
              ^
Main.java:7: error: : or -> expected
  case 7 5 5:
        ^
Main.java:7: error: not a statement
  case 7 5 5:
         ^
Main.java:7: error: ';' expected
  case 7 5 5:
          ^
Main.java:10: error: : or -> expected
 case 5 7 5:
       ^
Main.java:10: error: not a statement
 case 5 7 5:
        ^
Main.java:10: error: ';' expected
 case 5 7 5:
         ^
Main.java:11: error: ';' expected
Ssytem.out.println("YES")
                         ^
Main.java:13: error: : or -> expected
 case 5 5 7:
       ^
Main.java:13: error: not a statement
 case 5 5 7:
        ^
Main.java:13: error: ';' expected
 case 5 5 7:
         ^
Main.java:14: error: ';' expected
Ssytem.out.println("YES")
                         ^
16 errors
Language: C++

#include<iostream>
using namespace std;
int main(){
  int a,b,c,d,e,f,g;
  cin>>a>>b>>c;
  d=a*b*c;
  e=a+b+c;
  f=5*5*7;
  g=5+5+7;
  if (d==f && e==g &&((a==b && a==c+2)||(a==c && a==b+2)) cout<<"YES";
  else cout<<"No";

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:58: error: expected ';' before 'cout'
   10 |   if (d==f && e==g &&((a==b && a==c+2)||(a==c && a==b+2)) cout<<"YES";
      |                                                          ^~~~~
      |                                                          ;
a.cc:11:3: error: expected primary-expression before 'else'
   11 |   else cout<<"No";
      |   ^~~~
a.cc:10:71: error: expected ')' before 'else'
   10 |   if (d==f && e==g &&((a==b && a==c+2)||(a==c && a==b+2)) cout<<"YES";
      |      ~                                                                ^
      |                                                                       )
   11 |   else cout<<"No";
      |   ~~~~
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:11: error: ';' expected
      System.out.println("YES")
                               ^
1 error
Language: Java

public class Main{
 public static void main (String[]args){
 int a=new java.util.Scanner(System.in).nextLine();
 int b=new java.util.Scanner(System.in).nextLine();
 int c=new java.util.Scanner(System.in).nextLine();
 switch(a,b,c){
  case a=7&&b==5&&c==5:
System.out.println("YES");
 break;
 case a==5&&b==7&&c==5:
Ssytem.out.println("YES")
 break;
 case a==5&&b==5&&c==7:
Ssytem.out.println("YES")
break;
 default:
Ssytem.out.print("NO");
}
 }
}

Compiler output:
Main.java:6: error: ')' expected
 switch(a,b,c){
         ^
Main.java:6: error: case, default, or '}' expected
 switch(a,b,c){
          ^
Main.java:6: error: case, default, or '}' expected
 switch(a,b,c){
           ^
Main.java:6: error: case, default, or '}' expected
 switch(a,b,c){
            ^
Main.java:6: error: case, default, or '}' expected
 switch(a,b,c){
             ^
Main.java:6: error: case, default, or '}' expected
 switch(a,b,c){
              ^
Main.java:11: error: ';' expected
Ssytem.out.println("YES")
                         ^
Main.java:14: error: ';' expected
Ssytem.out.println("YES")
                         ^
8 errors
Language: C

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

        int i;
        int j;
        int k;
        int cnt5;
        int cnt7;

	// 個数のの入力
        cnt5 = 0;
        cnt7 = 0;
        scanf("%d %d %d",&i,&j,&k);

        if (i = 5) {
           cnt5 = cnt5 + 1;
        }
        if (i = 7) {
           cnt7 = cnt7 + 1;
        }
 

        if (j = 5) {
           cnt5 = cnt5 + 1;
        }
        if (j = 7) {
           cnt7 = cnt7 + 1;
        }


        if (k = 5) {
           cnt5 = cnt5 + 1;
        }
        if (k = 7) {
           cnt7 = cnt7 + 1;
        }


        if (cnt5 = 2) {
           if (cnt7 = 1) {
               printf("YES\n");
           }
           else {
               printf("NO\n");
           }
         else {  
               printf("NO\n");
         }
        }

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:49:10: error: expected '}' before 'else'
   49 |          else {
      |          ^~~~
main.c: At top level:
main.c:54:9: error: expected identifier or '(' before 'return'
   54 |         return 0;
      |         ^~~~~~
main.c:55:1: error: expected identifier or '(' before '}' token
   55 | }
      | ^
Language: C

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

        int i;
        int j;
        int k;
        int cnt5;
        int cnt7;

	// 個数のの入力
        cnt5 = 0;
        cnt7 = 0;
        scanf("%d %d %d",&i,&j,&k);

        if (i = 5) {
           cnt5 = cnt5 + 1;
        }
        if (i = 7) {
           cnt7 = cnt7 + 1;
        }
 

        if (j = 5) {
           cnt5 = cnt5 + 1;
        }
        if (j = 7) {
           cnt7 = cnt7 + 1;
        }


        if (k = 5) {
           cnt5 = cnt5 + 1;
        }
        if (k = 7) {
           cnt7 = cnt7 + 1;
        }


        if (cnt5 = 2) {
           if (cnt7 = 1) {
               printf("YES\n");
           }
           else {
               printf("NO\n");
           }
         else {  
               printf("NO\n");
         }
     

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:49:10: error: expected '}' before 'else'
   49 |          else {
      |          ^~~~
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:11: error: ';' expected
      system.out.println("YES")
                               ^
1 error
Language: C

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

        int i;
        int j;
        int k;
        int cnt5;
        int cnt7;

	// 個数のの入力
        cnt5 = 0;
        cnt7 = 0;
        scanf("%d %d %d",$i,&j,&k);

        if (i = 5) {
           cnt5 = cnt5 + 1;
        }
        if (i = 7) {
           cnt7 = cnt7 + 1;
        }
 

        if (j = 5) {
           cnt5 = cnt5 + 1;
        }
        if (j = 7) {
           cnt7 = cnt7 + 1;
        }


        if (k = 5) {
           cnt5 = cnt5 + 1;
        }
        if (k = 7) {
           cnt7 = cnt7 + 1;
        }


        if (cnt5 = 2) {
           if (cnt7 = 1) {
               printf("YES\n");
           }
           else {
               printf("NO\n");
           }
         else {  
               printf("NO\n");
         }
     

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:16:26: error: '$i' undeclared (first use in this function); did you mean 'i'?
   16 |         scanf("%d %d %d",$i,&j,&k);
      |                          ^~
      |                          i
main.c:16:26: note: each undeclared identifier is reported only once for each function it appears in
main.c:49:10: error: expected '}' before 'else'
   49 |          else {
      |          ^~~~
Language: Java

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

Compiler output:
Main.java:3: error: incompatible types: String cannot be converted to int
 int a=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:4: error: incompatible types: String cannot be converted to int
 int b=new java.util.Scanner(System.in).nextLine();
                                                ^
Main.java:5: error: incompatible types: String cannot be converted to int
 int c=new java.util.Scanner(System.in).nextLine();
                                                ^
3 errors
Language: C

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



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

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



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

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



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

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



Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected identifier or '(' before ';' token
    4 | int A,B,C,;
      |           ^
main.c:15:8: error: 'o' undeclared (first use in this function)
   15 | return o;
      |        ^
main.c:15:8: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <studio.h>
int main (void)
{
int A,B,C,;
printf("Aの値:");
scanf ("%d",&A);
printf("Bの値:");
scanf ("%d",&B);
printf("Cの値:");
scanf ("%d",&C);
if(A==B==7&&C==5||A==C==7&&B==5||B==C==7&&A==5)
printf("Yes");
else
printf("No");
return o; 
}



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

import java.util.Scanner;
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&&b==5){
if(c==7){
System.out.println("YES");
}else{System.out.println("NO");}
}else{System.out.println("NO");}
 
if(a&&c==5){
if(b==7){
System.out.println("YES");
}else{System.out.println("NO");}
}else{System.out.println("NO");}
 
if(b&&c==5){
if(a==7){
System.out.println("YES");
}else{System.out.println("NO");}
}else{System.out.println("NO");}
 
 
}}

Compiler output:
Main.java:9: error: bad operand types for binary operator '&&'
if(a&&b==5){
    ^
  first type:  int
  second type: boolean
Main.java:15: error: bad operand types for binary operator '&&'
if(a&&c==5){
    ^
  first type:  int
  second type: boolean
Main.java:21: error: bad operand types for binary operator '&&'
if(b&&c==5){
    ^
  first type:  int
  second type: boolean
3 errors
Language: Java

import java.io.*;

class Main{
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in)\
);
        String str = br.readLine();
        int fiveCount = search(str,'5');
        int sevenCount = search(str,'7');
        if(fiveCount == 2 && sevenCount == 1){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }

    static int search(String str, char target){
        int count = 0;
        for(char x: str.toCharArray()){
            if(x == target){
                count++;
            }
        }
        return count;
    }
}

Compiler output:
Main.java:5: error: illegal character: '\'
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in)\
                                                                               ^
1 error
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&&b==5){
if(c==7){
System.out.println("YES");
}else{System.out.println("NO");}
}else{System.out.println("NO")}

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

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


}}

Compiler output:
Main.java:1: error: ';' expected
import java.util*.;
                ^
Main.java:13: error: ';' expected
}else{System.out.println("NO")}
                              ^
Main.java:19: error: ';' expected
}else{System.out.println("NO")}
                              ^
Main.java:25: error: ';' expected
}else{System.out.println("NO")}
                              ^
4 errors
Language: C++

#include<iostream>
using namespace std;

int main(){

                int a,b,c,d;
                cin>>a>>b>>c;
                d=a*b*c
                if(d==155) cout<<"Yes"<<"\n";
                else cout<<"No\n";

                return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'if'
    8 |                 d=a*b*c
      |                        ^
      |                        ;
    9 |                 if(d==155) cout<<"Yes"<<"\n";
      |                 ~~      
a.cc:10:17: error: 'else' without a previous 'if'
   10 |                 else cout<<"No\n";
      |                 ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){

                int a,b,c,d;
                cin>>a>>b>>c;
                d=a*b*c
                if(d==175) cout<<"Yes"<<"\n";
                else cout<<"No\n";

                return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: expected ';' before 'if'
    8 |                 d=a*b*c
      |                        ^
      |                        ;
    9 |                 if(d==175) cout<<"Yes"<<"\n";
      |                 ~~      
a.cc:10:17: error: 'else' without a previous 'if'
   10 |                 else cout<<"No\n";
      |                 ^~~~