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

#include <iostream>
using namespace std;
 
int main(void){
int a=0,b=0;
int c=0;
for(int i=0;i<3;i++){
cin>>c;
if(c==5){a+=1;}
if(c==7){b+=1;}
}
 
if(a==2&& b==1){cout << “Yes”<<endl;}
else{cout<<“No”<<endl;}
return 0;
}

Compiler output:
a.cc:13:25: error: extended character “ is not valid in an identifier
   13 | if(a==2&& b==1){cout << “Yes”<<endl;}
      |                         ^
a.cc:13:25: error: extended character ” is not valid in an identifier
a.cc:14:12: error: extended character “ is not valid in an identifier
   14 | else{cout<<“No”<<endl;}
      |            ^
a.cc:14:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:25: error: '\U0000201cYes\U0000201d' was not declared in this scope
   13 | if(a==2&& b==1){cout << “Yes”<<endl;}
      |                         ^~~~~
a.cc:14:12: error: '\U0000201cNo\U0000201d' was not declared in this scope
   14 | else{cout<<“No”<<endl;}
      |            ^~~~
Language: C++

#include <iostream>
using namespace std;

int main(void){
int a=0,b=0;
int c=0;
for(int i=0;i<3;i++){
cin>>c;
if(c==5){a+=1;}
if(c==7){b+=1;}
}

if(a==2&& b==1){cout << “Yes”<<endless;}
else{cout<<“No”<<endl;}
return 0;
}

Compiler output:
a.cc:13:25: error: extended character “ is not valid in an identifier
   13 | if(a==2&& b==1){cout << “Yes”<<endless;}
      |                         ^
a.cc:13:25: error: extended character ” is not valid in an identifier
a.cc:14:12: error: extended character “ is not valid in an identifier
   14 | else{cout<<“No”<<endl;}
      |            ^
a.cc:14:12: error: extended character ” is not valid in an identifier
a.cc: In function 'int main()':
a.cc:13:25: error: '\U0000201cYes\U0000201d' was not declared in this scope
   13 | if(a==2&& b==1){cout << “Yes”<<endless;}
      |                         ^~~~~
a.cc:13:32: error: 'endless' was not declared in this scope
   13 | if(a==2&& b==1){cout << “Yes”<<endless;}
      |                                ^~~~~~~
a.cc:14:12: error: '\U0000201cNo\U0000201d' was not declared in this scope
   14 | else{cout<<“No”<<endl;}
      |            ^~~~
Language: C++

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <sstream>
#include <functional>
#include <map>
#include <string>
#include <cstring>
#include <vector>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <list>
#include <numeric>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<ll,ll> P;
const double PI = 3.14159265358979323846;
const double EPS = 1e-12;
const ll INF = 1LL<<29;
const ll mod = 1e9+7;
#define rep(i,n) for(int (i)=0;(i)<(ll)(n);++(i))
#define repd(i,n,d) for(ll (i)=0;(i)<(ll)(n);(i)+=(d))
#define all(v) (v).begin(), (v).end()
#define pb(x) push_back(x)
#define mp(x,y) make_pair((x),(y))
#define mset(m,v) memset((m),(v),sizeof(m))
#define chmin(X,Y) ((X)>(Y)?X=(Y),true:false)
#define chmax(X,Y) ((X)<(Y)?X=(Y),true:false)
#define fst first
#define snd second
#define UNIQUE(x) (x).erase(unique(all(x)),(x).end())
template<class T> ostream &operator<<(ostream &os, const vector<T> &v){int n=v.size();rep(i,n)os<<v[i]<<(i==n-1?"":" ");return os;}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:30:20: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
   30 | #define all(v) (v).begin(), (v).end()
      |                    ^~~~~
a.cc:44:14: note: in expansion of macro 'all'
   44 |         sort(all(a));
      |              ^~~
a.cc:30:33: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
   30 | #define all(v) (v).begin(), (v).end()
      |                                 ^~~
a.cc:44:14: note: in expansion of macro 'all'
   44 |         sort(all(a));
      |              ^~~
Language: C++

#include<iostream>
#include<array>

const int poetry = 3;

