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

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

public class Main10 {
	public static void main(String[]args){
		Scanner scan = new Scanner(System.in);
		
		int[] A = new int[3];
		
		for(int i = 0;i<3;i++){
			A[i] = scan.nextInt();
		}
		
		Arrays.sort(A);//昇順にソート
		
		if(A[0]==5&&A[1]==5&&A[2]==7)
			System.out.println("YES");
		else
			System.out.println("NO");
		
		
		
		
	}

}


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

#include <iostream>

using namespace std;

int main()
{
    int A ,B ,C ;

  cin >> A , B , C;

  if ( A ,B == 5 && C == 7 ||  B , C == 5 && A == 7 || A , C == 5 && B == 7  )

    cout << "YES";

    else
    cout << "NO";


    return 0;


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

#include <stdio.h>

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

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:19: error: lvalue required as left operand of assignment
    8 |   if(a==5&&b==5&&c=7){printf("YES");
      |                   ^
main.c:9:25: error: lvalue required as left operand of assignment
    9 |   }else if(a==5&&b==7&&c=5){printf("YES");
      |                         ^
main.c:10:25: error: lvalue required as left operand of assignment
   10 |   }else if(a==7&&b==5&&c=5){printf("YES");
      |                         ^
main.c:11:21: error: expected ')' before ';' token
   11 |   }else(printf("NO");)
      |        ~            ^
      |                     )
main.c:11:23: error: expected ';' before 'return'
   11 |   }else(printf("NO");)
      |                       ^
      |                       ;
   12 | 
   13 |   return 0;
      |   ~~~~~~
Language: C++

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

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

   #include <iostream>
using namespace std;

