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

#include<stdio.h>
void cmp(const void*a,const void*b){
  return (int*)*a-(int*)*b;}
int main(){
  int i,a[3];
  for(i=0;i<3:i++)
    scanf("%d",&a[i]);
  qsort(a,3,sizeof(int),cmp);
  if(a[0]=a[1]==5&&a[2]==7)
    printf("YES\n");
  else
    printf("NO\n");
  return 0;}

Compiler output:
main.c: In function 'cmp':
main.c:3:16: warning: dereferencing 'void *' pointer
    3 |   return (int*)*a-(int*)*b;}
      |                ^~
main.c:3:10: error: invalid use of void expression
    3 |   return (int*)*a-(int*)*b;}
      |          ^
main.c:3:25: warning: dereferencing 'void *' pointer
    3 |   return (int*)*a-(int*)*b;}
      |                         ^~
main.c:3:19: error: invalid use of void expression
    3 |   return (int*)*a-(int*)*b;}
      |                   ^
main.c:3:10: error: 'return' with a value, in function returning void [-Wreturn-mismatch]
    3 |   return (int*)*a-(int*)*b;}
      |          ^
main.c:2:6: note: declared here
    2 | void cmp(const void*a,const void*b){
      |      ^~~
main.c: In function 'main':
main.c:6:14: error: expected ';' before ':' token
    6 |   for(i=0;i<3:i++)
      |              ^
      |              ;
main.c:8:3: error: implicit declaration of function 'qsort' [-Wimplicit-function-declaration]
    8 |   qsort(a,3,sizeof(int),cmp);
      |   ^~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a,b,c;
  cin>>a>>b>>c;
  vector<int> ans{a, b, c};
  sort(ans.begin(), ans.end());
  if(ans=={5,5,7}){
    cout<<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected primary-expression before '{' token
    8 |   if(ans=={5,5,7}){
      |           ^
a.cc:8:11: error: expected ')' before '{' token
    8 |   if(ans=={5,5,7}){
      |     ~     ^
      |           )
Language: C++

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

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

#include <iostream>
#include <vector>
int main(void) {
	std::vector<int> a(3);
	std::cin >> a.at(0) >> a.at(1) >> a.at(2);
	int sev = 0, fiv = 0;
	for (int i = 0; i < 3; i++) {
		if (a. at(i) == 5) fiv++;
		if (a.at(i) == 7) sev++;
	}
	if (fiv == 2 && sev == 1) { std::cout << "YES" << std::endl; }
	else { std::cout << "NO" << std::endl; }
	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:18: error: expected '}' at end of input
   13 |         return 0;
      |                  ^
a.cc:3:16: note: to match this '{'
    3 | int main(void) {
      |                ^
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:7:21: error: lvalue required as left operand of assignment
    7 |   if(A = 5 && B = 5 && C = 7)cout << "yes" << endl;
      |                   ~~^~~~
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |   else if(A = 5 && B = 7 && C = 5)cout << "yes" << endl;
      |                        ~~^~~~
a.cc:9:26: error: lvalue required as left operand of assignment
    9 |   else if(A = 7 && B = 5 && C = 5)cout << "yes" << endl;
      |                        ~~^~~~
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:7:21: error: lvalue required as left operand of assignment
    7 |   if(A = 5 && B = 5 && C =7)cout << "yes" << endl;
      |                   ~~^~~~
a.cc:8:26: error: lvalue required as left operand of assignment
    8 |   else if(A = 5 && B = 7 && C = 5)cout << "yes" << endl;
      |                        ~~^~~~
a.cc:9:26: error: lvalue required as left operand of assignment
    9 |   else if(A = 7 && B = 5 && C = 5)cout << "yes" << endl;
      |                        ~~^~~~
Language: C++

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

int main(){
  vector<int> v(3);
  cin>>v[0]>>v[1]>>v[2];
  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: In function 'int main()':
a.cc:8:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    8 |   sort(v.begin(),v.end());
      |   ^~~~
      |   short
Language: C++

#include <iostream> 
using namespace std;

int main(){
  vector<int> v(3);
  cin>>v[0]>>v[1]>>v[2];
  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: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> v(3);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> v(3);
      |          ^~~
a.cc:6:8: error: 'v' was not declared in this scope
    6 |   cin>>v[0]>>v[1]>>v[2];
      |        ^
a.cc:7:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |   sort(v.begin(),v.end());
      |   ^~~~
      |   short
Language: C

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

int main(void){
  int iroha = calloc(3, sizeof(int));
  scanf("%d%d%d",iroha,iroha+1,iroha+2);
  int count[2]={0,0};
  for(int i = 0; i < 3; i++){
    if( iroha[i] == 5 )count[0] += 1;
    else if( iroha[i] == 7)count[1] += 1;
  }
  
  if( count[0] == 2 && count[1] == 1)printf("YES\n");
  else printf("NO\n");
  free(iroha);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: error: initialization of 'int' from 'void *' makes integer from pointer without a cast [-Wint-conversion]
    5 |   int iroha = calloc(3, sizeof(int));
      |               ^~~~~~
main.c:9:14: error: subscripted value is neither array nor pointer nor vector
    9 |     if( iroha[i] == 5 )count[0] += 1;
      |              ^
main.c:10:19: error: subscripted value is neither array nor pointer nor vector
   10 |     else if( iroha[i] == 7)count[1] += 1;
      |                   ^
main.c:15:8: error: passing argument 1 of 'free' makes pointer from integer without a cast [-Wint-conversion]
   15 |   free(iroha);
      |        ^~~~~
      |        |
      |        int
In file included from main.c:2:
/usr/include/stdlib.h:687:25: note: expected 'void *' but argument is of type 'int'
  687 | extern void free (void *__ptr) __THROW;
      |                   ~~~~~~^~~~~
Language: C++

#inlude<iostream>
#include<string>
using namespace std;
int main()
{
  int arr[3];int cnt1=0;int cnt2=0;
  for(int i=0;i<3;i++)
  {
    if(arr[i]==5)
      cnt1++;
    else if(arr[i]==7)
      cnt2++;
  }
  if(cnt1==2&&cnt2==1)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<iostream>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"NO"<<endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:17: error: 'endl' was not declared in this scope
   17 |     cout<<"NO"<<endl;
      |                 ^~~~
a.cc:17:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlude<bits/stdc++.h>
using namespace std;
int main()
{
  int arr[3];int cnt1=0;int cnt2=0;
  for(int i=0;i<3;i++)
    cin>>arr[i];
  for(int i=0;i<3;i++)
  {
    if(arr[i]==5)
      cnt1++;
    else if(arr[i]==7)
      cnt2++;
  }
  if(cnt1==2&&cnt2==1)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin>>arr[i];
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlude<bits/stdc++.h>
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:18: error: 'endl' was not declared in this scope
   16 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlude<bits/stdc++.h>
a.cc:18:5: error: 'cout' was not declared in this scope
   18 |     cout<<"NO"<<endl;
      |     ^~~~
a.cc:18:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:17: error: 'endl' was not declared in this scope
   18 |     cout<<"NO"<<endl;
      |                 ^~~~
a.cc:18:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#inlude<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int arr[3];int cnt1=0;int cnt2=0;
  for(int i=0;i<3;i++)
  {
    if(arr[i]==5)
      cnt1++;
    else if(arr[i]==7)
      cnt2++;
  }
  if(cnt1==2&&cnt2==1)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout<<"YES"<<endl;
      |     ^~~~
a.cc:3:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<string>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:15:18: error: 'endl' was not declared in this scope
   15 |     cout<<"YES"<<endl;
      |                  ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<string>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout<<"NO"<<endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:17: error: 'endl' was not declared in this scope
   17 |     cout<<"NO"<<endl;
      |                 ^~~~
a.cc:17:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  long int arr[3],i,c=0,d=0;
  for(i=0;i<n;i++)
  {
    cin>>arr[i];
  }
  for(i=0;i<n;i++)
  {
    if(arr[i]==5)c++;
    else if(arr[i]==7)d++;
  }
  if(c==2 && d==1)
  {
    cout<<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }
  return 0;
}

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

import java.util.Scanner;

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

Compiler output:
Main.java:23: error: reached end of file while parsing
    }
     ^
1 error
Language: C

#include <stdio.h>
int main(){
	int A;
	int B;
	int C;
	//A,B,Cの入力を受ける
  	scanf("%d %d %d",&A,&B,&C);
  	if(A+B+C==17){
      if((A==7&&B==C)||(B==7&&A==C)||(C==7&&A==B)){
      	printf("YES")
      }
    }else{
    	printf("NO");
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before '}' token
   10 |         printf("YES")
      |                      ^
      |                      ;
   11 |       }
      |       ~
Language: C++

#include <iostream>
#include <stdio.h>
#include <vector>
#include <cmath>
#include <algorithm>
#include <utility>
#include <map>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:19: error: 'n' was not declared in this scope; did you mean 'yn'?
   15 |     sort(niz, niz+n);
      |                   ^
      |                   yn
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: expected ',' or ';' before 'cin'
    8 |    cin >> x[0] >> x[1] >> x[2];
      |    ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
    int n,l;
    cin>>n>>l;
    string s[n];
    for(int i=0;i<n;i++){
      cin>>s[i];
    }
    sort(s.begin(),s.end());
    for(int i=0;i<n;i++){
      cout<<s[i];
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: request for member 'begin' in 's', which is of non-class type 'std::string [n]' {aka 'std::__cxx11::basic_string<char> [n]'}
   11 |     sort(s.begin(),s.end());
      |            ^~~~~
a.cc:11:22: error: request for member 'end' in 's', which is of non-class type 'std::string [n]' {aka 'std::__cxx11::basic_string<char> [n]'}
   11 |     sort(s.begin(),s.end());
      |                      ^~~
Language: C++

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

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

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,c;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a >> b >> c;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==7&&b==5&&c==5)){
      |   ^~
a.cc:8:4: error: expected unqualified-id before 'else'
    8 |   }else{
      |    ^~~~
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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


Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,c;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a >> b >> c;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
      |   ^~
a.cc:8:4: error: expected unqualified-id before 'else'
    8 |   }else{
      |    ^~~~
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:3: error: expected primary-expression before 'int'
    4 |   int a,b,c;
      |   ^~~
a.cc:4:3: error: expected '}' before 'int'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> a >> b >> c;
      |   ^~~
a.cc:6:3: error: expected unqualified-id before 'if'
    6 |   if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
      |   ^~
a.cc:8:4: error: expected unqualified-id before 'else'
    8 |   }else{
      |    ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int a,b,c;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> a >> b >> c;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if((a=5&&b=5&&c=7)||(a=5&&b=7&&c=5)||(a=7&&b=5&&c=5)){
      |   ^~
a.cc:9:4: error: expected unqualified-id before 'else'
    9 |   }else{
      |    ^~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int i= 0; i < 3; i++){
      | ^~~
a.cc:7:15: error: 'i' does not name a type
    7 | for(int i= 0; i < 3; i++){
      |               ^
a.cc:7:22: error: 'i' does not name a type
    7 | for(int i= 0; i < 3; i++){
      |                      ^
a.cc:15:1: error: expected unqualified-id before 'if'
   15 | if(count5 == 2 && count7 == 1) {
      | ^~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 | } else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namepace std;
int main(){
int x,y,z; cin>>x>>y>>z; int tt = 0; int co  = 0;
  if(x == 5) co++;
  else if (x == 7) tt++;
   if(y == 5) co++;
  else if (y == 7) tt++;
   if(z == 5) co++;
  else if (z == 7) tt++;
	if(co == 2 && tt == 1) cout<<"YES"<<"\n";
  else cout<<"NO"<<"\n";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namepace'
    2 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:4:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 | int x,y,z; cin>>x>>y>>z; int tt = 0; int co  = 0;
      |            ^~~
      |            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:11:32: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         if(co == 2 && tt == 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
      |                  ^~~~
a.cc:12:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   else cout<<"NO"<<"\n";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected initializer before '>>' token
    6 |   int A >> B >> C;
      |         ^~
a.cc:7:10: error: 'A' was not declared in this scope
    7 |   cin >> A >> B >> C;
      |          ^
a.cc:7:15: error: 'B' was not declared in this scope
    7 |   cin >> A >> B >> C;
      |               ^
a.cc:7:20: error: 'C' was not declared in this scope
    7 |   cin >> A >> B >> C;
      |                    ^
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:6:10: error: 'a' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |          ^
a.cc:6:15: error: 'b' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |               ^
a.cc:6:20: error: 'c' was not declared in this scope
    6 |   cin >> a >> b >> c;
      |                    ^
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class Atc {

    public static void main(String[] args) {
        Integer x = 5;
        Integer y = 7;
        boolean b = false;
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> inputs = new ArrayList<>() {
            {
                add(sc.nextInt());
                add(sc.nextInt());
                add(sc.nextInt());
            }
        };

        if (inputs.remove(x) && inputs.size() == 2) {
            if (inputs.remove(x) && inputs.size() == 1) {
                if (inputs.remove(y) && inputs.size() == 0) {
                    b = true;
                }
            }
        }

        if(b) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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

import java.util.ArrayList;
import java.util.Scanner;

public class Atc {

    public static void main(String[] args) {
        Integer x = 5;
        Integer y = 7;
        boolean isOk = false;
        Scanner sc = new Scanner(System.in);
        ArrayList<Integer> inputs = new ArrayList<>() {
            {
                add(sc.nextInt());
                add(sc.nextInt());
                add(sc.nextInt());
            }
        };

        if (inputs.remove(x) && inputs.size() == 2) {
            if (inputs.remove(x) && inputs.size() == 1) {
                if (inputs.remove(y) && inputs.size() == 0) {
                    isOk = true;
                }
            }
        }

        if(isOk) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:29: error: expected '}' at end of input
    9 |   else cout << "NO" << endl;
      |                             ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a[3];
  int se=0;,go=0;
  for(int i=0;i<3;i++){
    cin >> a[i];
    if(a[i]==7) se++;
    else if(a[i]==5) go++;
  }

  cout << (se==1&&go==2?"YES":"NO") << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected primary-expression before ',' token
    5 |   int se=0;,go=0;
      |            ^
a.cc:5:13: error: 'go' was not declared in this scope
    5 |   int se=0;,go=0;
      |             ^~
Language: C++

#include<iostream>
int main(){
    cin.tie(0);
   	ios::sync_with_stdio(false);
    int A, B, C; cin >> A >> B >> C;
    if(A*B*C == 5*7*5) cout << "YES";
    else cout << "NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    3 |     cin.tie(0);
      |     ^~~
      |     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:4:9: error: 'ios' has not been declared
    4 |         ios::sync_with_stdio(false);
      |         ^~~
a.cc:6:24: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if(A*B*C == 5*7*5) 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:7:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     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 <bits/stdc++.h>
using namespace std;

int main()
{
  int n, l;
  cin >> n >> l;
  string a[l];
  
  vector<string> s;
  for (int i = 0; i < n; i++) {
    cin >> s.at(i);
  }
  
  //ソート
  bool isEnd = false;
  while (!isEnd) {
    isEnd = true;
    for (i = 0; i < n-1; i++) {
      if (string(s.at(i)).compare(s.at(i+1)) > 0) {
        a = s.at(i);
        s.at(i) = s.at(i+1);
        s.at(i+1) = a;
        isEnd = false;
      }
    }
    for (i = n-1; i > 0; i--) {
      if (string(s.at(i)).compare(s.at(i-1)) < 0) {
        a = s.at(i);
        s.at(i) = s.at(i-1);
        s.at(i-1) = a;
        isEnd =false;
      }
    }
  }
  
  //出力
  for (i = 0; i < n; i++) {
    cout << s.at(i);
  }
  cout << endl;
}
  

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

#include <iostream>

using namespace std;

int s[7];

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

Compiler output:
a.cc:19:34: warning: missing terminating " character
   19 |   if(s[5]==2 && s[7]==1) cout << "YES;
      |                                  ^
a.cc:19:34: error: missing terminating " character
   19 |   if(s[5]==2 && s[7]==1) cout << "YES;
      |                                  ^~~~~
a.cc: In function 'int main()':
a.cc:21:3: error: expected primary-expression before 'else'
   21 |   else cout << "NO" << endl;
      |   ^~~~
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a >> b >> c;
      |   ^~~
      |   std::cin
In file included from 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:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << "YES" << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |       cout << "YES" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |       cout << "YES" << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |       cout << "YES" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:17:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |     cout << "NO" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   17 |     cout << "NO" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <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(b==7&&a==5&&c==5){
    cout <<"YES"<<endl;
  }
  else if(c==7&&b==5&&a==5){
    cout <<"YES"<<endl;
  }
  else{
    cout<<"NO"<<endl;
  }

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

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

int main(){

int n, l;
cin >> n >> l;
vector<string> strlist(n);

int i;
for(i=0;i<n;i++){
	cin >> strlist[i];
}

sort(strlist.begin(), strlist.end());
string gattai="";
for(i=0;i<n;i++){
	gattai = gattai + strlist[i];
}
cout << gattai;


return 0;
}

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

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

int main(){

int n, l;
cin >> n >> l;
vector<string> strlist(n);

int i;
for(i=0;i<n;i++){
	cin >> strlist[i];
}

sort(strlist);
string gattai="";
for(i=0;i<n;i++){
	gattai = gattai + strlist[i];
}
cout << gattai;


return 0;
}

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

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

int main(){

// cout
int a,b,c,d;
// string s;
cin >> a >> b >> c;
d = a*b*c 
if(d == 25*7){
	cout << "yes";
}else{
	cout << "no";
}
// cin >> b >> c;
// cin >>s;


// cout << (a+b+c) <<" "<< s<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: expected ';' before 'if'
   11 | d = a*b*c
      |          ^
      |          ;
   12 | if(d == 25*7){
      | ~~        
a.cc:14:2: error: 'else' without a previous 'if'
   14 | }else{
      |  ^~~~
Language: C++

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

int main(){

// cout
int a,b,c;
// string s;
cin >> a >> b >> c;
d = a*b*c 
if(d == 25*7){
	cout << "yes";
}else{
	cout << "no";
}
// cin >> b >> c;
// cin >>s;


// cout << (a+b+c) <<" "<< s<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'd' was not declared in this scope
   11 | d = a*b*c
      | ^
a.cc:14:2: error: 'else' without a previous 'if'
   14 | }else{
      |  ^~~~
Language: C++

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

int main(){

// cout
int a,b,c;
// string s;
cin >> a >> b >> c;
d = a*b*c 
if(d == 25*7){
	cout << "yes"
}else{
	cout << "no"
}
// cin >> b >> c;
// cin >>s;


// cout << (a+b+c) <<" "<< s<<endl;

return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: 'd' was not declared in this scope
   11 | d = a*b*c
      | ^
a.cc:14:2: error: 'else' without a previous 'if'
   14 | }else{
      |  ^~~~
a.cc:15:21: error: expected ';' before '}' token
   15 |         cout << "no"
      |                     ^
      |                     ;
   16 | }
      | ~
Language: C++

#include <stdio.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a>>b>>c;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | 
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |         cout<<"NO"<<endl;
      |                     ^~~~
a.cc:13:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#import <stdio.h>

using namespace std;

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

Compiler output:
a.cc:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import <stdio.h>
      |  ^~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope
    8 |   cin>>a>>b>>c;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #import <stdio.h>
  +++ |+#include <iostream>
    2 | 
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #import <stdio.h>
  +++ |+#include <ostream>
    2 | 
a.cc:13:9: error: 'cout' was not declared in this scope
   13 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:13:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |         cout<<"NO"<<endl;
      |                     ^~~~
a.cc:13:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
int main(){
  int a,b,c;
  int s;
  scanf("%d %d %d",&a,&b,&c);
  s=100*a+10*b+c;
  if(s==557||s==575||s==755){
    printf("YES")
  }else{
    printf("NO");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected ';' before '}' token
    8 |     printf("YES")
      |                  ^
      |                  ;
    9 |   }else{
      |   ~
Language: C++

#include <iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> a >> b >> c;
      |     ^~~
      |     std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:68: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==5&&b==5&&c==7)) cout << "YES" << endl;
      |                                                                    ^~~~
      |                                                                    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:85: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)||(a==5&&b==5&&c==7)) cout << "YES" << endl;
      |                                                                                     ^~~~
      |                                                                                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     else cout << "NO" << endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     else cout << "NO" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#inclide<bits/stdc++.h>

using namespace std;

main(){
	int a[4] = {0};
  
  	scanf("%d %d %d" , &a[0] , &a[1] , &a[2]);
  	sort(a , a + 3);
  	if((a[0] == a[1]) && (a[0] == 5) && (a[2] == 7)){
    	cout << "YES\n";
    }
  	else {
      	cout << "NO\n";
    }
  
  	return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclide; did you mean #include?
    1 | #inclide<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%d %d %d" , &a[0] , &a[1] , &a[2]);
      |         ^~~~~
a.cc:9:9: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |         sort(a , a + 3);
      |         ^~~~
      |         short
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "YES\n";
      |         ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclide<bits/stdc++.h>
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout << "NO\n";
      |         ^~~~
a.cc:14:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>

using namespace std;

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

x=a+b+c;



if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
    cout<<"NO"<<endl;
}


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

#include <iostream>

using namespace std;

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

x=a+b+c;

if (a)

else if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
    cout<<"NO"<<endl;
}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before 'else'
   13 | else if (x == 17){
      | ^~~~
Language: C++

#include <iostream>

using namespace std;

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

x=a+b+c;

if (a)

else if (x == 17){
cout<<"YES"<<endl;
}
else if(x != 17){
    cout<<"NO"<<endl;
}
else{
    cout<<"NO"<<endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:1: error: expected primary-expression before 'else'
   13 | else if (x == 17){
      | ^~~~
Language: C++

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

    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected primary-expression before ';' token
   13 |       five+;
      |            ^
Language: Java

package score100;

import java.util.Scanner;

public class IrohaAndHaiku {

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


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

		if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7){

				System.out.println("YES");

		}
			else {
				System.out.println("NO");
			}
	}
}


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

package score100;

import java.util.Sca入れ替えnner;

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 && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7){

				System.out.println("YES");

		}
			else {
				System.out.println("NO");
			}
	}
}


Compiler output:
Main.java:3: error: cannot find symbol
import java.util.Sca????nner;
                ^
  symbol:   class Sca????nner
  location: package java.util
Main.java:8: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: C++

package score100;

import java.util.Scanner;

public class IrohaAndHaiku {

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


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

		if (a == b && b== 5 && c == 7 || b == c && c== 5 && a == 7|| c == a && a== 5 && b == 7){

				System.out.println("YES");

		}
			else {
				System.out.println("NO");
			}
	}
}


Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package score100;
      | ^~~~~~~
a.cc:3:1: error: 'import' does not name a type
    3 | import java.util.Scanner;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: expected unqualified-id before 'public'
    5 | public class IrohaAndHaiku {
      | ^~~~~~