int main() {
	std::array<int, poetry> arry;
	int five, seven;
	
	for (int i = 0; i < poetry; i++) {
		std::cin >> arry[i];
	}

	five=std::count(arry.begin(), arry.end(), 5);
	seven = std::count(arry.begin(), arry.end(), 7);

	if (2 == five && 1 == seven) {
		std::cout << "YES" << std::endl;
	}
	else {
		std::cout << "NO" << std::endl;
	}

	return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'count' is not a member of 'std'; did you mean 'cout'?
   14 |         five=std::count(arry.begin(), arry.end(), 5);
      |                   ^~~~~
      |                   cout
a.cc:15:22: error: 'count' is not a member of 'std'; did you mean 'cout'?
   15 |         seven = std::count(arry.begin(), arry.end(), 7);
      |                      ^~~~~
      |                      cout
Language: C++

#include <iostream>
using namespace std;

int main(){
    int a[3];
    cin >> a[0] >> a[1] >> a[2];
    sort(a,a+3);

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


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

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

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

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

int main(){
    int n;
    scanf("%d");
    
    vector<string> str(n); //declaring an array of string
    
    for(int i=0; i<n; i++) cin>>str[i];//taking n string inputs
    sort(str, str+n);//sorting n strings lexicographically and "sort()" is a built in function of C++
    for(int i=0; i<n; i++) cout<<str[i];//printing the sorted strings
    
    return 0;
}

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

#incude <stdio.h>

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incude; did you mean #include?
    1 | #incude <stdio.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:5: error: 'scanf' was not declared in this scope
    7 |     scanf("%d %d %d",&a,&b,&c);
      |     ^~~~~
a.cc:11:9: error: 'printf' was not declared in this scope
   11 |         printf ("YES\n");
      |         ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | #incude <stdio.h>
a.cc:15:9: error: 'printf' was not declared in this scope
   15 |         printf ("NO\n");
      |         ^~~~~~
a.cc:15:9: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

# -*- coding: utf-8 -*-
import math
import sys
import itertools
import numpy as np
import functools
import collections
mo = 1000000007
INF = 10**100
r = range

class infix(object):
    def __init__(self, function):
        self.function = function

    def __ror__(self, other):
        self.left = other
        return self

    def __or__(self, other):
        return self.function(self.left, other)

    def __call__(self, value1, value2):
        return self.function(value1, value2)

@infix
def c(f_t_u, f_u_r): return lambda t: f_u_r(f_t_u(t))

class _Ap(object):
    def __rlshift__(self, other):
        self.value = other
        return self

    def __rshift__(self, other):
        return other(self.value)
Ap = _Ap()
ap = Ap

#d = {1:2, 3:5, 6:10, 1000043:3814}
#zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)


x = [0]*3
x[0], x[1], x[2] = map(int,input().split())
x.sort()
if x[0]==5 and x[1] == 5 and x[2] == 7:
    print("YES");
else:
    print("NO");


Compiler output:
a.cc:1:3: error: invalid preprocessing directive #-
    1 | # -*- coding: utf-8 -*-
      |   ^
a.cc:26:1: error: stray '@' in program
   26 | @infix
      | ^
a.cc:39:2: error: invalid preprocessing directive #d
   39 | #d = {1:2, 3:5, 6:10, 1000043:3814}
      |  ^
a.cc:40:2: error: invalid preprocessing directive #zip
   40 | #zip(d.keys(), d.values())<<ap>>(list |c| sorted |c| reversed |c| list |c| print)
      |  ^~~
a.cc:2:1: error: 'import' does not name a type
    2 | import math
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:48:1: error: expected unqualified-id before 'else'
   48 | else:
      | ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
    int stdin;
    int ans[2] = {0, 0};
    for(int i = 0; i < 3; i++){
        cin >> stdin;
        if(stdin == 5){
            ans[0]++;
        }else if(stdin == 7){
            ans[1]++;
        }
    }
    if(ans[0] == 2 && ans[1] == 1){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    

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

#include<iostream>
#include<iomanip>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
#include<stack>
 
using namespace std;
 
#define P(p) cout<<(p)<<endl
#define rep(i,m,n) for(int i = (m); i < (int)(n); i++)
#define rrep(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define vsort(v) sort(v.begin(), v.end());
#define rvsort(v) sort(v.begin(), v.end(),greater<int>());
#define YES cout<<"YES"<< endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl  
#define yes cout<<"yes"<<endl
#define no cout<<"no"<<endl
#define ret return
#define C(i) cin>>i
#define C2(i,j) cin>>i>>j
#define C3(i,j,k) cin>>i>>j>>k
#define C4(i,j,k,m) cin>>i>>j>>k>>m
////////////////////////////////////////////////////////////

int main(){
  int a[3];
  C3(a[0],a[1],a[2]);
  int s5=0;
  bool s7 = false;
  rep(i,0,3){
    if(a[i] == 5 )
      s5++;
    else if(a[i] == 7)
      s7 = true;
    else{
      NO;
      ret 0;
    }#include<iostream>
#include<iomanip>
#include<map>
#include<set>
#include<string>
#include<algorithm>
#include<cmath>
#include<vector>
#include<queue>
#include<stack>
 
using namespace std;
 
#define P(p) cout<<(p)<<endl
#define rep(i,m,n) for(int i = (m); i < (int)(n); i++)
#define rrep(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define vsort(v) sort(v.begin(), v.end());
#define rvsort(v) sort(v.begin(), v.end(),greater<int>());
#define YES cout<<"YES"<< endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl  
#define yes cout<<"yes"<<endl
#define no cout<<"no"<<endl
#define ret return
#define C(i) cin>>i
#define C2(i,j) cin>>i>>j
#define C3(i,j,k) cin>>i>>j>>k
#define C4(i,j,k,m) cin>>i>>j>>k>>m
////////////////////////////////////////////////////////////

int main(){
  int a[3];
  C3(a[0],a[1],a[2]);
  int s5=0;
  bool s7 = false;
  rep(i,0,3){
    if(a[i] == 5 )
      s5++;
    else if(a[i] == 7)
      s7 = true;
    else{
      NO;
      ret 0;
    }
  }

  if(s7&&s5==2)
    YES;
  else
    NO;
  ret 0;
}
  }

  if(s7&&s5==2)
    YES;
  else
    NO;
  ret 0;
}

Compiler output:
a.cc:45:6: error: stray '#' in program
   45 |     }#include<iostream>
      |      ^
a.cc: In function 'int main()':
a.cc:45:7: error: 'include' was not declared in this scope
   45 |     }#include<iostream>
      |       ^~~~~~~
a.cc:45:23: error: expected primary-expression before '>' token
   45 |     }#include<iostream>
      |                       ^
