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

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

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
inport java.util.Scanner;
^
Main.java:9: error: illegal start of expression
      	if ((b == 5) %% (c == 7)){
      	              ^
Main.java:11: error: illegal start of expression
        } else if ((b == 7) %% (c == 5)) {
                             ^
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'elseif' was not declared in this scope
   12 |   elseif (A,C==5 && B==7){
      |   ^~~~~~
a.cc:20:3: error: 'else' without a previous 'if'
   20 |   else {
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>a>>b>>c;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     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:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     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 <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'map' was not declared in this scope
    7 |     map<int, int> m;
      |     ^~~
a.cc:2:1: note: 'std::map' is defined in header '<map>'; this is probably fixable by adding '#include <map>'
    1 | #include <iostream>
  +++ |+#include <map>
    2 | using namespace std;
a.cc:7:9: error: expected primary-expression before 'int'
    7 |     map<int, int> m;
      |         ^~~
a.cc:9:5: error: 'm' was not declared in this scope
    9 |     m[a]++, m[b]++, m[c]++;
      |     ^
Language: C++

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

int main(){
  vector<int> a;
  int s,t;
  for(int i=0;i<3;i++){
    cin>>s;
    a.push_back(s);
  }
  
  s=count(a.begin(),a.end(),5);
  t=count(a.begin(),a.end(),7);
  if(s==2 and t==1){
    cout<<"YES";
  }
  else{
	cout<<"NO"
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:19: error: expected ';' before '}' token
   20 |         cout<<"NO"
      |                   ^
      |                   ;
   21 |   }
      |   ~
Language: C++

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

int main(){
  vector<int> a;
  int s,t;
  for(int i=0;i<3;i++){
    cin>>s;
    a.push_back(s);
  }
 
  if(s==2 and t==1){
    cout<<"YES";
  }
  else{
	cout<<"NO"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:19: error: expected ';' before '}' token
   18 |         cout<<"NO"
      |                   ^
      |                   ;
   19 |   }
      |   ~
Language: C++

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

int main(){
  vector<int> a;
  int s,t;
  for(int i=0;i<3;i++){
    cin>>s;
    a.push_back(s);
  }
  s=count(a.begin(),a.end(),5);
  t=count(a.begin(),a.end(),7);
  if(s==2 and t==1){
    cout<<"YES";
  }
  else{
	cout<<"NO"
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:19: error: expected ';' before '}' token
   19 |         cout<<"NO"
      |                   ^
      |                   ;
   20 |   }
      |   ~
Language: C++

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

int main(){
  vector<int> a;
  int s,t;
  for(int i=0;i<3;i++){
    cin>>s;
    a.push_back(s);
  }
  s=count(a.begin(),a.end(),5);
  t=count(a.begin(),a.end(),7);
  if(s==2 and t==1){
    cout<<"YES";
  }
  else{
	cout<<"NO"
  }
}


Compiler output:
a.cc:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include algorithm
      |          ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:13:5: error: 'count' was not declared in this scope
   13 |   s=count(a.begin(),a.end(),5);
      |     ^~~~~
a.cc:19:19: error: expected ';' before '}' token
   19 |         cout<<"NO"
      |                   ^
      |                   ;
   20 |   }
      |   ~
Language: C++

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

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

Compiler output:
a.cc:3:10: error: #include expects "FILENAME" or <FILENAME>
    3 | #include algorithm
      |          ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:13:6: error: 'count' was not declared in this scope
   13 |   if(count(a.begin(),a.end(),5)==2 and count(a.begin(),a.end(),7)==1){
      |      ^~~~~
a.cc:17:19: error: expected ';' before '}' token
   17 |         cout<<"NO"
      |                   ^
      |                   ;
   18 |   }
      |   ~
Language: Java

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

Compiler output:
Main.java:18: error: reached end of file while parsing
      System.out.println("NO");
                               ^
1 error
Language: C++

/*...Bismillahir Rahmanir Rahim...*/
#include <iostream>
using namespace std;

/*........print part.........*/
template <typename T> inline void printl(T a,char c='\n'){ cout<<a<<c; } 
template <typename T> inline void print(T a,char c=' '){ cout<<a<<c; } 
template <typename T1,typename T2> inline void print(T1 a,T2 b){ cout<<a<<" "<<b<<endl; } 
//===============  (template)  ==========================================

inline void solve(){
    int a,b,c;
    cin>>a>>b>>c;
    int mp[10]={};
    mp[a]++;
    mp[c]++;
    mp[b]++;
    if (mp[5]==2 and mp[7]==1) printl("YES");
    else printl("NO");
}

signed main()
{
    fast_io;
    t_casout1 ;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:24:5: error: 'fast_io' was not declared in this scope
   24 |     fast_io;
      |     ^~~~~~~
a.cc:25:5: error: 't_casout1' was not declared in this scope
   25 |     t_casout1 ;
      |     ^~~~~~~~~
Language: Java

import java.util.Scanner;

public class Main9 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int value = a + b + c;
		int product = a * b * c;
		if (value == 17 & product == 175) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}

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

import java.util.Scanner;

public class Main9 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int value = a + b + c;
		int product = a * b * c;
		if (value == (5+5+7) & product ==(5*5*7)) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}


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

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;


    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

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


Compiler output:
Main.java:6: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Haiko {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
            return;
        }

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


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

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class Haiko {
    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        Map<Integer, Integer> map = new HashMap<>();

        for(int i = 0; i < 3;i++){
            int k = scan.nextInt();
            map.put(k, map.getOrDefault(k,0)+1);
        }

        if(map.get(5) == 2 && map.get(7) ==1){
            System.out.println("YES");
        }

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


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

import java.util.*;

public class A {
	 public static void main(String[] args){
		 Scanner sc = new Scanner(System.in);
		 int num[]=new int[3];
		 int count[]= {0,0};
		 for(int i=0;i<3;i++) {
			num[i] = sc.nextInt();
		 }
		 for(int i=0;i<3;i++) {
			 if(num[i]==5)
				 count[0]++;
			 else if(num[i]==7)
				 count[1]++;
		 }
		 if(count[0]==2&&count[1]==1)
			 System.out.println("YES");
		 else
			 System.out.println("NO");
	     sc.close();
	 }
}


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

public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        List<String> data= new ArrayList<>();
        for (int i = 0; i < k; i++) {
            data.add(in.nextLine());
        }
        System.out.println(data.stream().sorted().collect(Collectors.joining("")));
      
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java



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

        if(a+b+c==17){
            System.out.println("YES");
        }
        else {
            System.out.println("NO");
        }
    }
}

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

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

#define N 100
#define L 100

int main()
{
  char text[N][L],senten[N*L],tem[L];
  int i,j;
  
  for(i=0; i<N; i++)
  {
   scanf("%s",text[i]); 
  }
  
  for(i=1; i<L; i++)
  {
   for(j=1; j<N; j++)
   {
     if(strcmp(text[j-1], text[j]) > 0)
     {
       strcpy(tem, text[j-1]);
       strcpy(text[j-1], text[j]);
       strcpy(text[j], tem);
     }
   }
  }
  for(i=0; i<N; i++)
  {
  	memcpy(senten + i * L, text[i], L);
  }
  
  print("%S",senten );
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:35:3: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   35 |   print("%S",senten );
      |   ^~~~~
      |   printf
Language: C

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

int main(int argc,char *argv[])
{
  int i,num[3];
  for(i=0; i<3; i++)
  {
   num[i]=atoi(argv[i]); 
  }
  if (num[0] == 7)
  {
    if(num[1] == 5 && num[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(num[1] == 7)
  {
    if(num[0] == 5 && num[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(num[2] == 7)
  {
    if(num[0] == 5 && num[1] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:30: error: lvalue required as left operand of assignment
   13 |     if(num[1] == 5 && num[2] = 5)
      |                              ^
main.c:15:20: error: expected ';' before '}' token
   15 |       printf("YES")
      |                    ^
      |                    ;
   16 |     }
      |     ~               
main.c:19:18: error: expected ';' before '}' token
   19 |      printf("NO")
      |                  ^
      |                  ;
   20 |     }
      |     ~             
main.c:24:30: error: lvalue required as left operand of assignment
   24 |     if(num[0] == 5 && num[2] = 5)
      |                              ^
main.c:26:20: error: expected ';' before '}' token
   26 |       printf("YES")
      |                    ^
      |                    ;
   27 |     }
      |     ~               
main.c:30:18: error: expected ';' before '}' token
   30 |      printf("NO")
      |                  ^
      |                  ;
   31 |     }
      |     ~             
main.c:35:30: error: lvalue required as left operand of assignment
   35 |     if(num[0] == 5 && num[1] = 5)
      |                              ^
main.c:37:20: error: expected ';' before '}' token
   37 |       printf("YES")
      |                    ^
      |                    ;
   38 |     }
      |     ~               
main.c:41:18: error: expected ';' before '}' token
   41 |      printf("NO")
      |                  ^
      |                  ;
   42 |     }
      |     ~
Language: C

#include<stdio.h>

int main(int argc,char *argv[])
{
  int num[3];
  for(i=0; i<3; i++)
  {
   num[i]=atoi(argv[i]); 
  }
  if (num[0] == 7)
  {
    if(num[1] == 5 && num[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(num[1] == 7)
  {
    if(num[0] == 5 && num[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(num[2] == 7)
  {
    if(num[0] == 5 && num[1] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
   return 0;
}


Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0; i<3; i++)
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:11: error: implicit declaration of function 'atoi' [-Wimplicit-function-declaration]
    8 |    num[i]=atoi(argv[i]);
      |           ^~~~
main.c:12:30: error: lvalue required as left operand of assignment
   12 |     if(num[1] == 5 && num[2] = 5)
      |                              ^
main.c:14:20: error: expected ';' before '}' token
   14 |       printf("YES")
      |                    ^
      |                    ;
   15 |     }
      |     ~               
main.c:18:18: error: expected ';' before '}' token
   18 |      printf("NO")
      |                  ^
      |                  ;
   19 |     }
      |     ~             
main.c:23:30: error: lvalue required as left operand of assignment
   23 |     if(num[0] == 5 && num[2] = 5)
      |                              ^
main.c:25:20: error: expected ';' before '}' token
   25 |       printf("YES")
      |                    ^
      |                    ;
   26 |     }
      |     ~               
main.c:29:18: error: expected ';' before '}' token
   29 |      printf("NO")
      |                  ^
      |                  ;
   30 |     }
      |     ~             
main.c:34:30: error: lvalue required as left operand of assignment
   34 |     if(num[0] == 5 && num[1] = 5)
      |                              ^
main.c:36:20: error: expected ';' before '}' token
   36 |       printf("YES")
      |                    ^
      |                    ;
   37 |     }
      |     ~               
main.c:40:18: error: expected ';' before '}' token
   40 |      printf("NO")
      |                  ^
      |                  ;
   41 |     }
      |     ~
Language: C

#include<stdio.h>

int main(int argc,char *argv[])
{
  if (argv[0] == 7)
  {
    if(argv[1] == 5 && argv[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(argv[1] == 7)
  {
    if(argv[0] == 5 && argv[2] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
  else if(argv[2] == 7)
  {
    if(argv[0] == 5 && argv[1] = 5)
    {
      printf("YES")
    }
    else
    {
     printf("NO") 
    }
  }
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:15: warning: comparison between pointer and integer
    5 |   if (argv[0] == 7)
      |               ^~
main.c:7:16: warning: comparison between pointer and integer
    7 |     if(argv[1] == 5 && argv[2] = 5)
      |                ^~
main.c:7:32: error: lvalue required as left operand of assignment
    7 |     if(argv[1] == 5 && argv[2] = 5)
      |                                ^
main.c:9:20: error: expected ';' before '}' token
    9 |       printf("YES")
      |                    ^
      |                    ;
   10 |     }
      |     ~               
main.c:13:18: error: expected ';' before '}' token
   13 |      printf("NO")
      |                  ^
      |                  ;
   14 |     }
      |     ~             
main.c:16:19: warning: comparison between pointer and integer
   16 |   else if(argv[1] == 7)
      |                   ^~
main.c:18:16: warning: comparison between pointer and integer
   18 |     if(argv[0] == 5 && argv[2] = 5)
      |                ^~
main.c:18:32: error: lvalue required as left operand of assignment
   18 |     if(argv[0] == 5 && argv[2] = 5)
      |                                ^
main.c:20:20: error: expected ';' before '}' token
   20 |       printf("YES")
      |                    ^
      |                    ;
   21 |     }
      |     ~               
main.c:24:18: error: expected ';' before '}' token
   24 |      printf("NO")
      |                  ^
      |                  ;
   25 |     }
      |     ~             
main.c:27:19: warning: comparison between pointer and integer
   27 |   else if(argv[2] == 7)
      |                   ^~
main.c:29:16: warning: comparison between pointer and integer
   29 |     if(argv[0] == 5 && argv[1] = 5)
      |                ^~
main.c:29:32: error: lvalue required as left operand of assignment
   29 |     if(argv[0] == 5 && argv[1] = 5)
      |                                ^
main.c:31:20: error: expected ';' before '}' token
   31 |       printf("YES")
      |                    ^
      |                    ;
   32 |     }
      |     ~               
main.c:35:18: error: expected ';' before '}' token
   35 |      printf("NO")
      |                  ^
      |                  ;
   36 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int A, B, C;
  cin >> A >> B >> C;
  
  if (A*B*C == 245 && A+B+C == 19 && A*B+B*C+C*A == 95){
    cout << "Yes" << endl;
  }
  
  else {
    cout << No << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'No' was not declared in this scope
   13 |     cout << No << endl;
      |             ^~
Language: C++

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

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

#include<stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected unqualified-id before '&' token
    6 |         scanf("%d %d %d".&a,&b,&c);
      |                          ^
Language: C++

#pragma GCC optimize("Ofast,no-stack-protector,unroll-loops,no-stack-protector,fast-math")
#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define IO ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
using namespace std;
const int N = 1e2 + 5, M = 2 * N + 5;

int n = 3;
int a[3], b[] = {5, 5, 7};

int main(){
    for(int i = 0 ; i < 3 ; ++i)
        scanf("%d", a + i);
    sort(a, a + n);
    for(int i = 0 ; i < 3 ; ++i)
        if(a[i] != b[i])
            exit((puts("NO"), 0));
    puts("YE

Compiler output:
a.cc:19:10: warning: missing terminating " character
   19 |     puts("YE
      |          ^
a.cc:19:10: error: missing terminating " character
   19 |     puts("YE
      |          ^~~
a.cc: In function 'int main()':
a.cc:19:10: error: expected primary-expression at end of input
   19 |     puts("YE
      |          ^
a.cc:19:10: error: expected '}' at end of input
a.cc:12:11: note: to match this '{'
   12 | int main(){
      |           ^
Language: C++

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

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

  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: no matching function for call to 'sort(std::vector<int>&)'
    7 |   sort(haiku);
      |   ~~~~^~~~~~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:4762:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4762 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4762:5: note:   candidate expects 2 arguments, 1 provided
/usr/include/c++/14/bits/stl_algo.h:4793:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4793 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/14/bits/stl_algo.h:4793:5: note:   candidate expects 3 arguments, 1 provided
In file included from /usr/include/c++/14/algorithm:86:
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator, class _Compare> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator, _Compare)'
  292 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last, _Compare __comp);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:292:1: note:   candidate expects 4 arguments, 1 provided
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note: candidate: 'template<class _ExecutionPolicy, class _RandomAccessIterator> __pstl::__internal::__enable_if_execution_policy<_ExecutionPolicy, void> std::sort(_ExecutionPolicy&&, _RandomAccessIterator, _RandomAccessIterator)'
  296 | sort(_ExecutionPolicy&& __exec, _RandomAccessIterator __first, _RandomAccessIterator __last);
      | ^~~~
/usr/include/c++/14/pstl/glue_algorithm_defs.h:296:1: note:   candidate expects 3 arguments, 1 provided
Language: C++

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

int main(void) {
  string s;
  cin >> s;
  if (count(s.begin(), s.end(), "5") == 2 &&
    	count(s.begin(), s.end(), "7") == 1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}

Compiler output:
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Value = const char [2]]':
/usr/include/c++/14/bits/stl_algobase.h:2163:12:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 2163 |         if (__pred(__first))
      |             ~~~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4033:29:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 4033 |       return std::__count_if(__first, __last,
      |              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4034 |                              __gnu_cxx::__ops::__iter_equals_val(__value));
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:12:   required from here
    7 |   if (count(s.begin(), s.end(), "5") == 2 &&
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:270:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  270 |         { return *__it == _M_value; }
      |                  ~~~~~~^~~~~~~~~~~
Language: C++

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

int main(void) {
  string s;
  cin >> s;
  if (count(s.begin(), s.end(), "5") == 2 &&
    	count(s.begin(), s.end8), "7" == 1) {
    cout << "YES";
  } else {
    cout << "NO";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:28: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 'end8'; did you mean 'end'?
    8 |         count(s.begin(), s.end8), "7" == 1) {
      |                            ^~~~
      |                            end
a.cc:8:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |         count(s.begin(), s.end8), "7" == 1) {
      |                                   ~~~~^~~~
In file included from /usr/include/c++/14/bits/stl_algobase.h:71,
                 from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/predefined_ops.h: In instantiation of 'bool __gnu_cxx::__ops::_Iter_equals_val<_Value>::operator()(_Iterator) [with _Iterator = __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >; _Value = const char [2]]':
/usr/include/c++/14/bits/stl_algobase.h:2163:12:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::__count_if(_InputIterator, _InputIterator, _Predicate) [with _InputIterator = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 2163 |         if (__pred(__first))
      |             ~~~~~~^~~~~~~~~
/usr/include/c++/14/bits/stl_algo.h:4033:29:   required from 'typename std::iterator_traits< <template-parameter-1-1> >::difference_type std::count(_IIter, _IIter, const _Tp&) [with _IIter = __gnu_cxx::__normal_iterator<char*, __cxx11::basic_string<char> >; _Tp = char [2]; typename iterator_traits< <template-parameter-1-1> >::difference_type = long int]'
 4033 |       return std::__count_if(__first, __last,
      |              ~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~
 4034 |                              __gnu_cxx::__ops::__iter_equals_val(__value));
      |                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:12:   required from here
    7 |   if (count(s.begin(), s.end(), "5") == 2 &&
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/14/bits/predefined_ops.h:270:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
  270 |         { return *__it == _M_value; }
      |                  ~~~~~~^~~~~~~~~~~
Language: C++

#include <cctype>
#include <cerrno>
#include <cfloat>
#include <ciso646>
#include <climits>
#include <clocale>
#include <cmath>
#include <csetjmp>
#include <csignal>
#include <cstdarg>
#include <cstddef>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>

#include <algorithm>
#include <bitset>
#include <complex>
#include <deque>
#include <exception>
#include <fstream>
#include <functional>
#include <iomanip>
#include <ios>
#include <iosfwd>
#include <iostream>
#include <istream>
#include <iterator>
#include <limits>
#include <list>
#include <locale>
#include <map>
#include <memory>
#include <new>
#include <numeric>
#include <ostream>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdexcept>
#include <streambuf>
#include <string>
#include <typeinfo>
#include <utility>
#include <valarray>
#include <vector>
#include <regex>
#define REP(i,n) for(int i = 0; i < n; i++)
#define FOR(i,j,n) for(int i = j; i < n; i++)
#define RFOR(i,j,n) for(int i = j-1; i >= n; i--)
#define PREC(n) fixed << setprecision(n)
#define print_array(v) REP(__k, v.size()) { cout << v[__k]; if(__k != v.size()-1) cout << " "; else cout << endl; }
#define YesorNo(a) printf(a?"YES\n":"NO\n")
#define _LIBCPP_DEBUG 0
using namespace std;
int64_t MOD = 1000000007;

int main() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int a, b, c;
  cin >> a >> b >> c;
  bool flag = falser;
  if(a == 5 && b == 5 && c == 7) flag = true;
  if(a == 7 && b == 5 && c == 5) flag = true;
  if(a == 5 && b == 7 && c == 5) flag = true;
  YesorNo(flag);
  return 0;
}
//templete by private_yusuke

Compiler output:
a.cc: In function 'int main()':
a.cc:65:15: error: 'falser' was not declared in this scope
   65 |   bool flag = falser;
      |               ^~~~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{

    int a,b,c,v=0,vii=0;

    cin>>a>>b>>c;

    if(a==5)
    {
       v++;
    }
    if(a==7)
    {
       vii++;
    }
    if( b==5)
    {
        v++;
    }
    if (b==7)
        vii++;
    if(c==5)
        v++;
    if(c==7)
        vii++;

    if(v==2 && vii==1)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
}


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

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

 int a;
 int b;
 int c;


 if(a+b+c == 17){
   if(a==5 && b==5){
     cout<<"Yes"<<endl;
   }
   if(a==5 && c==5){
     cout<<"Yes"<<endl;
   }
   if(b==5 && c==5){
     cout<<"Yes"<<endl;
   }
   else{
     cout<<"No"<<endl;
   }
 }

  


Compiler output:
a.cc:9:2: error: expected unqualified-id before 'if'
    9 |  if(a+b+c == 17){
      |  ^~
Language: C++

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

int main(){

 int a;
 int b;
 int c;


 if(a+b+c = 17){
   if(a==5 && b==5){
     cout<<"Yes"<<endl;
   }
   if(a==5 && c==5){
     cout<<"Yes"<<endl;
   }
   if(b==5 && c==5){
     cout<<"Yes"<<endl;
   }
   else{
     cout<<"No"<<endl;
   }
 }
}
  


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

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

int a;
int b;
int c;


if(a+b+c = 17){
  if(a==5 && b==5){
    cout<<"Yes"<<endl;
  }
  if(a==5 && c==5){
    cout<<"Yes"<<endl;
  }
  if(b==5 && c==5){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
  


Compiler output:
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if(a+b+c = 17){
      | ^~
Language: C++

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

int main(){

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

int a;
int b;
int c;


if(a+b+c=17){
  if(a==5 && b==5){
    cout<<"Yes"<<endl;
  }
  if(a==5 && c==5){
    cout<<"Yes"<<endl;
  }
  if(b==5 && c==5){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
  
}

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

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

int a;
int b;
int c;


if(a+b+c=17){
  if(a==5 && b==5){
    cout<<"Yes"<<endl;
  }
  if(a==5 && c==5){
    cout<<"Yes"<<endl;
  }
  if(b==5 && c==5){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
  


Compiler output:
a.cc:9:1: error: expected unqualified-id before 'if'
    9 | if(a+b+c=17){
      | ^~
Language: C++

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

int a;
int b;
int c;

cin >> a;
cin >> b;
cin >> C;


if(a+b+c=17){
  if(a==5 && b==5){
    cout<<"Yes"<<endl;
  }
  if(a==5 && c==5){
    cout<<"Yes"<<endl;
  }
  if(b==5 && c==5){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}
  


Compiler output:
a.cc:8:1: error: 'cin' does not name a type
    8 | cin >> a;
      | ^~~
a.cc:9:1: error: 'cin' does not name a type
    9 | cin >> b;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin >> C;
      | ^~~
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(a+b+c=17){
      | ^~
Language: C++

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

int a;
int b;
int c;

cin>>a;
cin>>b;
cin>>C;


if(a+b+c=17){
  if(a==5 && b==5){
    cout<<"Yes"<<endl;
  }
  if(a==5 && c==5){
    cout<<"Yes"<<endl;
  }
  if(b==5 && c==5){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
  

Compiler output:
a.cc:8:1: error: 'cin' does not name a type
    8 | cin>>a;
      | ^~~
a.cc:9:1: error: 'cin' does not name a type
    9 | cin>>b;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>C;
      | ^~~
a.cc:13:1: error: expected unqualified-id before 'if'
   13 | if(a+b+c=17){
      | ^~
Language: C++

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

int a;
int b;
int c;

cin>>a;
cin>>b;
cin>>c;

if(a==5||b==5||c==5 && a+b+c=17){
  cout<<"Yes"<<endl;
}
else{
  cout<<"No"<<endl;
}

Compiler output:
a.cc:8:1: error: 'cin' does not name a type
    8 | cin>>a;
      | ^~~
a.cc:9:1: error: 'cin' does not name a type
    9 | cin>>b;
      | ^~~
a.cc:10:1: error: 'cin' does not name a type
   10 | cin>>c;
      | ^~~
a.cc:12:1: error: expected unqualified-id before 'if'
   12 | if(a==5||b==5||c==5 && a+b+c=17){
      | ^~
a.cc:15:1: error: expected unqualified-id before 'else'
   15 | else{
      | ^~~~
Language: C++

// atc.cpp : This file contains the 'main' function. Program execution begins and ends there.
//

#include "pch.h"
#include <iostream>
using namespace std;

int main()
{
    int a, b, c;
    bool flg = false;
    cin >> a >> b >> c;

    switch (a)
    {
    case 5:
        switch (b)
        {
        case 5:
            if (c == 7) flg = true;
            break;
        case 7:
            if (c == 5) flg = true;
            break;
        default:
            break;
        }
        break;
    case 7:
        switch (b)
        {
        case 5:
            if (c == 5) flg = true;
            break;

        default:
            break;
        }
        break;

    default:
        break;
    }

    if (flg == true) { cout << "YES"; }
    else{ cout << "NO"; }


    return 0;
}




Compiler output:
a.cc:4:10: fatal error: pch.h: No such file or directory
    4 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

int main(){

    int a,b,c;

    cin >> a  >> b >> c;

    int s[3] = {a,b,c};

    int fiveCount = 0;
    int sevenCount = 0;

    for(int i=0; i<sizeof(s); i++){
        if(s[i] == 5){
            fiveCount++;
        }
        if(s[i] == 7){
            sevenCount++;
        }
    }

    if(fiveCount == 2 && sevenCount == 1){
        cout << "YES" << endl;
    } else {
        cout << "NO" << endl;
    }

    

}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a  >> b >> c;
      |     ^~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << "YES" << endl;
      |         ^~~~
a.cc:22:26: error: 'endl' was not declared in this scope
   22 |         cout << "YES" << endl;
      |                          ^~~~
a.cc:24:9: error: 'cout' was not declared in this scope
   24 |         cout << "NO" << endl;
      |         ^~~~
a.cc:24:25: error: 'endl' was not declared in this scope
   24 |         cout << "NO" << endl;
      |                         ^~~~
Language: Java

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

Compiler output:
Main.java:17: error: reached end of file while parsing
   };
     ^
1 error
Language: Java

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

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

import java.util.*;

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+C)!=17) {
    System.out.println("No");
  } else if(A != 7 && B != 7 && C != 7) {
    System.out.println("No");
  } else if(A != 5 && B != 5 && C != 5) {
    System.out.println("No");
  } else {
    System.out.println("Yes");
  }

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: reached end of file while parsing
  }
   ^
2 errors
Language: C

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

int main(){
  int n,l;
  scanf("%s",&n);
  scanf("%s",&l);
  char str[n][l];
  char tmp[l];
  for(int i=0;i<n;i++){
    scanf("%d",&str[i][l]);
  }
  for(int j=1;j<n;j++){
    for(int k=1;k<n;j++){
      if(strcmp(str[k-1],str[k])>0){
        strcpy(tmp,str[k-1]);
        strcpy(str[k-1],str[k]);
        strcpy(str[k],tmp);
      }
    }
  }
  for(int m=0;m<n;m++){
    printf("%s",s[m]);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:17: error: 's' undeclared (first use in this function)
   23 |     printf("%s",s[m]);
      |                 ^
main.c:23:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(){
  int n,l;
  scanf("%d",&n);
  scanf("%d",&l);
  char str[n][l];
  char tmp[l];
  for(int i=0;i<n;i++){
    scanf("%d",&str[i][l]);
  }
  for(int j=1;j<n;j++){
    for(int k=1;k<n;j++){
      if(strcmp(str[k-1],str[k])>0){
        strcpy(tmp,str[k-1]);
        strcpy(str[k-1],str[k]);
        strcpy(str[k],tmp);
      }
    }
  }
  for(int m=0;m<n;m++){
    printf("%s",s[m]);
  }
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:23:17: error: 's' undeclared (first use in this function)
   23 |     printf("%s",s[m]);
      |                 ^
main.c:23:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>

int main(){
	int a,count=0;
  	for(i=0;i<3;i++){
    	scanf("%d",&a);
      	if(a==5||a==7){
        	count+=a;
        }else{
        	break;
        }
    }
  	if(count==17){printf("YES");}else{printf("NO");}
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:13: error: 'i' undeclared (first use in this function)
    5 |         for(i=0;i<3;i++){
      |             ^
main.c:5:13: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>

using namespace std;

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

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

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

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

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

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


Compiler output:
main.c: In function 'main':
main.c:11:9: error: expected '(' before 'else'
   11 |         else
      |         ^~~~
      |         (
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'if'
    9 |   if (data == answer) {
      |   ^~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {
      |   ^~~~
Language: C++

A = list(map(int, input().split()))

count = 0
for i in range(3):
    if A[i] == 5 or A[i] == 7:
        count += 1
        
if count == 3:
    print('YES')
else:
    print('NO')

Compiler output:
a.cc:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('YES')
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A = list(map(int, input().split()))
      | ^
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 if {
    cout << "NO" << endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: expected '(' before '{' token
   17 |   else if {
      |           ^
      |           (
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;
}
    if else (A==5 && B==7 && C==5) {
    cout << "YES" << endl;
}
    if else (A==7 && B==5 && C==5) {
    cout << "YES" << endl;
}
  if else {
    cout << "NO" << endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: expected '(' before 'else'
   11 |     if else (A==5 && B==7 && C==5) {
      |        ^~~~
      |        (
a.cc:14:8: error: expected '(' before 'else'
   14 |     if else (A==7 && B==5 && C==5) {
      |        ^~~~
      |        (
a.cc:17:6: error: expected '(' before 'else'
   17 |   if else {
      |      ^~~~
      |      (
Language: C

#include <stdio.h>
int main(){
    int a,b,c,count_five,count_seven;
    scanf("%d%d%d",&a,&b,&c)
     if(a==5)
       count_five++;
     if(b==5)
       count_five++;
     if(c==5)
       count_five++;
     if(a==7)
       count_seven++;
     if(b==7)
       count_seven++;
     if(c==7)
       count_seven++;
     if(count_five==2&&count_seven==1)
       printf("Yes");
     else printf("No");
       
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:29: error: expected ';' before 'if'
    4 |     scanf("%d%d%d",&a,&b,&c)
      |                             ^
      |                             ;
    5 |      if(a==5)
      |      ~~
Language: C

#include <stdio.h>
int main(){
    int a,b,c,count_five,count_seven;
    scanf("%d%d%d",&a,&b,&c)
     if(a=5)
       count_five++;
     if(b=5)
       count_five++;
     if(c=5)
       count_five++;
     if(a=7)
       count_seven++;
     if(b=7)
       count_seven++;
     if(c=7)
       count_seven++;
     if(count_five==2&&count_seven==1)
       printf("Yes");
     else printf("No");
       
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:29: error: expected ';' before 'if'
    4 |     scanf("%d%d%d",&a,&b,&c)
      |                             ^
      |                             ;
    5 |      if(a=5)
      |      ~~