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

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

int main(){
  vector<int> ABC(3);
  for (int i = 0; i < 3; i++) {
    cin >> ABC.at(i);
  }
  int f = 0;
  int s = 0;
  for (int i = 0; i < 3; i++) {
    if (ABC.at(i) == 5) {
      f ++;
    }else if (ABC.at(i) == 7) {
      s ++;
    }
  }
  cout << ((f == 2) && (s == 7)) ? "YES" : "NO" << endl;
}

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

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

Compiler output:
a.cc:24:1: error: expected declaration before '}' token
   24 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main(){
  vector<string> ABC(3);
  for (int i = 0; i < 3; i++) {
    cin >> ABC.at(i);
  }
  int f = 0;
  int s = 0;
  for (int i = 0; i < 3; i++) {
    if (ABC.size() == 5) {
      f ++;
    }else if (ABC.size() == 7) {
      s ++;
    }
  }
  cout << (f == 2) && (s == 1) ? "YES" : "NO" << endl;
}

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

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:2: error: 'cin' was not declared in this scope
    6 |  cin>>A>>B>>C;
      |  ^~~
a.cc:7:10: error: expected primary-expression before '%' token
    7 |  if(A==5%%B==7%%C==5){
      |          ^
a.cc:7:16: error: expected primary-expression before '%' token
    7 |  if(A==5%%B==7%%C==5){
      |                ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:10:10: error: expected primary-expression before '%' token
   10 |  if(A==7%%B==5%%C==5){
      |          ^
a.cc:10:16: error: expected primary-expression before '%' token
   10 |  if(A==7%%B==5%%C==5){
      |                ^
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:11:22: error: 'endl' was not declared in this scope
   11 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:13:10: error: expected primary-expression before '%' token
   13 |  if(A==5%%B==5%%C==7){
      |          ^
a.cc:13:16: error: expected primary-expression before '%' token
   13 |  if(A==5%%B==5%%C==7){
      |                ^
a.cc:14:9: error: 'cout' was not declared in this scope
   14 |         cout<<"YES"<<endl;
      |         ^~~~
a.cc:14:22: error: 'endl' was not declared in this scope
   14 |         cout<<"YES"<<endl;
      |                      ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout<<"NO"<<endl;
      |         ^~~~
a.cc:17:21: error: 'endl' was not declared in this scope
   17 |         cout<<"NO"<<endl;
      |                     ^~~~
Language: C++

// include
// ------------------------------------------------
#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#include <math.h>

using namespace std;

// func
// ------------------------------------------------
int CalcSumOfDigit(int n);      // 各桁の和を計算する。

// define
// ------------------------------------------------
#define all(a)        (a).begin(),(a).end()
#define rall(a)       (a).rbegin(),(a).rend()
#define pb            push_back
#define sz(a)         int((a).size())
#define rep(i,n)      for(int(i)=0;(i)<(n);(i)++)
#define repe(i,n)     for(int(i)=0;(i)<=(n);(i)++)
#define vsort(v)      sort((v).begin(),(v).end())
#define rvsort(v)     sort(rall((v)))
#define vi            vector<int>

const int INF = 1e9;

// code
// ------------------------------------------------
int main() {

  int a = 0, b = 0;

  rep(i,3)
  {
    int i;
    cin >> i;

    if ( i == 5)
    {
      a++;
    }
    else if (i == 7)
    {
      b++;
    }
  }

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


  return 0;
}

// funcの実体
// ------------------------------------------------
int CalcSumOfDigit(int n)
{
  int s = 0;
  while(n)
  {
    s += n % 10;
    n = n / 10;
  }
  return s;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: redeclaration of 'int i'
   36 |     int i;
      |         ^
a.cc:34:7: note: 'int i' previously declared here
   34 |   rep(i,3)
      |       ^
a.cc:20:31: note: in definition of macro 'rep'
   20 | #define rep(i,n)      for(int(i)=0;(i)<(n);(i)++)
      |                               ^
Language: C++

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

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

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

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

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

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  vector<int> words = {A,B,C};
  words.sort();
  if((words.at(0) == 5) &&
       (words.at(1) == 5) &&
         (words.at(2) == 7)){
    cout << "YES" << endl ;
    return 0;
  }
  
  cout << "NO" << endl ;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'class std::vector<int>' has no member named 'sort'
    8 |   words.sort();
      |         ^~~~
Language: C++

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

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

  if (A+B+C == 22 && A*B*C == 175){
    cout << YES << endl;
  }
  else {
    cout << NO << endl;
  }
}


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

#include <iostream>
using namespace std;
int f,s;
int main(){
  for(int i=0;i<3;i++){
  	cin>>x;
    f+=(x==5);
    s+=(x==7);
  }
  if(f==2&&s==1) cout<<"YES";
  else cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'x' was not declared in this scope
    6 |         cin>>x;
      |              ^
Language: C++

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

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

  if (ABC == 5 5 7) {
    cout << "Yes" << endl;
  }

  if (ABC == 5 7 5) {
    cout << "Yes" << endl;
  }
  
  if (ABC == 7 5 5) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected initializer before 'B'
    5 |   string A B C;
      |            ^
a.cc:6:10: error: 'A' was not declared in this scope
    6 |   cin >> A B C;
      |          ^
a.cc:8:7: error: 'ABC' was not declared in this scope
    8 |   if (ABC == 5 5 7) {
      |       ^~~
a.cc:8:15: error: expected ')' before numeric constant
    8 |   if (ABC == 5 5 7) {
      |      ~        ^~
      |               )
a.cc:12:7: error: 'ABC' was not declared in this scope
   12 |   if (ABC == 5 7 5) {
      |       ^~~
a.cc:12:15: error: expected ')' before numeric constant
   12 |   if (ABC == 5 7 5) {
      |      ~        ^~
      |               )
a.cc:16:7: error: 'ABC' was not declared in this scope
   16 |   if (ABC == 7 5 5) {
      |       ^~~
a.cc:16:15: error: expected ')' before numeric constant
   16 |   if (ABC == 7 5 5) {
      |      ~        ^~
      |               )
Language: C++

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

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

  if (ABC==557) {
    cout << "Yes" << endl;
  }

  if (ABC==575) {
    cout << "Yes" << endl;
  }
  
  if (ABC==755) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'ABC' was not declared in this scope
    8 |   if (ABC==557) {
      |       ^~~
a.cc:12:7: error: 'ABC' was not declared in this scope
   12 |   if (ABC==575) {
      |       ^~~
a.cc:16:7: error: 'ABC' was not declared in this scope
   16 |   if (ABC==755) {
      |       ^~~
Language: C++

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

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

  if (ABC==557) {
    cout << "Yes" << endl;
  }

  if (ABC==575) {
    cout << "Yes" << endl;
  }
  
  if (ABC==755) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No"
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'ABC' was not declared in this scope
    8 |   if (ABC==557) {
      |       ^~~
a.cc:12:7: error: 'ABC' was not declared in this scope
   12 |   if (ABC==575) {
      |       ^~~
a.cc:16:7: error: 'ABC' was not declared in this scope
   16 |   if (ABC==755) {
      |       ^~~
a.cc:21:17: error: expected ';' before '}' token
   21 |     cout << "No"
      |                 ^
      |                 ;
   22 | }
      | ~                
a.cc:22:2: error: expected '}' at end of input
   22 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:29: error: expected ';' before 'if'
   12 |     sort(a.begin(), a.end())
      |                             ^
      |                             ;
   13 |     if(a[0] == 5 and a[1] == 5 and a[2] == 7){
      |     ~~                       
a.cc:15:6: error: 'else' without a previous 'if'
   15 |     }else {
      |      ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(void){

    int a,b,c;

    cin >> a >> b >> c;

    if(a==7){if(b==c==5) cout << "YES" else cout << "NO" << endl; }

    else if(b==7){if(a==c==5) cout << "YES" else cout << "NO" << endl; }   
    
    else if(c==7){if(a==b==5) cout << "YES" else cout << "NO" << endl; } 
    
    else cout << "NO" << endl;
    
    return 0;
    }



Compiler output:
a.cc: In function 'int main()':
a.cc:11:39: error: expected ';' before 'else'
   11 |     if(a==7){if(b==c==5) cout << "YES" else cout << "NO" << endl; }
      |                                       ^~~~~
      |                                       ;
a.cc:13:44: error: expected ';' before 'else'
   13 |     else if(b==7){if(a==c==5) cout << "YES" else cout << "NO" << endl; }
      |                                            ^~~~~
      |                                            ;
a.cc:15:44: error: expected ';' before 'else'
   15 |     else if(c==7){if(a==b==5) cout << "YES" else cout << "NO" << endl; }
      |                                            ^~~~~
      |                                            ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:12: error: wrong number of template arguments (1, should be at least 2)
    6 |     map<int>mp;
      |            ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:9:11: error: invalid types 'int[int]' for array subscript
    9 |         mp[a]++;
      |           ^
a.cc:11:10: error: invalid types 'int[int]' for array subscript
   11 |     if(mp[5]==2 && mp[7]==1){
      |          ^
a.cc:11:22: error: invalid types 'int[int]' for array subscript
   11 |     if(mp[5]==2 && mp[7]==1){
      |                      ^
Language: C

#include<stdio.h>
int main()
  {
    int a[8],i,j,N,k,p=0,m=0;
      scanf("%d %d",&N,&k);
    for(i=0;i<=k;i++)
    {
      scanf("%d",&a[i]);
    }
 for(j=N;j>=N;j++)
  {
    p=j;
    m=j%10;
    i=0;
    while(a[i]!=m)
    {
      i++;
    }
    j=j/10;
  }
  return p;
      
  


Compiler output:
main.c: In function 'main':
main.c:21:3: error: expected declaration or statement at end of input
   21 |   return p;
      |   ^~~~~~
Language: C++

1.	#include <iostream>
2.	 
3.	using namespace std;
4.	 
5.	int main()
6.	{
7.	    int A,B,C;
8.	    cin >>A>>B>>C;
9.	    if (((A==5)||(A==7))&&((B==5)||(B==7))&&((C==5)||(C==7))&&(A+B+C==17))
10.	        cout << "YES";
11.	        else cout << "NO";
12.	    return 0;
13.	}


Compiler output:
a.cc:1:9: error: stray '#' in program
    1 | 1.      #include <iostream>
      |         ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 1.      #include <iostream>
      | ^~
a.cc:4:1: error: expected unqualified-id before numeric constant
    4 | 4.
      | ^~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |       sort(x);
      |       ^~~~
      |       short
a.cc:16:7: error: 'coutn' was not declared in this scope
   16 |       coutn << endl;
      |       ^~~~~
Language: C++

include <iostream>
using namespace std;
int main()
{
 	int x[3];
  for( int i = 0;i <3; ++i ){
    cin >> x[i];
  }
  sort(x);
  if( x[0] == 5 && x[1] == 5 && x[2] == 7 ){
   cout << "YES"; 
  }
  else {
    cout << "NO"; 
  }
  coutn << endl;
	return 0; 
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:5: error: 'cin' was not declared in this scope
    7 |     cin >> x[i];
      |     ^~~
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(x);
      |   ^~~~
      |   short
a.cc:11:4: error: 'cout' was not declared in this scope
   11 |    cout << "YES";
      |    ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout << "NO";
      |     ^~~~
a.cc:16:3: error: 'coutn' was not declared in this scope
   16 |   coutn << endl;
      |   ^~~~~
a.cc:16:12: error: 'endl' was not declared in this scope
   16 |   coutn << endl;
      |            ^~~~
Language: C++

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

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

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

int main()
{
  int arr[3],count=0;
  for(int i=0;i<n;i++)
    cin>>arr[i];
  map<int,int> mp;
  for(int i=0;i<n;i++)
    mp[arr[i]]++;
  for(auto it=mp.begin();it!=mp.end();it++)
  {
    if(it->first==5)
    {
      if(it->second==2)
        count=1;
      else
        count=0;
    }
   else
   {
     if(it->first==7)
     {
       if(it->second==1)
         count=1;
       else
         count=0;
     }
     else
       count=0;
   }
  }
  if(count==0)
    cout<<"YES";
  else
    cout<<"NO";
  return 0;
}
    
    
    
    
    
    
    

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

#include <stdio.h>
int main(){
   int a,i=0;
   int cnt_7,cnt_5;
   while(i<2){
	 scanf("%d\n",&a);
     if(a==7&&cnt_7==0)
       cnt_7++;
     else if(a==7&&cnt_7==1){
       printf("NO");
       return 0;
     }
     else if(a==5&&cnt_5==2){
       printf("NO");
       return 0;
     }
     else if(a==5&&cnt_5!=2){
       cnt_5++;
     }
     else{
       printf("NO");
       return 0;
     i++;
   }
     printf("YES");
}

Compiler output:
main.c: In function 'main':
main.c:26:1: error: expected declaration or statement at end of input
   26 | }
      | ^
Language: C

#include <stdio.h>
int main(){
   int a,i=0;
   int cnt_7,cnt_5;
   while(i<2){
	 scanf("%d\n",a);
     if(a==7||cnt_7==0)
       cnt_7++;
     else if(a==7||cnt_7==1){
       printf("NO");
       return 0;
     }
     else if(b==5||cnt==2){
       printf("NO");
       return 0;
     }
     else if(b==5||cnt!=2){
       cnt_2++;
     }
     i++;
   }
     printf("YES");
}

Compiler output:
main.c: In function 'main':
main.c:13:14: error: 'b' undeclared (first use in this function)
   13 |      else if(b==5||cnt==2){
      |              ^
main.c:13:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:20: error: 'cnt' undeclared (first use in this function); did you mean 'int'?
   13 |      else if(b==5||cnt==2){
      |                    ^~~
      |                    int
main.c:18:8: error: 'cnt_2' undeclared (first use in this function); did you mean 'cnt_5'?
   18 |        cnt_2++;
      |        ^~~~~
      |        cnt_5
Language: C

#include <stdio.h>
#include <string.h>
int main(){
 int A,B,C;
  scanf("%d %d %d",&A,&B,&C);
  if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||(A==5 && B==7 && C==7)){
    printf("YES");}
      else{
        printf("NO");
      }
      return 0;
     }

Compiler output:
main.c: In function 'main':
main.c:6:125: error: expected expression before '||' token
    6 |   if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||(A==5 && B==7 && C==7)){
      |                                                                                                                             ^~
main.c:6:149: error: expected statement before ')' token
    6 |   if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||(A==5 && B==7 && C==7)){
      |                                                                                                                                                     ^
main.c:8:7: error: 'else' without a previous 'if'
    8 |       else{
      |       ^~~~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
 int A,B,C;
  scanf("%d %d %d",&A,&B,&C);
  if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
    printf("YES");}
      else{
        printf("NO");
      }
      return 0;
     }

Compiler output:
main.c: In function 'main':
main.c:6:125: error: expected expression before '||' token
    6 |   if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                             ^~
main.c:6:147: error: expected statement before ')' token
    6 |   if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                                                   ^
main.c:6:148: error: expected statement before ')' token
    6 |   if((A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                                                    ^
main.c:8:7: error: 'else' without a previous 'if'
    8 |       else{
      |       ^~~~
Language: C

#include <stdio.h>
#include <string.h>
int main(){
 int A,B,C;
  scanf("%d %d %d",&A,&B,&C);
  if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
    printf("YES");}
      else{
        printf("NO");
      }
      return 0;
     }

Compiler output:
main.c: In function 'main':
main.c:6:6: error: expected expression before '{' token
    6 |   if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |      ^
main.c:6:125: error: expected expression before '||' token
    6 |   if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                             ^~
main.c:6:147: error: expected statement before ')' token
    6 |   if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                                                   ^
main.c:6:148: error: expected statement before ')' token
    6 |   if({A==5 && B==7 && C==5) ||(A==7 && B==7 && C==5)||(A==5 && B==5 && C==7)|| (A==7 && B==5 && C==7)||A==7 && B==5 && C==5)||A==5 && B==7 && C==7)){
      |                                                                                                                                                    ^
main.c:8:7: error: 'else' without a previous 'if'
    8 |       else{
      |       ^~~~
Language: C++

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

int main() {
	ios::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(0);
	//freopen("input.txt", "r", stdin);
	//freopen("output.txt", "w", stdout);
	int cnt = 0;
	for (int i = 0, a; i < 3; ++i) {
		cin >> a;
		if (a == 5)
			cnt++;
	}
	cout << (cnt >= ? "YES" : "NO");




}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected primary-expression before '?' token
   17 |         cout << (cnt >= ? "YES" : "NO");
      |                         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using llv = vector<long long>;
using lv = vector<lint>;
using Llist = list<lint>;

ll pow(ll k,ll l) {
	ll ret = 1;
	rep(i,l) {
		ret *= k;
	}
	return ret;
}

template <typename T>
T sum(vector<T> vec) {
	ll ret = 0;
	rep(i,vec.size()) {
		ret += vec.at(i);
	}
	return ret;
}

void Main() {
	lv v(3);
	rep(i,3) cin >> lv[i];
	sort(lv.begin(),lv.end());
	if (lv[0] == 5 && lv[1] == 5 && lv[2] == 7) {
		cout << "Yes" << '\n';
		return ;
	}
	cout << "No" << '\n';
}

signed main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	Main();
	return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:31:27: error: expected primary-expression before '[' token
   31 |         rep(i,3) cin >> lv[i];
      |                           ^
a.cc:32:16: error: expected primary-expression before '.' token
   32 |         sort(lv.begin(),lv.end());
      |                ^
a.cc:32:27: error: expected primary-expression before '.' token
   32 |         sort(lv.begin(),lv.end());
      |                           ^
a.cc:33:15: error: expected unqualified-id before '[' token
   33 |         if (lv[0] == 5 && lv[1] == 5 && lv[2] == 7) {
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using lint = long;
using ll = long long;
#define rep(i,n) for(lint (i) = 0;(i) < (lint)(n);(i)++)
#define repInRange(i,start,end) for(lint (i) = (start);(i) < (end);++(i))
using lpair = pair<lint,lint>;
using llv = vector<long long>;
using lv = vector<lint>;
using Llist = list<lint>;

ll pow(ll k,ll l) {
	ll ret = 1;
	rep(i,l) {
		ret *= k;
	}
	return ret;
}

template <typename T>
T sum(vector<T> vec) {
	ll ret = 0;
	rep(i,vec.size()) {
		ret += vec.at(i);
	}
	return ret;
}

void Main() {
	lv v;
	rep(i,3) cin >> lv[i];
	sort(lv.begin(),lv.end());
	if (lv[0] == 5 && lv[1] == 5 && lv[2] == 7) {
		cout << "Yes" << '\n';
		return ;
	}
	cout << "No" << '\n';
}

signed main() {
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	Main();
	return 0;
}


Compiler output:
a.cc: In function 'void Main()':
a.cc:31:27: error: expected primary-expression before '[' token
   31 |         rep(i,3) cin >> lv[i];
      |                           ^
a.cc:32:16: error: expected primary-expression before '.' token
   32 |         sort(lv.begin(),lv.end());
      |                ^
a.cc:32:27: error: expected primary-expression before '.' token
   32 |         sort(lv.begin(),lv.end());
      |                           ^
a.cc:33:15: error: expected unqualified-id before '[' token
   33 |         if (lv[0] == 5 && lv[1] == 5 && lv[2] == 7) {
      |               ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before ';' token
    9 |    cout << "YES" >> ;
      |                     ^
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else (A==5 && B==7 && C==5){
      |      ^~~~
      |      (
a.cc:14:6: error: expected '(' before 'else'
   14 |   if else (A==7 && B==5 && C==5){
      |      ^~~~
      |      (
a.cc:17:3: error: 'else' without a previous 'if'
   17 |   else {
      |   ^~~~
a.cc:18:21: error: expected primary-expression before ';' token
   18 |     cout << "NO" >> ;
      |                     ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: expected primary-expression before ';' token
    9 |    cout << "YES" >> ;end1
      |                     ^
a.cc:9:22: error: 'end1' was not declared in this scope
    9 |    cout << "YES" >> ;end1
      |                      ^~~~
a.cc:11:6: error: expected '(' before 'else'
   11 |   if else (A==5 && B==7 && C==5){
      |      ^~~~
      |      (
a.cc:14:6: error: expected '(' before 'else'
   14 |   if else (A==7 && B==5 && C==5){
      |      ^~~~
      |      (
a.cc:17:3: error: 'else' without a previous 'if'
   17 |   else {
      |   ^~~~
a.cc:18:21: error: expected primary-expression before ';' token
   18 |     cout << "NO" >> ;end1
      |                     ^
a.cc:18:22: error: 'end1' was not declared in this scope
   18 |     cout << "NO" >> ;end1
      |                      ^~~~
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'count' was not declared in this scope
   12 |         count << "NO";
      |         ^~~~~
a.cc:15:9: error: 'count' was not declared in this scope
   15 |         count << "YES";
      |         ^~~~~
Language: C++

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a >> b >> c;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << "NO";
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:9: error: 'count' was not declared in this scope
   10 |         count << "NO";
      |         ^~~~~
a.cc:13:9: error: 'count' was not declared in this scope
   13 |         count << "YES";
      |         ^~~~~
Language: Java

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

Compiler output:
Main.java:9: error: cannot find symbol
  		int A = scanner.nextInt();
  		        ^
  symbol:   variable scanner
  location: class Main
Main.java:10: error: cannot find symbol
  		int B = scanner.nextInt();
  		        ^
  symbol:   variable scanner
  location: class Main
Main.java:11: error: cannot find symbol
  		int C = scanner.nextInt();
  		        ^
  symbol:   variable scanner
  location: class Main
3 errors
Language: Java

import java.util.*;

public class Main{
public static void main(String[] args) {
  Scanner snanner = new Scanner(System.in);
  
  int A = scanner.nextInt();
  int B = scanner.nextInt();
  int C = scanner.nextInt();
  
  if( A * B * C == 175 ){
    System.out.println("YES");
  } else {
    System.out.println("NO");
  }
  
}

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

import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int N = scan.nextInt();
      int L = scan.nextInt();
      
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      String[] str = new String[N];
      
      for(int i = 0; i < N; i++){  
        str[i] = scan.next();
      }
      
      Arrays.sort(str);
      
      for(String out : str){
        System.out.print(out);
      }
      scan.close();    
    } 
}


Compiler output:
Main.java:10: error: cannot find symbol
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      ^
  symbol:   class BufferedReader
  location: class Main
Main.java:10: error: cannot find symbol
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                  ^
  symbol:   class BufferedReader
  location: class Main
Main.java:10: error: cannot find symbol
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                                     ^
  symbol:   class InputStreamReader
  location: class Main
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int N = scan.nextInt();
      int L = scan.nextInt();
      
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      String[] str = new String[N];
      
      for(int i = 0; i < N; i++){  
        str[i] = reader.readLine();  
      }
      
      Arrays.sort(str);
      
      for(String out : str){
        System.out.print(out);
      }
      reader.close();    
    } 
}


Compiler output:
Main.java:17: error: unreported exception IOException; must be caught or declared to be thrown
        str[i] = reader.readLine();  
                                ^
Main.java:25: error: unreported exception IOException; must be caught or declared to be thrown
      reader.close();    
                  ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
 
public class Main {
    public static void main(String[] args) {
      Scanner scan = new Scanner(System.in);
      int N = scan.nextInt();
      int L = scan.nextInt();
      
      BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
      
      for(int i = 0; i < N; i++){
        String[] str = new String[N];
        str[i] = reader.readLine();  
      }
      
      Arrays.sort(str);
      
      for(String out : str){
        System.out.print(out);
      }
      reader.close();
      
    }
        
}


Compiler output:
Main.java:20: error: cannot find symbol
      Arrays.sort(str);
                  ^
  symbol:   variable str
  location: class Main
Main.java:22: error: cannot find symbol
      for(String out : str){
                       ^
  symbol:   variable str
  location: class Main
2 errors
Language: Java

import java.util.Scanner;

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

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

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

int main(){
  int A,B,C;
  cin >> A >> B >> C;
  
  int count = 0;
  if(A == 7)count ++;
  if(B == 7)count ++;
  if(C == 7)count ++;
  
  if(count == 1)cout << YES << endl;
  else cout << NO << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:25: error: 'YES' was not declared in this scope
   13 |   if(count == 1)cout << YES << endl;
      |                         ^~~
a.cc:14:16: error: 'NO' was not declared in this scope
   14 |   else cout << NO << endl;
      |                ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: expected initializer before 'cin'
    7 |     cin >> A >> B >> C ;
      |     ^~~
a.cc:9:25: error: 'C' was not declared in this scope
    9 |   if ( (A==5 && B==5 && C==7) ||
      |                         ^
a.cc:13:6: error: expected primary-expression before ')' token
   13 |      )
      |      ^
a.cc:18:3: error: expected '(' before '{' token
   18 |   {
      |   ^
      |   (
a.cc:20:4: error: expected '}' at end of input
   20 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#!/bin/bash
read s
s=(`echo $s | tr ' ' '\n' | sort`)
if((s[0]==5&&s[1]==5&&s[2]==7))
then echo "YES"
else
echo "NO"
fi

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/bin/bash
      |  ^
a.cc:3:4: error: stray '`' in program
    3 | s=(`echo $s | tr ' ' '\n' | sort`)
      |    ^
a.cc:3:33: error: stray '`' in program
    3 | s=(`echo $s | tr ' ' '\n' | sort`)
      |                                 ^
a.cc:2:1: error: 'read' does not name a type
    2 | read s
      | ^~~~
Language: C++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #iclude; did you mean #include?
    1 | #iclude<bits/stdc++.h>
      |  ^~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> l;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #iclude<bits/stdc++.h>
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> s(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #iclude<bits/stdc++.h>
a.cc:7:10: error: 'string' was not declared in this scope
    7 |   vector<string> s(n);
      |          ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | #iclude<bits/stdc++.h>
a.cc:7:18: error: 's' was not declared in this scope
    7 |   vector<string> s(n);
      |                  ^
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(s.begin(),s.end());
      |   ^~~~
      |   short
a.cc:10:28: error: 'cout' was not declared in this scope
   10 |   for(int i = 0;i < n; i++)cout << s.at(i);
      |                            ^~~~
a.cc:10:28: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << endl;
      |   ^~~~
a.cc:11:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:11: error: 'endl' was not declared in this scope
   11 |   cout << endl;
      |           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #iclude<bits/stdc++.h>
Language: C++

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

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> l;
      |   ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<string> s(n);
      |   ^~~~~~
a.cc:7:10: error: 'string' was not declared in this scope
    7 |   vector<string> s(n);
      |          ^~~~~~
a.cc:7:18: error: 's' was not declared in this scope
    7 |   vector<string> s(n);
      |                  ^
a.cc:9:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    9 |   sort(s.begin(),s.end());
      |   ^~~~
      |   short
a.cc:10:28: error: 'cout' was not declared in this scope
   10 |   for(int i = 0;i < n; i++)cout << s.at(i);
      |                            ^~~~
a.cc:11:3: error: 'cout' was not declared in this scope
   11 |   cout << endl;
      |   ^~~~
a.cc:11:11: error: 'endl' was not declared in this scope
   11 |   cout << 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) || (b==5&&c==5 && a==7) || (a==5 && c==5 && b==7))
        cout<<"YES";
      
      else
        cout<<"NO";
      return 0;
    }

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected initializer before 'vector'
    7 |    vector<int> v(3);
      |    ^~~~~~
a.cc:9:8: error: 'v' was not declared in this scope
    9 |   cin>>v[0]>>v[1]>>v[2];
      |        ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: expected initializer before 'vector'
    7 |    vector<int> v(3);
      |    ^~~~~~
a.cc:9:8: error: 'v' was not declared in this scope
    9 |   cin>>v[0]>>v[1]>>v[2];
      |        ^
a.cc:16:3: error: expected '}' before 'else'
   16 |   else
      |   ^~~~
a.cc:13:39: note: to match this '{'
   13 |   if(v[0]== 5 and v[1]==5 and v[2]==7){
      |                                       ^
Language: C++


    int a , b ;
    char op ;
    cin >> a >> op >> b ;
    if (op == '+')
    {

        cout << a + b ;
    }
    else

        cout <<  a - b ;


Compiler output:
a.cc:4:5: error: 'cin' does not name a type
    4 |     cin >> a >> op >> b ;
      |     ^~~
a.cc:5:5: error: expected unqualified-id before 'if'
    5 |     if (op == '+')
      |     ^~
a.cc:10:5: error: expected unqualified-id before 'else'
   10 |     else
      |     ^~~~
Language: C++

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

int main()
{
    string ans;
    int a, b, c;
    cin >> a >> b >> c;
    if (a != 5 || a != 7 || b != 5 || b != 7 || c != 5 || c != 7 ||)
    {
        ans = "NO";
        cout << ans << "\n";
        return 0;
    }else if(a+b+c==12){
        ans = "YES";
        cout << ans << "\n";
        return 0;
    }else{
        ans = "NO";
        cout << ans << "\n";
        return 0;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:68: error: expected primary-expression before ')' token
   11 |     if (a != 5 || a != 7 || b != 5 || b != 7 || c != 5 || c != 7 ||)
      |                                                                    ^