a.cc:56:1: error: expected primary-expression before 'using'
   56 | using namespace std;
      | ^~~~~
a.cc:76:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   76 | int main(){
      |         ^~
a.cc:76:9: note: remove parentheses to default-initialize a variable
   76 | int main(){
      |         ^~
      |         --
a.cc:76:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:76:11: error: a function-definition is not allowed here before '{' token
   76 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 | if(a+b+c=12)
      |    ~~~^~
a.cc:8:12: error: expected ';' before ':' token
    8 | cout<<"YES":
      |            ^
      |            ;
Language: C++

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

int main()
{

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:34: error: expected ')' before numeric constant
   14 |         if (A == 5 && B == 5 && C 7, A== 5 && B== 7 && C == 5, A == 7 && B== 5 && C== 5)
      |            ~                     ^~
      |                                  )
Language: C++

#include <iostream>

using namespace std;

int main(){
int num[3],c5=0,c7=0;
cin >> num[0] >> num[1] >> num[2];
for(int i =0;i<3;i++){
if(num[i]==5){
c5++;
}
if(num[i]==7){
c7++;
}
if(c5==2 && c7==1){
cout << "Yes" <<endl;
}else{
cout << "No" << endl;
}
return 0;
}


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

main()
{
  scanf("%d %d %d",a,b,c);

  printf("%d %d %d",a,b,c);

}


Compiler output:
main.c:1:1: error: return type defaults to 'int' [-Wimplicit-int]
    1 | main()
      | ^~~~
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d %d %d",a,b,c);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | main()
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d %d %d",a,b,c);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:20: error: 'a' undeclared (first use in this function)
    3 |   scanf("%d %d %d",a,b,c);
      |                    ^
main.c:3:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:22: error: 'b' undeclared (first use in this function)
    3 |   scanf("%d %d %d",a,b,c);
      |                      ^
main.c:3:24: error: 'c' undeclared (first use in this function)
    3 |   scanf("%d %d %d",a,b,c);
      |                        ^
main.c:5:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    5 |   printf("%d %d %d",a,b,c);
      |   ^~~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:5:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

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

int main ()
{
    long long a;
    for(int i=1;i<=3;i++)
    {
        cin >> a;
        if(a==5)
            int dem++;
    }
    if(dem==2)
        cout << "YES";
    else 
        cout << "NO";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected initializer before '++' token
   11 |             int dem++;
      |                    ^~
a.cc:13:8: error: 'dem' was not declared in this scope; did you mean 'drem'?
   13 |     if(dem==2)
      |        ^~~
      |        drem
Language: C++

import strutils, sequtils, algorithm
let a = readline(stdin).split.map(parseInt).sorted(system.cmp[int])
if @[5, 5, 7] == a:
  echo "YES"
else:
  echo "NO"


Compiler output:
a.cc:3:4: error: stray '@' in program
    3 | if @[5, 5, 7] == a:
      |    ^
a.cc:1:1: error: 'import' does not name a type
    1 | import strutils, sequtils, algorithm
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

a = map(int, raw_input().strip().split())
sort(a)
if a[0] == 5 and a[1] == 5 and a[2] == 7:
	print('YES')
else:
	print("NO")

Compiler output:
a.cc:4:15: warning: multi-character character constant [-Wmultichar]
    4 |         print('YES')
      |               ^~~~~
a.cc:1:1: error: 'a' does not name a type
    1 | a = map(int, raw_input().strip().split())
      | ^
Language: C++

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

#define REP(i, s, n) for (int i = s; i < n; ++i)
#define rep(i, n) REP(i, 0, n)
#define SORT(c) sort((c).begin(), (c).end())
#define IINF INT_MAX
#define LLINF LLONG_MAX
#define DEBUG false

vector<int> law;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: request for member 'begin' in 'a', which is of non-class type 'int [3]'
    6 | #define SORT(c) sort((c).begin(), (c).end())
      |                          ^~~~~
a.cc:17:5: note: in expansion of macro 'SORT'
   17 |     SORT(a);
      |     ^~~~
a.cc:6:39: error: request for member 'end' in 'a', which is of non-class type 'int [3]'
    6 | #define SORT(c) sort((c).begin(), (c).end())
      |                                       ^~~
a.cc:17:5: note: in expansion of macro 'SORT'
   17 |     SORT(a);
      |     ^~~~
Language: Java

import java.util.*;

public class Main {
    Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        int array [] = {sc.nextInt(),sc.nextInt(),sc.nextInt() };
        Arrays.sort(array);
        System.out.print(array[0] == 5 && array[1] == 5 && array[2] == 7 ? "Yes" : "No");

    }
}

Compiler output:
Main.java:6: error: non-static variable sc cannot be referenced from a static context
        int array [] = {sc.nextInt(),sc.nextInt(),sc.nextInt() };
                        ^
Main.java:6: error: non-static variable sc cannot be referenced from a static context
        int array [] = {sc.nextInt(),sc.nextInt(),sc.nextInt() };
                                     ^
Main.java:6: error: non-static variable sc cannot be referenced from a static context
        int array [] = {sc.nextInt(),sc.nextInt(),sc.nextInt() };
                                                  ^
3 errors
Language: C++

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

using namespace std;

int main(){
    int a][3];
    cin>>a[0]>>a[2]>>a[2];

    sort(a, a+3);
    if(a[0]==5 && a[1]==5 && a[2]==7)cout<<"YES"<<endl;
    else cout<<"NO"<<endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected initializer before ']' token
    9 |     int a][3];
      |          ^
a.cc:10:10: error: 'a' was not declared in this scope
   10 |     cin>>a[0]>>a[2]>>a[2];
      |          ^
Language: C++

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

Compiler output:
a.cc:5:1: error: extended character   is not valid in an identifier
    5 |  
      | ^
a.cc:5:1: error: '\U000000a0' does not name a type
    5 |  
      | ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <time.h>
#include <math.h>
#include <vector>
#include <queue>
#include <map>
#include <set>
#include <algorithm>
#include <iterator>
#include <sstream>
#include <stack>
#include <string>
#include <bitset>
using namespace std;
#define FOR(I,F,N) for(int I = F; I < (int)(N); I++)
#define rep(i, n) FOR(i, 0, n)
#define FIN(V) cout<<V<<endl
#define pb push_back
#define INF (1 << 28)
template<typename T>
void remove(vector<T>& vector, unsigned int index){
vector.erase(vector.begin() + index);
}
vector<string> split(const string &s, char c);
typedef pair<int, int> P;
typedef long long ll;
typedef priority_queue<int> pq;
int StrToInt(string);
string IntToStr(int);
int dx[4] = {1, -1, 0, 0};
int dy[4] = {0, 0, 1, -1};
int go = 0;
int siti = 0;

void func(int a){
    if(a==5)go++;
    if(a == 7)siti++;
}

int main(void){
    int a,b,c;
    cin >> a >> b >> c;
    cout << (go == 2 && siti == 1)?"YES":"NO" << endl;

    return 0;
}

int StrToInt(string s){
    stringstream ss;
    ss << s;
    int val;
    ss >> val;
    return val;
}
string IntToStr(int i){
    stringstream ss;
    ss << i;
    return ss.str();
}

vector<string> split(const string &s, char delim) {
    vector<string> elems;
    string item;
    for (int i = 0; i < s.size(); i++) {
        char ch = s[i];
        if (ch == delim) {
            if (!item.empty())
                elems.push_back(item);
            item.clear();
        }
        else {
            item += ch;
        }
    }
    if (!item.empty())
        elems.push_back(item);
    return elems;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:45:47: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   45 |     cout << (go == 2 && siti == 1)?"YES":"NO" << endl;
      |                                          ~~~~~^~~~~~~
Language: C++

#include<bits/stdc++.h>
typedef long long ll
using namespace std;
int N[10];
main(){
    int a;
    for(int i = 0;i < 3;i++){
        cin >> a;
        N[a-1]++; 
    }
    if(N[4]==2&&N[6]==1)cout << "YES" << endl;
    else cout << "NO" << endl;
}

Compiler output:
a.cc:3:1: error: expected initializer before 'using'
    3 | using namespace std;
      | ^~~~~
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> a;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     if(N[4]==2&&N[6]==1)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:11:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     if(N[4]==2&&N[6]==1)cout << "YES" << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     else cout << "NO" << endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |     else cout << "NO" << endl;
      |                          ^~~~
      |                          std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:21:25: error: lvalue required as left operand of assignment
   21 |   if(five == 2 && seven = 1){
      |                         ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected primary-expression before '||' token
    8 |     if ( (a == b == 5) && c == 7) ||
      |                                   ^~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int a,b,c,cek[10];
	for (a=1;a<=3;a++)
	{
		cin>>b;
		tab[b]++;
	}
	if (tab[5]==2 && tab[7]==1)
	 cout<<"YES\n";
	else
	 cout<<"NO\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: 'tab' was not declared in this scope
   10 |                 tab[b]++;
      |                 ^~~
a.cc:12:13: error: 'tab' was not declared in this scope
   12 |         if (tab[5]==2 && tab[7]==1)
      |             ^~~
Language: C++

int a,b,c;
cin >> a >> b >> c;
int f = 0,s = 0;
if(a == 5) f++;
else if(a == 7) s++;
if(b == 5) f++;
else if(b == 7) s++;
if(c == 5) f++;
else if(c == 7) s++;
if(f == 2 && s == 1) cout << "YES" << endl;
else cout << "NO" << endl;

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> a >> b >> c;
      | ^~~
a.cc:4:1: error: expected unqualified-id before 'if'
    4 | if(a == 5) f++;
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else if(a == 7) s++;
      | ^~~~
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if(b == 5) f++;
      | ^~
a.cc:7:1: error: expected unqualified-id before 'else'
    7 | else if(b == 7) s++;
      | ^~~~
a.cc:8:1: error: expected unqualified-id before 'if'
    8 | if(c == 5) f++;
      | ^~
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else if(c == 7) s++;
      | ^~~~
a.cc:10:1: error: expected unqualified-id before 'if'
   10 | if(f == 2 && s == 1) cout << "YES" << endl;
      | ^~
a.cc:11:1: error: expected unqualified-id before 'else'
   11 | else cout << "NO" << endl;
      | ^~~~
Language: C++

#include <bits/sdc++.h>

using namespace std;

int main(){

	int a, b, c, c5, c7;
	cin >> a >> b >> c;
	if(a == 5){
		c5++
	}	
	else if(a == 7){
		c7++;
	}
	if(b == 5){
		c5++
	}	
	else if(b == 7){
		c7++;
	}
	if(c == 5){
		c5++
	}	
	else if(c == 7){
		c7++;
	}
	if(c7 == 1 and c5 == 2){
		cout << "YES";
	}
	else{
		cout << "NO";
	}

	return 0;
}

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

import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.Scanner;

/**
 * Built using CHelper plug-in
 * Actual solution is at the top
 */
public class Main {
    public static void main(String[] args) {
        InputStream inputStream = System.in;
        OutputStream outputStream = System.out;
        Scanner in = new Scanner(inputStream);
        PrintWriter out = new PrintWriter(outputStream);
        Task solver = new Task();
        solver.solve(1, in, out);
        out.close();
    }

    static class Task {
        public void solve(int testNumber, Scanner in, PrintWriter out) {
            int[] array = {in.nextInt(), in.nextInt(), in.nextInt()};
            Arrays.sort(array);
            if (array[0] == 5 && array[1] == 5 && array[2] == 7) {
                out.append("YES");
            } else {
                out.append("NO");
            }
        }

    }
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.OutputStream;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:2:1: error: 'import' does not name a type
    2 | import java.io.IOException;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import java.io.InputStream;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import java.io.PrintWriter;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:1: error: 'import' does not name a type
    5 | import java.util.Arrays;
      | ^~~~~~
a.cc:5:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:1: error: 'import' does not name a type
    6 | import java.util.Scanner;
      | ^~~~~~
a.cc:6:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:12:1: error: expected unqualified-id before 'public'
   12 | public class Main {
      | ^~~~~~
Language: C++

#include <iostream>
#include <array>

using std::cin;
using std::cout;
using std::endl;
using std::array;
using std::sort;
using std::begin;
using std::end;

int main()
{
  int nums[3];

  cin >> nums[0] >> nums[1] >> nums[2];

  sort(begin(nums), end(nums));

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


Compiler output:
a.cc:8:12: error: 'sort' has not been declared in 'std'
    8 | using std::sort;
      |            ^~~~
a.cc: In function 'int main()':
a.cc:18:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   18 |   sort(begin(nums), end(nums));
      |   ^~~~
      |   short
Language: C++

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

void check(int);

int 5_count = 0, 7_count = 0;

int main() {

	int 5_count = 0, 7_count = 0, A, B, C;
	cin >> A >> B >> C;
	check(A);
	check(B);
	check(C);

	if(5_count == 0 && 7_count == 0) {
		cout << "YES";
	}else {
		cout << "NO";
	}

	return 0;

}

void check(int input) {
	if (input == 5) {
		5_count -= 1;
	}else if (input == 7) {
		7_count -= 1;
	}
}

Compiler output:
a.cc:8:5: error: expected unqualified-id before numeric constant
    8 | int 5_count = 0, 7_count = 0;
      |     ^~~~~~~
a.cc: In function 'int main()':
a.cc:12:13: error: expected unqualified-id before numeric constant
   12 |         int 5_count = 0, 7_count = 0, A, B, C;
      |             ^~~~~~~
a.cc:13:16: error: 'A' was not declared in this scope
   13 |         cin >> A >> B >> C;
      |                ^
a.cc:13:21: error: 'B' was not declared in this scope
   13 |         cin >> A >> B >> C;
      |                     ^
a.cc:13:26: error: 'C' was not declared in this scope
   13 |         cin >> A >> B >> C;
      |                          ^
a.cc:18:12: error: unable to find numeric literal operator 'operator""_count'
   18 |         if(5_count == 0 && 7_count == 0) {
      |            ^~~~~~~
a.cc:18:28: error: unable to find numeric literal operator 'operator""_count'
   18 |         if(5_count == 0 && 7_count == 0) {
      |                            ^~~~~~~
a.cc: In function 'void check(int)':
a.cc:30:17: error: unable to find numeric literal operator 'operator""_count'
   30 |                 5_count -= 1;
      |                 ^~~~~~~
a.cc:32:17: error: unable to find numeric literal operator 'operator""_count'
   32 |                 7_count -= 1;
      |                 ^~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<cmath>
#include<queue>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<functional>
#include<algorithm>
#include<cstdio>
#include<unordered_map>
using namespace std;
typedef long long ll;
int main() {
	string a[3];
	for (int i = 0;i < 3; i++)
		cin >> a[i];
	int f = 0, s = 0;
	for (int i = 0; i < 3; i++) {
		if (a[i].size() == 5)
			f++;
		else if(a[i].size()==7)
			s++
	}
	if (f == 2 && s == 1)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:28: error: expected ';' before '}' token
   25 |                         s++
      |                            ^
      |                            ;
   26 |         }
      |         ~
Language: Java

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

	}

Compiler output:
Main.java:26: 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==5&&B==5) && (C==7)){
			System.out.println("YES");
		}
		
		else if((A==5&&C==5) &&(B==7)){
			System.out.println("YES");
		}
		
		else if((B==5&&C==5) && (A==7)){
			System.out.println("YES");
		}
		
		else {
			System.out.println("NO");
		}
		


Compiler output:
Main.java:2: 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:22: error: reached end of file while parsing
		}
		 ^
2 errors
Language: Java

	public static void main(String[] args) {
		int A = Integer.parseInt(args[0]);
		int B = Integer.parseInt(args[1]);
		int C = Integer.parseInt(args[2]);
		
		if((A==5&&B==5) && (C==7)){
			System.out.println("YES");
		}
		
		else if((A==5&&C==5) &&(B==7)){
			System.out.println("YES");
		}
		
		else if((B==5&&C==5) && (A==7)){
			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: C++

#include <iostream>
#include <cstring>
#include <cstdio>
#include <string>
#include <algorithm>
#include <vector>
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
int a[5];
int main()
{
    scanf ("%d%d%d",&a[0],&a[1],&a[2]);
    sort(a,a+3);
    if (a[0]==a[1]&&a[1]==5&&a[2]==7) printf ("YES\n");
    else printf ("NO\n");
    return 0;
}7




Compiler output:
a.cc:18:2: error: expected unqualified-id before numeric constant
   18 | }7
      |  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  int x[2] = {0};

  //input
  for(int i=0;i<3;i++){
    cin>>a;
    if(a==5)
      x[0]+=1;
    if(a==7)
      x[1]+=1;
  }
  cout<<(x[0]==2 && x[1]==1)?"YES":"NO"<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:40: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   16 |   cout<<(x[0]==2 && x[1]==1)?"YES":"NO"<<endl;
      |                                    ~~~~^~~~~~
Language: C++

#incldue <bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  int x[2] = {0};

  //input
  for(int i=0;i<3;i++){
    cin>>a;
    if(a==5)
      x[0]+=1;
    if(a==7)
      x[1]+=1;
  }
  cout<<(x[0]==2 && x[1]==1)?"YES":"NO"<<endl;
  return 0;
}


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

#incldue <bits/stdc++.h>
using namespace std;
int main()
{
  int a;
  int x[2] = {0};

  //input
  for(int i=0;i<3;i++){
    cin>>a;
    if(a==5)
      x[0]+=1;
    if(a==7)
      x[1]+=1;
  }
  cout<<((x[0]==2 && x[1]==1)?"YES":"NO")<<endl;
  return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
	int a;
	int b;
	int c;

	int s;
	int z;
	s = a+b+c;
	z = a*b*c;
	std::cin>>a>>b>>c;
	if (s==17){
		if (z==175) {
			std::cout << "YES" << std::endl;
		}else{
		std::cout<<"NO"<<std::endl;
	};

	return 0;
}

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

#include<iostream>
using namespace std;
int main()
{
	int a;
	int b;
	int c;

	int s;
	s=a+b+c;
	std::cin>>a>>b>>c;
	if (s=<12){
		std::cout<<"Yes"<<std::endl;
	}else{
		std::cout<<"No"<<std::endl;
	};

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected primary-expression before '<' token
   12 |         if (s=<12){
      |               ^
Language: C++

#include<iostream>
 
int main()
{
	int a;
	int b;
	int c;
 
	int s;
	s=a+b+c;
	std::cin>>a>>b>>c;
	if (s=<12){
		std::cout<<"Yes"<<std::endl;
	}
	else {
		std::cout<<"No"<<std::endl;
	}
 
	return 0;
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |  
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
Language: C++

#include<iostream>
 
int main()
{
	int a;
	int b;
	int c;
 
	int s;
	s = a + b + c;
	std::cin>>a>>b>>c;
	if (s=<12){
		std::cout<<"Yes"<<std::endl;
	}
	else {
		std::cout<<"No"<<std::endl;
	};
 
	return 0;
}

Compiler output:
a.cc:2:1: error: extended character   is not valid in an identifier
    2 |  
      | ^
a.cc:8:1: error: extended character   is not valid in an identifier
    8 |  
      | ^
a.cc:18:1: error: extended character   is not valid in an identifier
   18 |  
      | ^
a.cc:2:1: error: '\U000000a0' does not name a type
    2 |  
      | ^
Language: C++

#include<iostream>

int main()
{
	int a;
	int b;
	int c;

	int s;
	s = a + b + c;
	std::cin>>a>>b>>c;
	if (s=<12){
		std::cout<<"Yes"<<std::endl;
	}
	else {
		std::cout<<"No"<<std::endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: expected primary-expression before '<' token
   12 |         if (s=<12){
      |               ^
Language: C++

#include<iostream>

int main()
{
	int a;
	int b;
	int c;



	std::cin>>a>>b>>c;
	if (a+b+c=<12){
		std::cout<<"Yes"<<std::endl;
	}
	else {
		std::cout<<"No"<<std::endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:19: error: expected primary-expression before '<' token
   12 |         if (a+b+c=<12){
      |                   ^
Language: C++

#include<iostream>
int main() 
{
	int a;
	int b;
	int c;
 
	
 
	std::cin >> a >> b >> c;
	if(a+b+c=12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}
 
	return 0;
}

Compiler output:
a.cc:7:1: error: extended character   is not valid in an identifier
    7 |  
      | ^
a.cc:9:1: error: extended character   is not valid in an identifier
    9 |  
      | ^
a.cc:17:1: error: extended character   is not valid in an identifier
   17 |  
      | ^
a.cc: In function 'int main()':
a.cc:7:1: error: '\U000000a0' was not declared in this scope
    7 |  
      | ^
a.cc:11:15: error: lvalue required as left operand of assignment
   11 |         if(a+b+c=12) {
      |            ~~~^~
a.cc:17:2: error: expected ';' before 'return'
   17 |  
      |  ^
      |  ;
   18 |         return 0;
      |         ~~~~~~
Language: C++

#include<iostream>
int main() 
{
	int a;
	int b;
	int c;

	

	std::cin >> a >> b >> c;
	if(a+b+c=12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

	return 0;
}


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

#include<iostream>

using namespace std;
int main() 
{
	int a;
	int b;
	int c;

	std::cin >> a >> b >> c;
	if(a+b+c=12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

	return 0;
}


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

#include<iostream>
using namespase std;
int main() 
{
	int a;
	int b;
	int c;

	std::cin >> a >> b >> c;
	if(a+b+c=12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

	return 0;
}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespase'
    2 | using namespase std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:15: error: lvalue required as left operand of assignment
   10 |         if(a+b+c=12) {
      |            ~~~^~
Language: C++

#include<iostream>

int main() 
{
	int a;
	int b;
	int c;

	std::cin >> a >> b >> c;
	if(a+b+c=12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

	return 0;
}


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

#include<iostream>

int main() 
{
	int a;
	int b;
	int c;

	std::cin >> a >> b >> c;
	if (a + b + c = 12) {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::endl;
	}

	return 0;
}


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

#include<iostream>

int main() 

int a;
	int b;
	int c;

	std::cin >> a >> b >> c;
	if (a + b + c = 12) {
		std::cout << "Yes" << endl;
	}
	else {
		std::cout << "No" << endl;
	}

	return 0;
}


Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int a;
      | ^~~
a.cc:9:14: error: 'cin' in namespace 'std' does not name a type
    9 |         std::cin >> a >> b >> c;
      |              ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:9: error: expected unqualified-id before 'if'
   10 |         if (a + b + c = 12) {
      |         ^~
a.cc:13:9: error: expected unqualified-id before 'else'
   13 |         else {
      |         ^~~~
a.cc:17:9: error: expected unqualified-id before 'return'
   17 |         return 0;
      |         ^~~~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include<iostream>
int main
{
int num1,num2,num3;
std::cin >> num1 >> num2 >>num3
if(num1+num2+num3=12)
{
std::cout << "YES" << endl;
}
else
{
std::cout << "No" << endl;
}

return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:1: error: expected primary-expression before 'int'
    4 | int num1,num2,num3;
      | ^~~
a.cc:4:1: error: expected '}' before 'int'
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:5:6: error: 'cin' in namespace 'std' does not name a type
    5 | std::cin >> num1 >> num2 >>num3
      |      ^~~
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:1: error: expected unqualified-id before 'else'
   10 | else
      | ^~~~
a.cc:15:1: error: expected unqualified-id before 'return'
   15 | return 0;
      | ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include<iostream>
int main
{
std::cin >> num1 >> num2 >>num3
if(num1+num2+num3=12)
{
std::cout << "YES" << endl;
}
else
{
std::cout << "No" << endl;
}

return 0;
}

Compiler output:
a.cc:2:5: error: cannot declare '::main' to be a global variable
    2 | int main
      |     ^~~~
a.cc:4:13: error: 'num1' was not declared in this scope
    4 | std::cin >> num1 >> num2 >>num3
      |             ^~~~
a.cc:4:21: error: 'num2' was not declared in this scope
    4 | std::cin >> num1 >> num2 >>num3
      |                     ^~~~
a.cc:4:28: error: 'num3' was not declared in this scope
    4 | std::cin >> num1 >> num2 >>num3
      |                            ^~~~
a.cc:5:1: error: expected '}' before 'if'
    5 | if(num1+num2+num3=12)
      | ^~
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
a.cc:9:1: error: expected unqualified-id before 'else'
    9 | else
      | ^~~~
a.cc:14:1: error: expected unqualified-id before 'return'
   14 | return 0;
      | ^~~~~~
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^