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

#include <iostream>
#include <string>

int main() {
  int A, B, C;
  if ( A + B == 10 ){
    if ( C == 7 ){
      cout << "YES" << endl;
    }
  }
  if ( A + C == 10 ){
    if ( B == 7 ){
      cout << "YES" << endl;
    }
  }
  if ( B + C == 10 ){
    if ( A == 7 ){
      cout << "YES" << endl;
    }
  }
  else {
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |       cout << "YES" << endl;
      |       ^~~~
      |       std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |       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:13:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |       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:13:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |       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:18:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |       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:18:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |       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:22:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   22 |     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:22:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   22 |     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 <iostream>

using namespace std;

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

}


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

#include <iostream>

useing namespace std;

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

}


Compiler output:
a.cc:3:1: error: 'useing' does not name a type
    3 | useing namespace std;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:12:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |           cout << "YES";
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         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:23:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |           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:28:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |     cout << "NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

#include <iostream>

use namespace std;

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

}

Compiler output:
a.cc:3:1: error: 'use' does not name a type
    3 | use namespace std;
      | ^~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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:12:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |           cout << "YES";
      |           ^~~~
      |           std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |         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:23:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |           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:28:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |     cout << "NO";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C++

a, b, c = map( int, input() )
if a+b+c != 17:
	print( "NO" )

iCountFive = 0
if a = 5:
	iCountFive += 1
if b = 5:
	iCountFive += 1
if c = 5:
	iCountFive += 1      

iCountSeven = 0
if a = 7:
	iCountSeven += 1
if b = 7:
	iCountSeven += 1
if c = 7:
	iCountSeven += 1      

if iCountFive == 2 and iCountSeven == 1:
	print( "YES" )
else :
	print( "NO" )