int main()
{
int  a, b, c;
cout<<"enter your poem 3 times"<<endl;
cin>> a>>b>>c;
if ( a = 5 && b = 5 && c = 7  )

	cout << "yes";

else

cout <<"NO";

    return 0;
}


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

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if(a = 7 && b = 5 $$ c = 5){
      |          ~~^~~~
a.cc:8:20: error: expected ')' before '$$'
    8 |   if(a = 7 && b = 5 $$ c = 5){
      |     ~              ^~~
      |                    )
a.cc:12:18: error: lvalue required as left operand of assignment
   12 |    else if(a = 5 && b = 7 $$ c = 5){
      |                ~~^~~~
a.cc:12:26: error: expected ')' before '$$'
   12 |    else if(a = 5 && b = 7 $$ c = 5){
      |           ~              ^~~
      |                          )
a.cc:16:17: error: lvalue required as left operand of assignment
   16 |   else if(a = 5 && b = 5 $$ c = 7){
      |               ~~^~~~
a.cc:16:25: error: expected ')' before '$$'
   16 |   else if(a = 5 && b = 5 $$ c = 7){
      |          ~              ^~~
      |                         )
Language: C++

#include <iostream>

using namespace std;

int main()
  char A , B ,C;
cin >> A >> B >> C;
if ( 1<= A , B ,C <=10)
  cout << "YES";
  else
    cout << "NO";


Compiler output:
a.cc:6:3: error: expected initializer before 'char'
    6 |   char A , B ,C;
      |   ^~~~
a.cc:7:1: error: 'cin' does not name a type
    7 | cin >> A >> B >> C;
      | ^~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if ( 1<= A , B ,C <=10)
      | ^~
a.cc:10:3: error: expected unqualified-id before 'else'
   10 |   else
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;

int main() {
    int v[3];
    rep(i,3) cin >> v[i];
    sort(all(v));
    if(v == {5,5,7}) cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: request for member 'begin' in 'v', which is of non-class type 'int [3]'
    4 | #define all(a) a.begin(),a.end()
      |                  ^~~~~
a.cc:10:10: note: in expansion of macro 'all'
   10 |     sort(all(v));
      |          ^~~
a.cc:4:28: error: request for member 'end' in 'v', which is of non-class type 'int [3]'
    4 | #define all(a) a.begin(),a.end()
      |                            ^~~
a.cc:10:10: note: in expansion of macro 'all'
   10 |     sort(all(v));
      |          ^~~
a.cc:11:13: error: expected primary-expression before '{' token
   11 |     if(v == {5,5,7}) cout << "YES" << endl;
      |             ^
a.cc:11:12: error: expected ')' before '{' token
   11 |     if(v == {5,5,7}) cout << "YES" << endl;
      |       ~    ^~
      |            )
Language: C++

#include<bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < n; ++i)
#define rep2(i,s,n) for (int i = s; i < n; ++i)
#define all(a) a.begin(),a.end()
using namespace std;

int main() {
    vector<int> v(3);
    rep(i,3) cin >> v[i];
    sort(all(v));
    if(v == {5,5,7}) cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '{' token
   11 |     if(v == {5,5,7}) cout << "YES" << endl;
      |             ^
a.cc:11:12: error: expected ')' before '{' token
   11 |     if(v == {5,5,7}) cout << "YES" << endl;
      |       ~    ^~
      |            )
Language: C

#include <stdio.h>
#include <string.h>
 
int main(){
 int line[3];
 int count5 = 0;
 int count7 = 0;
  int i;
  if(!((scanf("%d",&line[0])==1) 
		&& (scanf("%d",&line[1])==1)
	&& (scanf("%d",&line[2])==1))){
		return -1;
	}
 for(i=0;i<3,i++){
 	if(line[i]==5){
      count5++;
    }
    if(line[i]==7){
      count7++;
    }
 }
 if(count5==2&&count7==1){
  printf("YES");
 } else {
  printf("NO");
 }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:14:17: error: expected ';' before ')' token
   14 |  for(i=0;i<3,i++){
      |                 ^
      |                 ;
Language: C

#include <stdio.h>
#include <string.h>
 
int main(){
 int line[3];
 int count5 = 0;
 int count7 = 0;
  int i;
  if(!((scanf("%d",&line[0])==1) 
		&& (scanf("%d",&line[1])==1)
	&& (scanf("%d",&line[2])==1)){
		return -1;
	}
 for(i=0;i<3,i++){
 	if(line[i]==5){
      count5++;
    }
    if(line[i]==7){
      count7++;
    }
 }
 if(count5==2&&count7==1){
  printf("YES");
 } else {
  printf("NO");
 }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:38: error: expected ')' before '{' token
   11 |         && (scanf("%d",&line[2])==1)){
      |                                      ^
      |                                      )
main.c:9:5: note: to match this '('
    9 |   if(!((scanf("%d",&line[0])==1)
      |     ^
main.c:28:1: error: expected expression before '}' token
   28 | }
      | ^
Language: C

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

int main(){
 int line[3];
 int count5 = 0;
 int count7 = 0;
  int i;
  if(!((scanf("%d",&line[0])==1) 
		&& (scanf("%d",&line[1])==1)
	&& (scanf("%d",&c),&line[2]))){
		return -1;
	}
 for(i=0;i<3,i++){
 	if(line[i]==5){
      count5++;
    }
    if(line[i]==7){
      count7++;
    }
 }
 if(count5==2&&count7==1){
  printf("YES");
 } else {
  printf("NO");
 }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:25: error: 'c' undeclared (first use in this function)
   11 |         && (scanf("%d",&c),&line[2]))){
      |                         ^
main.c:11:25: note: each undeclared identifier is reported only once for each function it appears in
main.c:14:17: error: expected ';' before ')' token
   14 |  for(i=0;i<3,i++){
      |                 ^
      |                 ;
Language: Java

import java.util.*;
 
public class Main {
 
public static void main(String[] args){
  	int count5 = 0;
  	int count7 = 0;
	Scanner sc = new Scanner(System.in);
    Stirng[] line = sc.nextLine().split(" ");
	for(String n:line){
    	if(n.equals("5")){
        	count5++;
        }
       	if(n.equals("7")){
        	count7++;
        }
    }
  if(count5==2 && count7==1){
  	System.out.println("OK");
  }else {
	System.out.println("NG");
  }
	
}
}

Compiler output:
Main.java:9: error: cannot find symbol
    Stirng[] line = sc.nextLine().split(" ");
    ^
  symbol:   class Stirng
  location: class Main
1 error
Language: Java

import java.util.*;
 
public class Main {
 
public static void main(String[] args){
  	int count5 = 0;
  	int count7 = 0;
	Scanner sc = new Scanner(System.in);
    String[] line = sc.readLine().split(" ");
	for(String n:line){
    	if(n.equals("5")){
        	count5++;
        }
       	if(n.equals("7")){
        	count7++;
        }
    }
  if(count5==2 && count7==1){
  	System.out.println("OK");
  }else {
	System.out.println("NG");
  }
	
}
}

Compiler output:
Main.java:9: error: cannot find symbol
    String[] line = sc.readLine().split(" ");
                      ^
  symbol:   method readLine()
  location: variable sc of type Scanner
1 error
Language: Java

import java.util.*;
 
public class Main {
 
public static void main(String[] args){
  	int count5 = 0;
  	int count7 = 0;
	Scanner sc = new Scanner(System.in);
    Stirng[] line = sc.readLine().split(" ");
	for(String n:line){
    	if(n.equals("5")){
        	count5++;
        }
       	if(n.equals("7")){
        	count7++;
        }
    }
  if(count5==2 && count7==1){
  	System.out.println("OK");
  }else {
	System.out.println("NG");
  }
	
}
}

Compiler output:
Main.java:9: error: cannot find symbol
    Stirng[] line = sc.readLine().split(" ");
    ^
  symbol:   class Stirng
  location: class Main
Main.java:9: error: cannot find symbol
    Stirng[] line = sc.readLine().split(" ");
                      ^
  symbol:   method readLine()
  location: variable sc of type Scanner
2 errors
Language: Java

import java.util.*;

public class Main {

public static void main(String[] args){
  	int count5 = 0;
  	int count7 = 0;
	Scanner sc = new Scanner(System.in);
    Stirng[] line = sc.readLine().split(" ");
	for(String n:line){
    	if(n.equals("5")){
        	count5++;
        }
       	if(n.equals("7")){
        	count7++;
        }
    }
  if(count5==2 && count7==1){
  	System.out.println("OK");
  }else {
	System.out.println("NG")  
  }
	
}
}

Compiler output:
Main.java:21: error: ';' expected
	System.out.println("NG")  
	                        ^
1 error
Language: C

#include <stdio.h>
 
int Main(){
 int a;
 int b;
 int c;
 scanf("%d",&a);
 scanf("%d",&b);
 scanf("%d",&c);
 
 if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)){
  printf("OK");
 } else {
  printf("NG");
 }
  return 1;
}

Compiler output:
/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;
 int b;
 int c;
 scanf("%d",a);
 scanf("%d",b);
 scanf("%d",c);
 
 if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)){
  printf("OK");
 } else {
  printf("NG");
 }
  return 1;
}

Compiler output:
/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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B, C;
  cin>>A >> B>> C;
  if(A+B+C=17&&A*B*C=175){
    cout <<"Yes"<<endl;
  }
  else{
    cout <<"NO"<<endl;
  }
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B, C;
  cin>>A >> B>> C;
  if(A+B+C=17&&ABC=175){
    cout <<"Yes"<<endl;
  else{
    cout <<"NO"<<endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: 'ABC' was not declared in this scope
    7 |   if(A+B+C=17&&ABC=175){
      |                ^~~
a.cc:9:3: error: expected '}' before 'else'
    9 |   else{
      |   ^~~~
a.cc:7:24: note: to match this '{'
    7 |   if(A+B+C=17&&ABC=175){
      |                        ^
a.cc:11:4: error: expected '}' at end of input
   11 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

#include<stdio.h>
int main(void){
  int a[3],cnt5=cnt7=0;
  for(int i=0;i<3;i++){
    scanf("%d",a[i]);
    if(a[i]==5){
      cnt5++;
    }
    if(a[i]==7){
      cnt7++;
    }
  }
  if(cnt5==1&&cnt7==1){
    printf("YES\n");
  }else{
    printf("NO\n");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: 'cnt7' undeclared (first use in this function); did you mean 'cnt5'?
    3 |   int a[3],cnt5=cnt7=0;
      |                 ^~~~
      |                 cnt5
main.c:3:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main() {
  int A, B, C;
  cin >> A >> B >> C;

  if (A == 5 && B == 5 && C == 7) {
    cout << "YES" << endl;
  }
  else if (A == 5 && B == 7 && C == 5) {
    cout << "YES" << endl;
  }
  else if (A == 7 && B == 5 && C == 5) {
    cout << "YES" << endl;
  }
  else {
    cout << "NO" << endl;
  }

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
	#freopen("input.txt","r",stdin);
	#freopen("output.txt","w",stdout);
	#freopen("error.txt","w",stderr);
	int a,b,c;
  cin>>a>>b>>c;
  if((a==7 && b==5 && c==5)||(a==5 && b==7 && c==5)||(a==5 && b==5 && c==7))
    cout<<"YES";
  else cout<<"NO";
	return 0;
}

Compiler output:
a.cc:5:10: error: invalid preprocessing directive #freopen
    5 |         #freopen("input.txt","r",stdin);
      |          ^~~~~~~
a.cc:6:10: error: invalid preprocessing directive #freopen
    6 |         #freopen("output.txt","w",stdout);
      |          ^~~~~~~
a.cc:7:10: error: invalid preprocessing directive #freopen
    7 |         #freopen("error.txt","w",stderr);
      |          ^~~~~~~
Language: C++

a = input()
b = input()
c = input()

if((a+b+c)==17):
  if(a==5):
    if(b==7 or c==7):
      print('YES')
  elif(a==7):
    if(b==5 and c==5):
      print('YES')
  else:
    print('NO')

else:
  print('NO')

   

Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |       print('YES')
      |             ^~~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |       print('YES')
      |             ^~~~~
a.cc:13:11: warning: multi-character character constant [-Wmultichar]
   13 |     print('NO')
      |           ^~~~
a.cc:16:9: warning: multi-character character constant [-Wmultichar]
   16 |   print('NO')
      |         ^~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = input()
      | ^
Language: C

#include<stdio.h>

int main(void) {
	int a[2], i, sum = 0;

	for (i = 0; i < 3; i++) {
		scanf("%d" &a[i]);
	}
	for (i = 0; i < 3; i++) {
		if (a[i] != 5 || a[i] != 7) {
			puts("No");
			return 0;
		}
		sum += a[i];
	}
	if (sum == 12)
		puts("Yes");
	else
		puts("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:28: error: invalid operands to binary & (have 'char *' and 'int')
    7 |                 scanf("%d" &a[i]);
      |                       ~~~~ ^~~~~
      |                       |      |
      |                       char * int
Language: C

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

  else printf("NO");

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected expression before 'else'
    7 |         else if((a==5&&b==5)||(b==5&&c==5)||(c==5&&a==5))
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
 
using namespace std;
 
 
#define mod(cans) cans%10**9+7
#define debug(x) cout << "Debug" << x << "\n"
#define rep(i,n) for(int i=0;i<n;i++)
#define repr(i,n) for(int i=n-1;i>=0;i--)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define cin_pl(n,x) rep(i,n){cin>>x[i];}
#define all(a) (a).begin(),(a).end()
#define rall(a) (a).rbegin(),(a).rend()
#define prians(Answer) cout<<Answer<<"\n"
#define TF(X) X==1?cout<<"Yes\n":cout<<"No\n"
#define elcon else{continue;}
 
typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<string> vs;
typedef vector<vector<int> > matrix;
typedef pair<int,int> pii;
typedef vector<pii> vpi;
typedef greater<int> gi;
typedef vector<unsigned> vu;


ll gcd(ll x, ll y) { return (y == 0) ? x : gcd(y, x % y); }
bool is_prime(const unsigned n){
    switch(n){
        case 0:
        case 1: return false;
        case 2: return true;
    }
 
 
    for(unsigned i=2;i<n;++i){
        if(n%i == 0) return false;
    }
 
    return true;
}

int main()
{
    vi p(3);
    cin_pl(3,p);
    sort(all(p));
    if(p[0]==5&&p[i]==5&&p[2]==7)cout<<"YES";
    else cout<<"NO";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:50:19: error: 'i' was not declared in this scope
   50 |     if(p[0]==5&&p[i]==5&&p[2]==7)cout<<"YES";
      |                   ^
Language: C++

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

int main() {
	int arr[3];
  	cin >> arr[0] >> arr[1] >> arr[2];
  	sort(arr, arr+3);
  	cout (arr[0] == 5 && arr[1] == 5 && arr[2] == 7)
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); ++i)

int main(){
	vi a(3);
	bool f1=false,sv=false,f2=false;
	rep(i,3){
		cin>>a.at(i);
		if(a.at(i)==5){
			if(!f1)f1=true;
			else f2=true;
		}else if(a.at(i)==7)sv=true;
	}
	if(f1&&sv&&f2)
		cout<<"YES\n"s;
	else
		cout<<"NO\n"s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'vi' was not declared in this scope
    6 |         vi a(3);
      |         ^~
a.cc:9:22: error: 'a' was not declared in this scope
    9 |                 cin>>a.at(i);
      |                      ^
Language: C++

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> A >> B >> C;
      |         ^~~
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "YES" << endl;
      |         ^~~~
a.cc:13:26: error: 'endl' was not declared in this scope
   13 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "NO" << endl;
      |         ^~~~
a.cc:15:25: error: 'endl' was not declared in this scope
   15 |         cout << "NO" << endl;
      |                         ^~~~
Language: C++

#include<iostream>
#include<vector>
#include <cmath>
#include <map>
#include <cctype>
#include <algorithm>
#include <string>
using namespace std;
int main(void){
    string a;
    int a[2] ;
    a[0] = 0;
    a[1] = 0;

    for(int i = 0; i < 3 ; i++){
        cin >> a ;
        size_t n = a.size();
        if(n == 5){
            a[0]++;
        }else if(n == 7){
            a[1]++:
        }
    } 

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: conflicting declaration 'int a [2]'
   11 |     int a[2] ;
      |         ^
a.cc:10:12: note: previous declaration as 'std::string a'
   10 |     string a;
      |            ^
a.cc:21:19: error: expected ';' before ':' token
   21 |             a[1]++:
      |                   ^
      |                   ;
Language: C

#include<iostream>
using namespace std;

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

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

    #include <bits/stdc++.h>
     
    using namespace std
      
    int main()
    {
      int A , B , C ;
      
      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\n" ;
      }
      else
      {
        cout << "NO\n" ;
      }
      return 0 ;
    }

Compiler output:
a.cc:3:24: error: expected ';' before 'int'
    3 |     using namespace std
      |                        ^
      |                        ;
    4 | 
    5 |     int main()
      |     ~~~
Language: Java

import java.util.Scanner;

public class IroHaAndHaiku {
    public static void main(String[] args) {
        try (Scanner sc = new Scanner(System.in)) {
            int A = sc.nextInt();
            int B = sc.nextInt();
            int C = sc.nextInt();
            System.out.println((
                    (A == 5 && B == 5 && C == 7) || (A == 5 && B == 7 && C == 5) || (A == 7 && B == 5 && C == 5)
            ) ? "YES" : "NO");
        }
    }
}


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

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

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

#include<iostream>
#include<vector>

int main () {
  vector<int> data_array(cin);
  if (data_array.size != 3) cout << "NO";
  
  int value5 = 0;
  int value7 = 0;
  
  for (int& element : data_array) {
    if (element == 5) value5++;
    if (element == 7) value7++;
  }
  
  if (value5 == 2 and value7 == 1) cout << "YES";
  else cout << "NO";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> data_array(cin);
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> data_array(cin);
      |          ^~~
a.cc:6:7: error: 'data_array' was not declared in this scope
    6 |   if (data_array.size != 3) cout << "NO";
      |       ^~~~~~~~~~
a.cc:6:29: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if (data_array.size != 3) cout << "NO";
      |                             ^~~~
      |                             std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:23: error: 'data_array' was not declared in this scope
   11 |   for (int& element : data_array) {
      |                       ^~~~~~~~~~
a.cc:16:36: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   if (value5 == 2 and value7 == 1) 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:17:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   else 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 <stdio.h>
#include <stdlib.h>

int
main(int argc. char *argv[])
{
  int n1, n2, n3;
  
  scanf("%d %d %d", &n1, &n2, &n3);
  if (n1*n2*n3 == 5*7*5)
    printf("YES\n");
  else
    printf("NO\n");
}

Compiler output:
main.c:5:14: error: expected ';', ',' or ')' before '.' token
    5 | main(int argc. char *argv[])
      |              ^
Language: Java

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

        int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();

        if((a-5)*(b-5)*(c-7) == 0 || (a-5)*(b-7)*(c-5) == 0 || (a-7)*(b-5)*(c-5) == 0) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
}

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

import java.util.*;

public class ABC042A {

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

        int N, count5, count7;
        count5 = count7 = 0;

        for (int i = 0; i < 3; i++) {
            N = sc.nextInt();
            if (N == 5) {
                ++count5;
            }else if (N == 7){
                ++count7;
            }
        }

        if(count5 == 2 && count7 == 1) {
            System.out.print("YES");
        }else{
            System.out.print("NO");
        }

        sc.close();
    }
}

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

import java.util.Scanner;

public class ABC_042 {

	public static void main(String[] args) {

		//整数を三つ受けとる

		int number1 = 0;
		int number2 = 0;
		int number3 = 0;
		//
		String anser = "NO";

		Scanner scan = new Scanner(System.in);

         number1 = scan.nextInt();
         number2 = scan.nextInt();
         number3 = scan.nextInt();


		//処理開始
		if(checkFiveOrSeven(number1)) {
			if(checkFiveOrSeven(number2)) {
				if(checkFiveOrSeven(number3)) {
					if(number1 + number2 + number3 == 17) {
						anser = "YES";
					}
				}
			}

		}

		System.out.println(anser);

	}

	private static boolean checkFiveOrSeven(int number) {
		if(number ==5 || number == 7) {
			return true;
		}
		return false;
	}

}



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

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

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

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

import java.util.Scanner;

public class MySample {

	public static void main(String[] args) {
		
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
      int sum = 0;
      
      if(a == 5 || a == 7) {
      	sum += a;
      }
      if(b == 5 || b == 7) {
      	sum += b;
      }
      if(c == 5 || c == 7) {
      	sum += c;
      }
      
      if(sum == 17) {
      	System.out.print("YES");
      } else {
      	System.out.print("NO");
      }
      scan.close();
	}

}


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

import java.util.Scanner;

public class AtCoder {

	public static void main(String[] args) {
		 Scanner scan = new Scanner(System.in);
		 String str = scan.nextLine();
		 String[] strContena = str.split(" ");
       int sum = 0;
       
       if(strContena[0] == "5" || strContena[0] == "7") {
      	 sum += Integer.parseInt(strContena[0]);
       }
       if(strContena[1] == "5" || strContena[1] == "7") {
      	 sum += Integer.parseInt(strContena[1]);
       }
       if(strContena[2] == "5" || strContena[2] == "7") {
      	 sum += Integer.parseInt(strContena[2]);
       }
       
       if(sum == 17) {
      	 System.out.print("Yes");
       }else {
      	 System.out.print("No");
       }
	}
}


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

#include <iostream>
#include <stdio.h>

int main()
{
  int a;
  int seven, five;

  seven = five = 0;

  for ( int i = 0; i < 3; ++i ) {
    cin >> a;
    if ( a == 7 ) ++seven;
    if ( a == 5 ) ++five;
  }

  if ( seven == 2 && five == 1 ) cout << "Yes\n";
  else "No\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 |     cin >> a;
      |     ^~~
      |     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:17:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   if ( seven == 2 && five == 1 ) cout << "Yes\n";
      |                                  ^~~~
      |                                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: Java

import java.util.Arrays;
import java.util.*;
public class Main{
  public static void main(String args[]){
    Scanner sc = new Scanner(System.in);
      int[] abc = new int[3];
      int five =0;
      int seven = 0;
      String ans = "NO";
      for(int i=0;i<3;i++){
        int abc[i] = sc.nextInt();
        if(abc[i]==5){
          five++;
        }else if(abc[i]==7){
          seven++;
        }
      }
      if(five==2&&seven==1){
        ans = "YES";
      }
      System.out.println(ans);
    }
}


Compiler output:
Main.java:11: error: ']' expected
        int abc[i] = sc.nextInt();
                ^
Main.java:11: error: ';' expected
        int abc[i] = sc.nextInt();
                 ^
2 errors
Language: Java

import java.util.Scanner;

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

        int[] a = new int[3];

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

        String yon = "NO";

        if(a[0] == 5){
            if(a[1] == 5){
                if(a[2] == 7){
                    yon = "YES";
                }
            }else if(a[1] == 7){
                if(a[2] == 5){
                    yon = "NO";
                }
            }
        }else if(a[0] == 7){
            if(a[1] == 5){
                if(a[2] == 5){
                    yon = "YES";
                }
            }
        }

        System.out.println(yon);
    }
}


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

import java.util.Scanner;

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

        int[] a = new int[3];

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

        String yon = "NO";

        if(a[0] == 5){
            if(a[1] == 5){
                if(a[2] == 7){
                    yon = "YES";
                }
            }else if(a[1] == 7){
                if(a[3] == 5){
                    yon = "NO";
                }
            }
        }else if(a[0] == 7){
            if(a[1] == 5){
                if(a[2] == 5){
                    yon = "YES";
                }
            }
        }

        System.out.println(yon);
    }
}


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

#incude<stdio.h>
it main(void){
  int a[3];
  scanf("%d %d %d",a[0],a[1],a[2]);
  int i;
  int count5=0,count7=0;
  for(i=0;i<3;i++){
    if(a[i]!=5||a[i]!=7){
      printf("NO");
      break;
    }
    else if(a[i]==5){
      count5++;
    }
    else if(a[i]==7){
      count7++;
    }
  }
  if(count5==2&&count7==1){
    printf("YES");
  }
  return 0;
}

    
    

Compiler output:
main.c:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude<stdio.h>
      |  ^~~~~~
      |  include
main.c:2:1: error: unknown type name 'it'; did you mean 'int'?
    2 | it main(void){
      | ^~
      | int
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d %d %d",a[0],a[1],a[2]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #incude<stdio.h>
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d %d %d",a[0],a[1],a[2]);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("NO");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:20:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   20 |     printf("YES");
      |     ^~~~~~
main.c:20:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

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

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

#define rep(i,n) for(int i = 0; i < (int)n; ++i)

#define INF 100000000

int main() {
  vector<int> q;
  rep(i,3) cin >> q.push_back();
  sort(q.begin(), q.end());
  rep(i,3){
    if(i < 2 && q.at(i) != 5){
      cout << "NO" << endl;
      return 0;
    }
    else if (i == 2 && q.at(i) != 7){
      cout << "NO" << endl;
      return 0;
    }
  }
  cout << "YES" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:30: error: no matching function for call to 'std::__debug::vector<int>::push_back()'
   11 |   rep(i,3) cin >> q.push_back();
      |                   ~~~~~~~~~~~^~
In file included from /usr/include/c++/14/vector:76,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:2:
/usr/include/c++/14/debug/vector:583:9: note: candidate: 'template<class _Up> typename __gnu_cxx::__enable_if<(! std::__are_same<_Up, bool>::__value), void>::__type std::__debug::vector<_Tp, _Allocator>::push_back(_Tp&&) [with _Tp = int; _Allocator = std::allocator<int>]'
  583 |         push_back(_Tp&& __x)
      |         ^~~~~~~~~
/usr/include/c++/14/debug/vector:583:9: note:   candidate expects 1 argument, 0 provided
/usr/include/c++/14/debug/vector:566:7: note: candidate: 'void std::__debug::vector<_Tp, _Allocator>::push_back(const _Tp&) [with _Tp = int; _Allocator = std::allocator<int>]'
  566 |       push_back(const _Tp& __x)
      |       ^~~~~~~~~
/usr/include/c++/14/debug/vector:566:7: note:   candidate expects 1 argument, 0 provided
Language: C++

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

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

#include<stdio.h>
int main(void)
{
  int A,B,C;
  g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
  
  puts("整数を入力してください。");
  printf("a:\n"); 
  scanf("%d",&A);
  printf("b:\n");
  scanf("%d",&B);
  printf("c:\n");
  scanf("%d",&C);
  
  if(A+B+C==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;
 
}

Compiler output:
main.c: In function 'main':
main.c:5:3: error: 'g' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |   ^
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:5:8: error: 'O2' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |        ^~
main.c:5:12: error: 'Wall' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |            ^~~~
main.c:5:18: error: 'Wno' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |                  ^~~
main.c:5:22: error: 'unused' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |                      ^~~~~~
main.c:5:29: error: 'result' undeclared (first use in this function)
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |                             ^~~~~~
main.c:5:35: error: expected ';' before 'hello'
    5 |   g++ -O2 -Wall -Wno-unused-result hello.cpp -o hello
      |                                   ^~~~~~
      |                                   ;
Language: C


int main(void)
{
  int A,B,C;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&A);
  printf("b:\n"); scanf("%d",&B);
  printf("c:\n"); scanf("%d",&C);
  
  if(A+B+C==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;
 
}
#include<stdio.h>
int main(void)
{
  int A,B,C;
  
  puts("整数を入力してください。");
  printf("a:\n"); 
  scanf("%d",&A);
  printf("b:\n");
  scanf("%d",&B);
  printf("c:\n");
  scanf("%d",&C);
  
  if(A+B+C==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    6 |   puts("整数を入力してください。");
      |   ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | 
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&A);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&A);
      |                   ^~~~~
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c: At top level:
main.c:20:5: error: redefinition of 'main'
   20 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int A,B,C;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&A);
  printf("b:\n"); scanf("%d",&B);
  printf("c:\n"); scanf("%d",&C);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:11:6: error: 'a' undeclared (first use in this function)
   11 |   if(a+b+c==17)
      |      ^
main.c:11:6: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:8: error: 'b' undeclared (first use in this function)
   11 |   if(a+b+c==17)
      |        ^
main.c:11:10: error: 'c' undeclared (first use in this function)
   11 |   if(a+b+c==17)
      |          ^
Language: C

#include<stdio.h>
int main(void)
{
  int A,B,C;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:7:31: error: 'a' undeclared (first use in this function)
    7 |   printf("a:\n"); scanf("%d",&a);
      |                               ^
main.c:7:31: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:31: error: 'b' undeclared (first use in this function)
    8 |   printf("b:\n"); scanf("%d",&b);
      |                               ^
main.c:9:31: error: 'c' undeclared (first use in this function)
    9 |   printf("c:\n"); scanf("%d",&c);
      |                               ^
Language: C

#inlcude<stdio.h>
int main(void)
{
  int a,b,c;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0
}
#inlcude<stdio.h>
int main(void)
{
  int a,b,c;
  
  puts("整数を入力してください。");
  printf("a:\n"); scanf("%d",&a);
  printf("b:\n"); scanf("%d",&b);
  printf("c:\n"); scanf("%d",&c);
  
  if(a+b+c==17)
    puts("YES");
  else
    puts("NO");
  
  return 0;
}


Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    6 |   puts("整数を入力してください。");
      |   ^~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'puts'
  +++ |+#include <stdio.h>
    1 | #inlcude<stdio.h>
main.c:7:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&a);
      |   ^~~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:7:19: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   printf("a:\n"); scanf("%d",&a);
      |                   ^~~~~
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:7:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:7:19: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:16:11: error: expected ';' before '}' token
   16 |   return 0
      |           ^
      |           ;
   17 | }
      | ~          
main.c: At top level:
main.c:18:2: error: invalid preprocessing directive #inlcude; did you mean #include?
   18 | #inlcude<stdio.h>
      |  ^~~~~~~
      |  include
main.c:19:5: error: redefinition of 'main'
   19 | int main(void)
      |     ^~~~
main.c:2:5: note: previous definition of 'main' with type 'int(void)'
    2 | int main(void)
      |     ^~~~
main.c: In function 'main':
main.c:24:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   24 |   printf("a:\n"); scanf("%d",&a);
      |   ^~~~~~
main.c:24:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:24:19: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   24 |   printf("a:\n"); scanf("%d",&a);
      |                   ^~~~~
main.c:24:19: note: include '<stdio.h>' or provide a declaration of 'scanf'