Compiler output:
a.cc:1:1: error: 'a' does not name a type
    1 | a, b, c = map( int, input() )
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> line1(3);
  vector<int> p(3) = {5, 5, 7};
  for(int i = 0; i < 3; i++){
    cin >> line1.at(i);
  }
  sort(line1.begin(), line1.end());
  
  if(line1 == p){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: expected ',' or ';' before '=' token
    5 |   vector<int> p(3) = {5, 5, 7};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> line1(3);
  for(int i = 0; i < 3; i++){
    cin >> line1.at(i);
  }
  sort(line1.begin(), line1.end());
  vector<int> p(3) = {5, 5, 7};
  if(line1 == p){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ',' or ';' before '=' token
    9 |   vector<int> p(3) = {5, 5, 7};
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> line1(3);
  for(int i = 0; i < 3; i++){
    cin >> line1.at(i);
  }
  sort(line1.begin(), line1.end());
  vector<int> p(3) = {5, 5, 7} 
  if(line1 == p){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ',' or ';' before '=' token
    9 |   vector<int> p(3) = {5, 5, 7}
      |                    ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  vector<int> line1(3);
  for(int i = 0; i < 3; i++){
    cin >> line1.at(i);
  }
  sort(line1.begin(), line1.end());
  if(line1 == {5, 5, 7}){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: no match for call to '(std::vector<int>) (int&)'
    6 |     cin >> line1(i);
      |            ~~~~~^~~
a.cc:9:15: error: expected primary-expression before '{' token
    9 |   if(line1 == {5, 5, 7}){
      |               ^
a.cc:9:14: error: expected ')' before '{' token
    9 |   if(line1 == {5, 5, 7}){
      |     ~        ^~
      |              )
Language: C++

#include <oistream>
using namespace std;
int main(){
  vector<int> line1(3);
  for(int i = 0; i < 3; i++){
    cin >> line1(i);
  }
  sort(line1.begin(), line1.end());
  if(line1 == {5, 5, 7}){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}


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

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:11:11: warning: missing terminating " character
   11 |     cout<<"YES';
      |           ^
a.cc:11:11: error: missing terminating " character
   11 |     cout<<"YES';
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before 'else'
   12 |   else if(A==7 && B==5 && C==5)
      |   ^~~~
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:11:11: warning: missing terminating " character
   11 |     cout<<"YES';
      |           ^
a.cc:11:11: error: missing terminating " character
   11 |     cout<<"YES';
      |           ^~~~~~
a.cc: In function 'int main()':
a.cc:12:3: error: expected primary-expression before 'else'
   12 |   else if(a==7 && b==5 && c==5)
      |   ^~~~
Language: C++

//  Created by liszt on 2019/08/01.
#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:7:46: error: extended character ¥ is not valid in an identifier
    7 |     if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)¥¥(a==7&&b==5&&c==5)){
      |                                              ^
a.cc:7:46: error: extended character ¥ is not valid in an identifier
a.cc: In function 'int main()':
a.cc:7:46: error: expected ')' before '\U000000a5\U000000a5'
    7 |     if((a==5&&b==5&&c==7)||(a==5&&b==7&&c==5)¥¥(a==7&&b==5&&c==5)){
      |       ~                                      ^~
      |                                              )
Language: C++

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

int main(){
  int a,b,c;
  int f_num=0,s_num=0;
  cin>>a>>b>>c;
  if(a==5){
    f_num++
  }
  if(b==5){
    f_num++
  }
  if(c==5){
    f_num++
  }
  
  if(a==7){
    f_num++
  }
  if(b==7){
    f_num++
  }
  if(c==7){
    f_num++
  }
  
  if(f_num==2&&s_num=1){
    cout>>YES>>endl;
  }else{
    count>>NO>>endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:12: error: expected ';' before '}' token
   10 |     f_num++
      |            ^
      |            ;
   11 |   }
      |   ~         
a.cc:13:12: error: expected ';' before '}' token
   13 |     f_num++
      |            ^
      |            ;
   14 |   }
      |   ~         
a.cc:16:12: error: expected ';' before '}' token
   16 |     f_num++
      |            ^
      |            ;
   17 |   }
      |   ~         
a.cc:20:12: error: expected ';' before '}' token
   20 |     f_num++
      |            ^
      |            ;
   21 |   }
      |   ~         
a.cc:23:12: error: expected ';' before '}' token
   23 |     f_num++
      |            ^
      |            ;
   24 |   }
      |   ~         
a.cc:26:12: error: expected ';' before '}' token
   26 |     f_num++
      |            ^
      |            ;
   27 |   }
      |   ~         
a.cc:29:14: error: lvalue required as left operand of assignment
   29 |   if(f_num==2&&s_num=1){
      |      ~~~~~~~~^~~~~~~
a.cc:30:11: error: 'YES' was not declared in this scope
   30 |     cout>>YES>>endl;
      |           ^~~
a.cc:32:5: error: 'count' was not declared in this scope
   32 |     count>>NO>>endl;
      |     ^~~~~
a.cc:32:12: error: 'NO' was not declared in this scope
   32 |     count>>NO>>endl;
      |            ^~
Language: C++

#include <iostream>
using namespace std;

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


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

package atCoder;

import java.util.Scanner;

public class Atcoder {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();
		if(a+b+c==17) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
	}

}


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

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

int main() {
	char a;
	char b;
	char c;
	cin >> a >> b >> c;
	int sum = atoi(&a)+ atoi(&b) + atoi(&c) ;
	if (sum == 17 && (a == '5' || a == '7') && (b == '5' || b == '7') && (c == '5' || c == '7')) {
		cout << "YES";
	}
	else {
		cout << "NO";
	}
	return 0;
}

Compiler output:
a.cc:1:10: fatal error: Test.h: No such file or directory
    1 | #include "Test.h"
      |          ^~~~~~~~
compilation terminated.
Language: Java

import java.util.*;

public calss Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int c = scan.nextInt();

	boolean isAB5C7 = (a==5 && b==5 && c==7);
	boolean isBC5A7 = (a==7 && b==5 && c==5);
	boolean isCA5B7 = (a==5 && b==7 && c==5);

	if(isCA5B7||isBC5A7||isAB5C7){
		System.out.println("YES");
	}else{
		System.out.println("NO");
	}
	}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
public calss Main{
       ^
Main.java:4: 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:20: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

import java.util.*;

calss Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
	int a = scan.nextInt();
	int b = scan.nextInt();
	int c = scan.nextInt();

	boolean isAB5C7 = (a==5 && b==5 && c==7);
	boolean isBC5A7 = (a==7 && b==5 && c==5);
	boolean isCA5B7 = (a==5 && b==7 && c==5);

	if(isCA5B7||isBC5A7||isAB5C7){
		System.out.println("YES");
	}else{
		System.out.println("NO");
	}
	}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
calss Main{
^
Main.java:4: 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:20: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:19: error: 'C' undeclared (first use in this function)
    5 |   if((a==5&&b==7&&C==5)||(b==5&&c==7&&a==5)||(c==5&&a==7&&b==5)){
      |                   ^
main.c:5:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
    int l, i=0;
    vector<int> a;
    vector<int> b = {5, 5, 7};
    
    while(i<3){
        cin >> l;
        a.push_back(l);
        i++;
    }
    
    sort(a.begin(), a.end());
    if(a==b)
        cout << "YES";
    else
        cout << "NO";
}


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

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


Compiler output:
main.c: In function 'main':
main.c:17:17: error: expected ';' before '}' token
   17 |   printf("NO\n")
      |                 ^
      |                 ;
   18 |   }
      |   ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:17:17: error: expected ';' before '}' token
   17 |   printf("NO\n")
      |                 ^
      |                 ;
   18 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int a,b,c,ans=0;
  cin>>a>>b>>c;
  vextor<int>v={a,b,c};
  for(int i = 0;i<3;i++)
    if(v.at(i)=='5')ans++;
      if(ans==2)cout<<"YES"<<endl;
  else cout<<"NO"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vextor' was not declared in this scope
    6 |   vextor<int>v={a,b,c};
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vextor<int>v={a,b,c};
      |          ^~~
a.cc:8:8: error: 'v' was not declared in this scope
    8 |     if(v.at(i)=='5')ans++;
      |        ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:23: error: expected primary-expression before ')' token
   17 |   if((l1==2)&&(l2==1)))
      |                       ^
Language: C++

A=list(map(int,input().split()))
a,b,c,d,e=A[0],A[1],A[2],0,0
if a==5:
    d+=1
if b==5:
    d+=1
if c==5:
    d+=1
if a==7:
    e+=1
if b==7:
    e+=1
if c==7:
    e+=1
if d==2 and e==1:
    print('YES')
else:
    print('NO')

Compiler output:
a.cc:16:11: warning: multi-character character constant [-Wmultichar]
   16 |     print('YES')
      |           ^~~~~
a.cc:18:11: warning: multi-character character constant [-Wmultichar]
   18 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'A' does not name a type
    1 | A=list(map(int,input().split()))
      | ^
Language: C

#include <stdio.h>
int main(){
  int i,L,n,max=0;
  char s[101][101];

  scanf("%d%d",&n,&L);

for(i=0;i<n;i++){
  for(int j = 0; j < L; j++){
    scanf("%c",s[i][j]);
  }
}

sort(s,s+n);
for(int i = 0; i < n; i++){
  for(int j = 0; j < l; j++){
    printf("%s",s[i][j]);
  }
}
printf("\n");

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:14:1: error: implicit declaration of function 'sort' [-Wimplicit-function-declaration]
   14 | sort(s,s+n);
      | ^~~~
main.c:16:22: error: 'l' undeclared (first use in this function)
   16 |   for(int j = 0; j < l; j++){
      |                      ^
main.c:16:22: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void){
  
  int A,B,C,;
  
  scanf("%d",&A);
  scanf("%d",&B);
  scanf("%d",&C);
  
  if(A+B+C==17&&A==7||B==7||C==7&&A==B||B==C||C==A)
	printf("YES\n");
  else
   	printf("NO\n");
  
  return 0;
  
}
    
    
    
    

Compiler output:
main.c: In function 'main':
main.c:5:13: error: expected identifier or '(' before ';' token
    5 |   int A,B,C,;
      |             ^
Language: Java


import java.util.Scanner;

public class  IrohaAndHaiku{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int fiv = 0;
        int sev = 0; //初期値設定
        
        for(int i = 0; i < 3; i++) {
            int num = sc.nextInt();//入力値
            switch(num){ //
            case 5:
                fiv++;
                break;
            case 7:
                sev++;
                break;
            }
        }
        if(fiv == 2 && sev == 1) {
            System.out.println("YES");
        }
        else{
            System.out.println("no");
        }
    }
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){

    int a, b, c, sum;
    cin >> a >> b >> c;
    sum = a+b+c;
    if sum == 17{
        cout << "YES" << "\n";
    }else{
        cout << "NO" << "\n";
    }

    return 0;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected '(' before 'sum'
   10 |     if sum == 17{
      |        ^~~
      |        (
a.cc:12:6: error: 'else' without a previous 'if'
   12 |     }else{
      |      ^~~~
Language: C

#include<iostream>
#include<stdio.h>
#include<math.h>
#include<algorithm>
#include<vector>
#include<string>
#include<cstdlib>
using namespace std;


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

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

public static void main (String[] args) {
	int A;
	int B;
	int C;
	int i = A * B * C;
	if (i == 175) {
		System.out.println ("Yes");
	} else {
		System.out.println ("No");
	}
}

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

public class at_iroha {
	public static void main (String[] args) {
		int A;
		int B;
		int C;
		int i = A * B * C;
		if (i == 175) {
			System.out.println ("Yes");
		} else {
			System.out.println ("No");
		}
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: invalid declarator before 'num'
    4 |   int vector<int> num(3);
      |                   ^~~
a.cc:5:8: error: 'num' was not declared in this scope; did you mean 'enum'?
    5 |   cin<<num[0]<<num[1]<<num[2];
      |        ^~~
      |        enum
Language: C++

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

#define int long long
#define pb push_back
#define f first
#define s second
#define all(container) container.begin(),container.end()

#define fast ios::sync_with_stdio(0); cin.tie(0)

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

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:16:41: error: expected ';' before 'ar'
   16 |         int ar[11]={0}; ar[a]++; ar[b]++ ar[c]++;
      |                                         ^~~
      |                                         ;
Language: C++

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

int main(){
  vecotr<int> p[3];
  for (int i=0;i<3;++i) cin >> p[i];
  sort(p.begin(), p.end());
  
  bool ans = false;
  if (p[0] == 5 && p[1] == 5 && p[2] == 7) ans = true;
  
  if (ans) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'vecotr' was not declared in this scope
    5 |   vecotr<int> p[3];
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vecotr<int> p[3];
      |          ^~~
a.cc:6:32: error: 'p' was not declared in this scope
    6 |   for (int i=0;i<3;++i) cin >> p[i];
      |                                ^
a.cc:7:8: error: 'p' was not declared in this scope
    7 |   sort(p.begin(), p.end());
      |        ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;
int main()
{
  vector<int> vec(3);
  for(i = 0;i < 3; i++){
    cin >> vec[i];
  }
  sort(vec.begin(),vec.end());
  
  if(vec[0] == 5 && vec[1] == 5 && vec[2] == 7){
    cout << "YES" <<endl;
  }
  
  else {
    cout << "NO" << endl;
  }
  
  return 0;
}
    

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

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


Compiler output:
Main.java:7: error: cannot find symbol
    count5 = 0;
    ^
  symbol:   variable count5
  location: class Main
Main.java:8: error: cannot find symbol
    count7 = 0;
    ^
  symbol:   variable count7
  location: class Main
Main.java:12: error: cannot find symbol
        count5 += 1;
        ^
  symbol:   variable count5
  location: class Main
Main.java:14: error: cannot find symbol
        count7 += 1;
        ^
  symbol:   variable count7
  location: class Main
Main.java:16: error: cannot find symbol
    if(count5 ==2 && count7 == 1)
       ^
  symbol:   variable count5
  location: class Main
Main.java:16: error: cannot find symbol
    if(count5 ==2 && count7 == 1)
                     ^
  symbol:   variable count7
  location: class Main
6 errors
Language: Java

import java.util.*;

public class Main{
  public void main(String[] args){
    Scanner stdIn = new Scanner(System.in);
    int[] a = new int[];
    count5 = 0;
    count7 = 0;
    for(int i = 0;i < 3;i++){
      a[i] = stdIn.nextInt();
      if(a[i] == 5)
        count5 += 1;
      else if(a[i] ==7)
        count7 += 1;
    }
    if(count5 ==2 && count7 == 1)
      System.out.println("Yes");
    else 
      System.out.println("No");
  }
}
    
    

Compiler output:
Main.java:6: error: array dimension missing
    int[] a = new int[];
                       ^
1 error
Language: Java

import java.util.Scanner;

public class Haiku {

	public static void main(String[] args) {
		
		int five = 0;
		int seven = 0;
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < 3; i++) {

			int num = Integer.parseInt(sc.next());
			
			switch(num) {
			case 5:
				five++;
				break;
			case 7:
				seven++;
				break;
			}
		}
		if(five == 2 && seven == 1) {
			System.out.println("YES");
		} else {
			System.out.println("NO");
		}
	}
}

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

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

int main() {
  int S ;
  cin S;
  
  
  for ( char c = 'a';c <= 'z' ; c++){
    bool found = false;
    for (int i=0; i < S.length();i++){
      if(S[i]==c){
        found= true;
  }
}

    if (! found){
      cout << c << endl;
      return 0;
    }
  }
  cout << "None" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'S'
    6 |   cin S;
      |      ^~
      |      ;
a.cc:11:25: error: request for member 'length' in 'S', which is of non-class type 'int'
   11 |     for (int i=0; i < S.length();i++){
      |                         ^~~~~~
a.cc:12:11: error: invalid types 'int[int]' for array subscript
   12 |       if(S[i]==c){
      |           ^
Language: C++

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

int main() {
  int S ;
  cin S;
  
  
  for ( char c = 'a';c <= 'z' ; c++){
    bool found = false;
    for (int i=0; i < S.size();i++){
      if(S[i]==c){
        found= true;
  }
}

    if (! found){
      cout << c << endl;
      return 0;
    }
  }
  cout << "None" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:6: error: expected ';' before 'S'
    6 |   cin S;
      |      ^~
      |      ;
a.cc:11:25: error: request for member 'size' in 'S', which is of non-class type 'int'
   11 |     for (int i=0; i < S.size();i++){
      |                         ^~~~
a.cc:12:11: error: invalid types 'int[int]' for array subscript
   12 |       if(S[i]==c){
      |           ^
Language: C

#include <stdio.h>
int main(){
  int a;
  for(int i=0;i<3;i++){
    scanf("%d",&a);
    switch(a){
      case 5:
        b++;
        break;
      case 7:
        c++;
        break;
      default:
        puts("NO");
        return 0;
        break;
    }
    if(b==2&&c==1)puts("YES");
  }
  return 0;
}

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

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

int main() {
  string L;
  cin >> L;
  vector<int> S(i)
     for (int i = 0; i < L; i++) {
    cin >> Si;
     }
  
  vector<int> vec = {for(int i=0; i <L; i++)};
    sort (vec.begin(), vec.end());
 
    for (int i = 0; i < L; i++) {
        cout << Si << endl;
    }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'i' was not declared in this scope
    7 |   vector<int> S(i)
      |                 ^
a.cc:8:6: error: expected ',' or ';' before 'for'
    8 |      for (int i = 0; i < L; i++) {
      |      ^~~
a.cc:12:22: error: expected primary-expression before 'for'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                      ^~~
a.cc:12:22: error: expected '}' before 'for'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                     ~^~~
a.cc:12:22: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                      ^~~
      |                      |
      |                      <brace-enclosed initializer list>
a.cc:12:22: error: expected ',' or ';' before 'for'
a.cc: At global scope:
a.cc:13:10: error: expected constructor, destructor, or type conversion before '(' token
   13 |     sort (vec.begin(), vec.end());
      |          ^
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for (int i = 0; i < L; i++) {
      |     ^~~
a.cc:15:21: error: 'i' does not name a type
   15 |     for (int i = 0; i < L; i++) {
      |                     ^
a.cc:15:28: error: 'i' does not name a type
   15 |     for (int i = 0; i < L; i++) {
      |                            ^
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

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

int main() {
  string L;
  cin >> L;
  vector<int> Si
     for (int i = 0; i < L; i++) {
    cin >> Si;
     }
  
  vector<int> vec = {for(int i=0; i <L; i++)};
    sort (vec.begin(), vec.end());
 
    for (int i = 0; i < L; i++) {
        cout << Si << endl;
    }
}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected initializer before 'for'
    8 |      for (int i = 0; i < L; i++) {
      |      ^~~
a.cc:8:22: error: 'i' was not declared in this scope
    8 |      for (int i = 0; i < L; i++) {
      |                      ^
a.cc:12:22: error: expected primary-expression before 'for'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                      ^~~
a.cc:12:22: error: expected '}' before 'for'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                     ~^~~
a.cc:12:22: error: could not convert '{<expression error>}' from '<brace-enclosed initializer list>' to 'std::vector<int>'
   12 |   vector<int> vec = {for(int i=0; i <L; i++)};
      |                      ^~~
      |                      |
      |                      <brace-enclosed initializer list>
a.cc:12:22: error: expected ',' or ';' before 'for'
a.cc: At global scope:
a.cc:13:10: error: expected constructor, destructor, or type conversion before '(' token
   13 |     sort (vec.begin(), vec.end());
      |          ^
a.cc:15:5: error: expected unqualified-id before 'for'
   15 |     for (int i = 0; i < L; i++) {
      |     ^~~
a.cc:15:21: error: 'i' does not name a type
   15 |     for (int i = 0; i < L; i++) {
      |                     ^
a.cc:15:28: error: 'i' does not name a type
   15 |     for (int i = 0; i < L; i++) {
      |                            ^
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int  long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) sort(v.begin(),v.end())
#define mmax(a,b) a=max(a,b)
#define mmin(a,b) a=min(a,b)
#define mkp make_pair
#define pin pair<int,int>
#define V vector
long long p = 1000000007;
vel rui(19, 1);
vel par;
int ru(int a,int  r) {
	if (r == 0) { return 1; }
	int ans = ru(a, r / 2);
	ans *= ans; ans %= p;
	if (r % 2 == 1) { ans *= a; ans %= p; }
	return ans;
}
int inv(int a) {
	return ru(a, p - 2);
}
int dig(int n) {
	for (int i = 0; i < 18; i++) {
		if (rui[i] <= n and n < rui[i + 1]) { return i+1; }
	}
}
int ret1(int diff, int dg) {
	if (diff == 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans1 = ret1(hl,dg);
	ans1 *= (ru(ru(10, dg),hl) + 1); ans1 %= p;
	if (diff % 2 == 1) {
		ans1 += ru(ru(10, dg),(diff - 1));
	}
	return ans1 % p;
}
int ret2(int diff, int dg) {
	if (diff <= 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans2 = ret2(hl, dg);
	ans2 *= (ru(ru(10, dg),hl) + 1); ans2 %= p;
	ans2 += ret1(hl, dg)*hl; ans2 %= p;
	if (diff % 2 == 1) {
		ans2 += ret1(diff, dg);
	}
	return ans2 % p;
}
signed main() {
int a,b,c;cin >> a>>b>>c;
vel v={a,b,c};
sor(v);
if(v=={5,5,7}){cout << "YES"<<endl;}
else{cout <<"NO"<<endl;}
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
   65 | if(v=={5,5,7}){cout << "YES"<<endl;}
      |       ^
a.cc:65:7: error: expected ')' before '{' token
   65 | if(v=={5,5,7}){cout << "YES"<<endl;}
      |   ~   ^
      |       )
a.cc: In function 'long long int dig(long long int)':
a.cc:37:1: warning: control reaches end of non-void function [-Wreturn-type]
   37 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int  long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) sort(v.begin(),v.end())
#define mmax(a,b) a=max(a,b)
#define mmin(a,b) a=min(a,b)
#define mkp make_pair
#define pin pair<int,int>
#define V vector
long long p = 1000000007;
vel rui(19, 1);
vel par;
int ru(int a,int  r) {
	if (r == 0) { return 1; }
	int ans = ru(a, r / 2);
	ans *= ans; ans %= p;
	if (r % 2 == 1) { ans *= a; ans %= p; }
	return ans;
}
int inv(int a) {
	return ru(a, p - 2);
}
int dig(int n) {
	for (int i = 0; i < 18; i++) {
		if (rui[i] <= n and n < rui[i + 1]) { return i+1; }
	}
}
int ret1(int diff, int dg) {
	if (diff == 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans1 = ret1(hl,dg);
	ans1 *= (ru(ru(10, dg),hl) + 1); ans1 %= p;
	if (diff % 2 == 1) {
		ans1 += ru(ru(10, dg),(diff - 1));
	}
	return ans1 % p;
}
int ret2(int diff, int dg) {
	if (diff <= 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans2 = ret2(hl, dg);
	ans2 *= (ru(ru(10, dg),hl) + 1); ans2 %= p;
	ans2 += ret1(hl, dg)*hl; ans2 %= p;
	if (diff % 2 == 1) {
		ans2 += ret1(diff, dg);
	}
	return ans2 % p;
}
signed main() {
int a,b,c;cin >> a>>b>>c;
vel v={a,b,c};
sor(v);
if(v=={5,5,7}){cout << "YES"<<endl;}
else{cout <<"NO"<<endl;}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
   65 | if(v=={5,5,7}){cout << "YES"<<endl;}
      |       ^
a.cc:65:7: error: expected ')' before '{' token
   65 | if(v=={5,5,7}){cout << "YES"<<endl;}
      |   ~   ^
      |       )
a.cc: In function 'long long int dig(long long int)':
a.cc:37:1: warning: control reaches end of non-void function [-Wreturn-type]
   37 | }
      | ^
Language: C++

#include<iostream>
#include<algorithm>
#include<vector>
#include<string>
#include<set>
#include<queue>
#include<stack>
using namespace std;
#define vel vector<long long>
#define vvel vector<vel>
#define int  long long
#define rep(i,n) for(long long i=0;i<n;i++)
#define rp(i,n) for(long long i=1;i<n;i++)
#define sor(v) sort(v.begin(),v.end())
#define mmax(a,b) a=max(a,b)
#define mmin(a,b) a=min(a,b)
#define mkp make_pair
#define pin pair<int,int>
#define V vector
long long p = 1000000007;
vel rui(19, 1);
vel par;
int ru(int a,int  r) {
	if (r == 0) { return 1; }
	int ans = ru(a, r / 2);
	ans *= ans; ans %= p;
	if (r % 2 == 1) { ans *= a; ans %= p; }
	return ans;
}
int inv(int a) {
	return ru(a, p - 2);
}
int dig(int n) {
	for (int i = 0; i < 18; i++) {
		if (rui[i] <= n and n < rui[i + 1]) { return i+1; }
	}
}
int ret1(int diff, int dg) {
	if (diff == 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans1 = ret1(hl,dg);
	ans1 *= (ru(ru(10, dg),hl) + 1); ans1 %= p;
	if (diff % 2 == 1) {
		ans1 += ru(ru(10, dg),(diff - 1));
	}
	return ans1 % p;
}
int ret2(int diff, int dg) {
	if (diff <= 0) { return 0; }
	else if (diff == 1) { return 1; }
	int hl = diff / 2;
	int ans2 = ret2(hl, dg);
	ans2 *= (ru(ru(10, dg),hl) + 1); ans2 %= p;
	ans2 += ret1(hl, dg)*hl; ans2 %= p;
	if (diff % 2 == 1) {
		ans2 += ret1(diff, dg);
	}
	return ans2 % p;
}
signed main() {
int a,b,c;cin >> a>>b>>c;
vel v={a,b,c};
sor(v);
if(v=={5,5,7}){cout << YES<<endl;}
else{cout << NO<<else;}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:65:7: error: expected primary-expression before '{' token
   65 | if(v=={5,5,7}){cout << YES<<endl;}
      |       ^
a.cc:65:7: error: expected ')' before '{' token
   65 | if(v=={5,5,7}){cout << YES<<endl;}
      |   ~   ^
      |       )
a.cc:65:24: error: 'YES' was not declared in this scope
   65 | if(v=={5,5,7}){cout << YES<<endl;}
      |                        ^~~
a.cc:66:14: error: 'NO' was not declared in this scope
   66 | else{cout << NO<<else;}
      |              ^~
a.cc:66:18: error: expected primary-expression before 'else'
   66 | else{cout << NO<<else;}
      |                  ^~~~
a.cc: In function 'long long int dig(long long int)':
a.cc:37:1: warning: control reaches end of non-void function [-Wreturn-type]
   37 | }
      | ^
Language: C++

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

int main(){
  int a,b,c;
  cin >> a >> b >> c;
  int anko = max({a,b,c});
  int maojini == a+b+c;
  if(maojini == 17 && anko == 7 && (maojini-anko)/2==5 ) cout << "YES";
  else cout << "NO";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected initializer before '==' token
    8 |   int maojini == a+b+c;
      |               ^~
a.cc:9:6: error: 'maojini' was not declared in this scope; did you mean 'main'?
    9 |   if(maojini == 17 && anko == 7 && (maojini-anko)/2==5 ) cout << "YES";
      |      ^~~~~~~
      |      main
Language: C++

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

Compiler output:
a.cc:11:1: error: expected unqualified-id before 'if'
   11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
      | ^~
Language: C++

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

Compiler output:
a.cc:11:1: error: expected ',' or ';' before 'if'
   11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
      | ^~
Language: C++

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

Compiler output:
a.cc:11:1: error: expected unqualified-id before 'if'
   11 | if (s[0]==5 & s[1]==5 & s[2]==7) {
      | ^~
Language: C++

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

Compiler output:
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if (s[0]==5 & s[1]==5 & s[2]==7) {
      |   ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d=0
      |   ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: 'v' was not declared in this scope
    7 |   sort(s.begin(), v.end());
      |                   ^
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d=0
      |   ^
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: expected ';' before 'if'
    7 |   d=0
      |      ^
      |      ;
    8 |   if (a==7 & b==5 & c==5) {
      |   ~~  
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else if (a==5 & b==7 & c==5) {
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc:4:13: error: expected unqualified-id before '{' token
    4 | int main(); {
      |             ^