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

clude <bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string s;
  cin >> s;
  for (int i = 0; i < 3; i++) {
    if (s[i] == '7') {
      cout << "Yes";
      return 0;
    }
  }
  cout << "No";
  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: 'ios_base' has not been declared
    6 |   ios_base::sync_with_stdio(0);
      |   ^~~~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin.tie(0);
      |   ^~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string s;
      |   ^~~~~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin >> s;
      |          ^
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "Yes";
      |       ^~~~
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout << "No";
      |   ^~~~
Language: C

#include<iostream>

using namespace std;

int main()
{
  string N;
  char c[1];
  int n;
  cin >> N;
  for(int i = 0 ; i < 3 ; i++)
  {
    c[0] = N[i];
    n = atoi(c);
    if( n == 7 )
    {
        cout << "Yes";
        break;
    }
    else if( n!= 7 && i==2)
      cout <<"No";
  }
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
int main(void){
    int N=0;
    cin >> N;
    int count=0;
    if(N/100==7){
        count++;
    }
    if(N/10*10==7){
        count++;
    }
    if(N%10==7){
        count ++;
    }
    if(count>0)
    cout << "Yes" << endl;
    else cout << "No"<<endl;
}

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

import java.util.*;
class Main{
  public static void main(String[] args){
    Scannner sc = new Scanner(System.in);
    String s = sc.next();
    if(s.charAt(0)=='7' || s.charAt(1) =='7' || s.charAt(2) == '7')
      System.out.println("Yes");
    else
      System.out.println("No");
       
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
    Scannner sc = new Scanner(System.in);
    ^
  symbol:   class Scannner
  location: class Main
1 error
Language: C

#include <iostream>
#include <string>

int main(int argc, char *argv[]) {
  std::string s;
  std::cin >> s;
  for (auto &c : s) {
    if (c == '7'){
      std::cout << "Yes" << std::endl;
      return 0;
    }
  }
  std::cout << "No" << std::endl;
}


Compiler output:
main.c:1:10: 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 n,flag=0;
	cin>>n;
	while(n != 0)
	{
		if(n%10 != 7)
		{
			n /= 10;
		}
		else
		{
			flag = 1;
			cout<<"Yes";
			break;
		}
	}
	if(flag == 0)
	{
		cout<<"No";
	}
	
	
	
	return 0;
}


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

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

int main() {
    long n;
    cin >> n;
    int tmp;
    for(;;){
        tmp=n%10;
        if(tmp==7){
            cout<<"Yes";
            return 0;
        }
        n=n/10;        
        if(n==0){
            cout << "No";
            return 0;
        }
    }
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin >> n;
    if (n % 10 == 7)
        cout << "Yes";
    else
        cout << "No";
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
 
int main(){
  string s;
  cin>>s;
  int n=s.size();
  rep(i,n){
    if(s[i]=="7"){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(s[i]=="7"){
Language: C

#include<bits/stdc++.h>
using namespace std;
 
int main () {
  string n;
  cin>>n;
  if(n[0] == '7' ||n[1] =='7' || n[2] == '7'){
    cout <<"Yes" <<endl;
  }else {
    cout <<"No"<<endl;
  }
return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define int ll
#define REP(i, n) FOR(i, 0, n)
#define FOR(i, a, b) for (ll i = a; i < b; i++)
#define ALL(a) (a).begin(), (a).end()
typedef vector<ll> vi;
typedef vector<vector<ll>> vvi;
typedef pair<ll, ll> pii;
const ll INF = 1LL << 58;
const ll MOD = 1000000007;
typedef vector<pii> vpii;
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return true;
    }
    return false;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return true;
    }
    return false;
}

signed main()
{
    //  以降 cin の入力元が 'input.txt' になる
    //std::ifstream in("input.txt");
    //std::cin.rdbuf(in.rdbuf());
    int N;
    cin >> N;

    int a;
    a = N / 100;
    if (a == 7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    N %= 100;

    a = N / 10;
    if (a == 7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    N %= 10;

    a = N / 1;
    if (a == 7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    cout << "No" << endl;
    return 0;
}


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

#include <iostream>
using namespace std;
main() {
  cin >> x;
  x = to_string(x)
  if (x.find("7") == string::npos) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc:3:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    3 | main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:4:10: error: 'x' was not declared in this scope
    4 |   cin >> x;
      |          ^
a.cc:8:5: error: 'else' without a previous 'if'
    8 |   } else {
      |     ^~~~
Language: C

#include <iostream>

using namespace std;

int main()
{
	int n,f=0;
	cin>>n;
	while(n){
		int x = n%10;
		if(x==7) {
			f=1;
			cout<<"Yes";
			break;
		}
		n = n/10;
	}
	if(f==0) cout<<"No";
	return 0;
}


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

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

int main(void) {
	string num;
	cin >> num;
	for (char a : num)
		if (a == '7') {
			cout << "Yes" << endl;
			return 0;
		}
	cout << "No" << endl;
	return 0;
}

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

#include <stdio.h>
using namespace std;
 
int N;
void solve() {
  	cin >> N;
    if(N/100 == 7 || N%100/10 == 7 || N%10 == 7){
    	cout << "Yes\n";
    }else{
    	cout << "No\n";
    }
    return;
}

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'solve':
main.c:6:9: error: 'cin' undeclared (first use in this function)
    6 |         cin >> N;
      |         ^~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: 'cout' undeclared (first use in this function)
    8 |         cout << "Yes\n";
      |         ^~~~
Language: C

#include <bits/stdc++.h>
 
#include <algorithm>
using namespace std;
struct Fast {
    Fast() {
        cin.tie(0);
        ios::sync_with_stdio(false);
        cout << fixed << setprecision(20);
    }
} fast;
 
long long mod = 1000000007;
 
long long modpow(long long m, long long n) {
    if (n == 0) return 1;
    if (n % 2 == 0) {
        long long t = modpow(m, n / 2);
        return (t * t) % mod;
    } else {
        return (modpow(m, n - 1) * m) % mod;
    }
}
 
void yes() {
    cout << "Yes" << endl;
    exit(0);
}
void no() {
    cout << "No" << endl;
    exit(0);
}
#define REP(i, n) for (long long i = 0; i < (n); i++)
int main() {
    long long a, b, c;
    cin >> a;
    string s = to_string(a);
    for (int i = 0; i < s.size(); i++) {
        if (s[i] == '7') {
            yes();
            return 0;
        }
    }
    no();
}

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

#include"bits/stdc++.h"
using namespace std;
int main(){
	string a;
	cin>>a;
	for(int i=0;i<a.length();i++){
		if(a[i]=='7'){
			cout<<"Yes"<<endl;
			return 0;
		}
	}
	cout<<"No"<<endl;
} 

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

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

int main(){
    string N;
    bool flag = false;
    cin >> N;
    for(int i=0; i<3; i++){
        if(N.at(i)=='7'){
            flag = true;
            break;
        }
    }
    if(flag){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

}

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

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

public class Main {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int data = scan.nextInt();
		boolean b = true;
		ArrayList<Integer> a = new ArrayList<>();
		for(int i = 0; i<3; i ++){
		int x=data%10;
		a.add(x);
		data=data/10;
		if(a.get(i)==7) {
			b=true;
			break;
		}
		b=false;
		}
		if(b==true) {
			System.out.println("Yes");
		}else {
			System.out.println("No");
		}
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.ArrayList;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.ArrayList;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.Scanner;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.Scanner;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main {
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main {
      |              ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define ll long long int

int main(){

  int A;
  cin>>A;
  int a=A/100,b=(A-a*100)/10;
  if(a==7)
    cout<<"Yes";
  else if(b==7)
    cout<<"Yes";
    else if(A-a*100-b*10==7)
      cout<<"Yes";
    else
      cout<<"No";
  //cout<<a<<b;
      
    

  return 0;
}


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

#include<iostream>
using namespace std;

int main(){
    char N[3];
    int count=0;
    cin >> N;
    for(int i=0;i<3;i++){
        if(N[i]=='7'){
            count++;
        }
    }
    if(count==0){
        cout << "No" << endl;
    }else{
        cout << "Yes" << endl;
    }

}

Compiler output:
main.c:1:9: 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 d; cin >> d;
	bool ok = (d % 10 == 7) || (d / 10 % 10 == 7) || (d / 100 == 7);
	ok ? puts("Yes") : puts("No");
	return 0;
} 

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

#include<iostream>
#include <cmath>
#include<vector>
#define rep(i, n) for (int i=0;i<n;i++)
#include <map> 
#include<algorithm>
#include <numeric>
#include<deque>
#include<queue>
#include<string>
#include <iomanip>
using namespace std;
typedef long long ll;

int main(void){
    int n;
    cin>>n;
    string s = to_string(n);
    rep(i, 3) {
        if(s[i]=='7'){
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
 
typedef long long int ll;
 
int main(){
    ll x;
    cin>>x;
    while(x!=0){
        ll r=x%10;
        x=x/10;
        if(r==7){
            cout<<"YES"<<endl;
            return 0;
        }
    }
    cout<<"NO"<<endl;
    return 0;
}

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

#include <iostream>
#include <vector>
#include <algorithm>
#include <cmath>
#include <numeric>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
#include <numeric>
using namespace std;
 int main(){
 int n,a,b,f=0; 
 cin>>n;
while(n>0){
a=n%10;
if(a==7)f=1;
n/=10;
}
if(f==1)cout<<'Yes'<<endl;
else cout<<'No'<<endl;
}


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

#include<iostream>
using namespace std;
int main()
{
    int n,cnt=0;
    cin>>n;
    while(n>0)
    {
        int x=n%10;
        if(x==7)
        {
            cnt++;
            break;
        }
        n/=10;
    }

    if(cnt)
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;

    }
    return 0;
}





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

#include <iostream>
using namespace std;
#define ll long long
#define pb push_back
#define mp make_pair
void solve(){
    
}
int main() {
  int n;
  cin>>n;
  bool ok=false;
  while(n>0){
    int k=n%10;
    if(k==7)
      ok=true;
    n=n/10;
  }
  if(ok)
    cout<<"Yes";
  else
    cout<<"No";
  
  return 0;
}

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

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

using namespace std;

int main(){
     int n;
    cin>>n;
  
    if ((n/100)==7)
	{
		cout<<"Yes";
	}else if((n%100)%70==0){
          cout<<"Yes";
	}else if((n-7)%10==0){
           cout<<"Yes";
	}else{
		cout<<"No";
	}
	
	 
    return 0;
}

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

import java.util.Scanner;
class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		boolean b = a -700 == a%100 
				||  a%100 - 70 == a % 10
				||  a%10 -7 == 0;
		if (b) System.out.println("Yes");
		else System.out.println("No");
	}
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:2:1: error: unknown type name 'class'
    2 | class Main {
      | ^~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    2 | class Main {
      |            ^
Language: C

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

char s[3];

int main() {
	cin >> s;
	for(int i=0;i<3;++i)
		if (s[i] == '7') {
			printf("Yes");
			return 0;
		}
	printf("No");
	return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rep2(i,n) for (int i = 1; i <= (n); i++)
using namespace std;
using ll = long long;
using p = pair<int, int>;

int main() {
  string n;
  cin >> n;
  
  bool flag = false;

  rep(i, 3) {
    if (n[i] == '7') flag = true;
  }

  if (flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}


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

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

int main() {
  string N;
  int count = 0;
  cin >> N;
  
  for (int i = 0; i < 3; i++) {
    
    if (N.at(i) == 7) {
      count++;
    }
    
    else {
      continue;
    }
    
  }
  
  if (count == 0){
    cout << "No" << endl;
  }
  
  else {
    cout << "Yes" << endl;
  }
  
  
}


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

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

int main() {
  string N;
  cin >> N;
  
  if (N.at(0) == 7 || N.at(1) == 7 || N.at(2) == 7) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


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

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

int main(){
    int N;
    cin >> N;
    int a, b, c;
    a = N / 100;
    N -= a * 100;
    b = N / 10;
    c = N - b * 10;
    if ((a == 7) || (b == 7) || (c == 7))
    {
        cout << "Yes" << endl;
    } else
    {
        cout << "No" << endl;
    }
      
    return 0;
}

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

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

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

#define ll      long long
#define Fi      first
#define Se      second
#define Pb      push_back
#define vi      vector<int>
#define vs      vector<string>
#define vp      vector<pair<int,int>>
#define vvi     vector<vector<int>>
#define vvp     vector<vector<pair<int,int>>>
using Graph  =  vector<vector<int>>; //Caution!! Segmentation Fault!! Don't forget to add +1!

#define sz(x) (int)x.size()
#define all(v) v.begin(),v.end()
#define output_s(s) printf("%s\n",(s).c_str())

#define rep(i,n)        for(int i=0;i<(int)(n);i++)
#define Rep(i,n,m)      for(int i=(int)(n);i<(int)(m);i++)
#define RepS(i,n,m)     for(int i=(int)(n);i<=(int)(m);i++)
#define RRepS(i,n,m)    for(int i=(int)(n);i>=(int)(m);i--)
#define RepA(x)         for(auto &item:(x))

void CINT(){} //@shibh308's template
template<class Head,class... Tail> void CINT(Head&& head,Tail&&... tail){cin>>head; CINT(move(tail)...);}    
#define CIN(...) int __VA_ARGS__;CINT(__VA_ARGS__)
#define LCIN(...) ll __VA_ARGS__;CINT(__VA_ARGS__)
#define SCIN(...) string __VA_ARGS__;CINT(__VA_ARGS__)
#define VCIN(x) for(auto &item:x) cin>>item

void OUT(){}
template<class Head,class...Tail> void OUT(Head&& head,Tail&&...tail){cout<<head<<(sizeof...(tail)?' ':'\n'); OUT(move(tail)...);}
#define COUT(...) OUT(__VA_ARGS__)

template<typename TypeInt>TypeInt GCD(TypeInt a,TypeInt b){return a%b==0?b:GCD(b,a%b);} //最大公約数
template<typename TypeInt>TypeInt LCM(TypeInt a,TypeInt b){return a*b/GCD(a,b);} //最小公倍数
template<class T>bool chmax(T &a,const T &b){if(a<b){a=b;return true;}return false;}
template<class T>bool chmin(T &a,const T &b){if(b<a){a=b;return true;}return false;}
template<class T>bool comp(T a,T b){return abs(a)<abs(b);} //比較関数

void YES(bool f){printf(f?"YES\n":"NO\n");}
void Yes(bool f){printf(f?"Yes\n":"No\n");}
void Possible(bool f){printf(f?"Possible\n":"Impossible\n");}
void POSSIBLE(bool f){printf(f?"POSSIBLE\n":"IMPOSSIBLE\n");}

//----------------------library------------------------//

//const int dx[4]={1,0,-1,0};
//const int dy[4]={0,1,0,-1};
const int dx[8]={1,0,-1,0,1,-1,-1,1};
const int dy[8]={0,1,0,-1,1,1,-1,-1};
const int NMAX = 200;
const int INF = 1e9;
const int MOD = 1e9+7;
bool flag;

//----------------------Global-------------------------//

void split_int(vector<int> &v,string s){
    for(auto item:s){
        v.emplace_back(item-'0');
    }
}

signed main(){
    SCIN(N);
    vi vec;
    split_int(vec,N);
    flag=false;
    rep(i,3)if(vec[i]==7)flag=true;
    Yes(flag);

    return 0;
}

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

#!/usr/bin/env python3

YES = "Yes"
NO = "No" 

S = input()

if "7" in S:
    print(YES)
else:
    print(NO)

Compiler output:
main.c:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
main.c:3:1: warning: data definition has no type or storage class
    3 | YES = "Yes"
      | ^~~
main.c:3:1: error: type defaults to 'int' in declaration of 'YES' [-Wimplicit-int]
main.c:3:7: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
    3 | YES = "Yes"
      |       ^~~~~
main.c:3:7: error: initializer element is not computable at load time
main.c:4:1: error: expected ',' or ';' before 'NO'
    4 | NO = "No"
      | ^~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
    int a; cin>>a;
    int a1 = a/100;
    int a2 = (a/10) %10;
    int a3 = a-(a/10)*10;
    //cout<<a1<<" "<<a2<<" "<<a3;
    if(a1 == 7 || a2 == 7 || a3 == 7){
        cout<< "YES";
    }
    else cout<<"NO";
    return 0;
}


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

#include<iostream>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<iomanip>
#include<map>
#include<cmath>
#include<cstdio>
#define rep(i,n) for(int i=0; i<(n); ++i)
using namespace std;
using ll =long long;
using P = pair<int,int>;

int main(){
    string n;
    cin >> n;
    rep(i,3){
        if(n[i]=='7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}



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

#include<iostream>
#include<string>

using namespace std;

int MAX_N = 100;

int main()
{
    // スペース区切りの整数の入力
    int s;
    cin >> s;

    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    s = s/10;
    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }
    s = s/10;
    if (s%10==7)
    {
        cout << "Yes" << endl;
        return 0;
    }

    cout << "No" << endl;
    return 0;
}

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

/** Bismillahir Rahmanir Rahim **/
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define pb push_back
#define endl '\n'
#define fi first
#define se second
#define Fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define debug(x) cerr << #x << " "<< x << endl

int main()
{
    int n, x;
    cin >> n;
    while (n > 0) {
        x = n % 10;
        if (x == 7) {
            cout << "Yes\n";
            return 0;
        }
        n /= 10;
    }
    cout << "No\n";

    return 0;
}

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

#pragma region
#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <cstdlib>
#include <vector>
#include <map>
#include <queue>
#include <stack>
#include <set>
#include <list>
#include <iomanip>
#include <cstdint>
#include <cstdlib>
 
using namespace std;
 
int main()
{
    string N;
    cin >> N;
 
    string ans = "No";
 
 
    for (int i = 0; i < 3; i++)
    {
        if (N.at(i) == '7')
        {
            ans = "Yes";
        }
        
    }
    
    cout << ans << endl;
   
}

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

#include <bits/stdc++.h>

using namespace std;

int main(){
    string N;
    cin >> N;

    string res = "No\n";

    for(auto& n: N){
        if((int)(n-'0') == 7) res = "Yes\n";
    }

    cout << res ;
}

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

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

string N;

int main(){
    cin >> N;
    //to_string(N);
    if(N[0] == '7' || N[1] == '7' || N[2] == '7') cout << "Yes" << endl;
    else cout << "No" << endl;
}

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

import java.util.Scanner;


public class Main162 {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		Scanner sc = new Scanner(System.in);

		String N = sc.next();
		char seven = '7';
		if(N.charAt(0) == seven
			|| N.charAt(1) == seven
			|| N.charAt(2) == seven) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}

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

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

int main(){
  int n;
  string s;
  std::cin >> n;
  for (int i = 0; i < n.size(); i++) {
    if (n.at(i) == "7") {
      s = "Yes";
    }
    else{
      s = "No";
    }
   
  }
  cout << s << endl;
  return 0;
}



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

/*
susheel_7
*/
#include <bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define INF 0x3f3f3f3f 
#define fast_cin() ios_base::sync_with_stdio(false); cin.tie(NULL)
#define ll long long int


int main() {
    int n,s,ans=0;
    cin>>n;
    while(n>0)
    {
        s=n%10;
        n=n/10;
        if(s==7)
        {
            ans=1;
            break;
        }
        

    }
    if(ans==1)
            cout<<"Yes"<<endl;
        else
            cout<<"No"<<endl;
    return 0;
}

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


#include <iostream>

using namespace std;

int N;


int main()
{

	cin >> N;

	bool ans = false;

	int n = N;
	for (int i = 0; i < 3 && !ans; i++) {
		int a = n % 10;
		if (a == 7) { ans = true; }
		n /= 10;
	}



	cout << (ans?"Yes":"No") << endl;

	return 0;
}


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

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

int main() {
    int N;
    cin >> N;
    if (N%10==7){
      cout << "Yes" << endl;
  		return 0;
    }
    N/=10;
    if (N%10==7){
      cout << "Yes" << endl;
   		return 0;
    }
  	N/=10;
    if (N%10==7)
      cout << "Yes" << endl;
  	else 
      cout << "No" << endl;
}



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

S = input()

if "7" in S:
  print("Yes")
else:
  print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | S = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | S = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'if'
    3 | if "7" in S:
      | ^~
Language: C++

#include <iostream>
using namespace std;

int main()
{
	int N;
	cin >> N;

	char buff[10];
	itoa(N, buff, 10);

	int i;
	for (i = 0; i < strlen(buff); i++) {
		if (buff[i] == '7') {
			cout << "Yes" << endl;
			return 0;
		}
	}

	cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'itoa' was not declared in this scope
   10 |         itoa(N, buff, 10);
      |         ^~~~
a.cc:13:25: error: 'strlen' was not declared in this scope
   13 |         for (i = 0; i < strlen(buff); i++) {
      |                         ^~~~~~
a.cc:2:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C++

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

int main() {
  string str;
  cin >> str;

  for (int i = 0; i < str.size(); i++) {
    if (str.at(i) == '7') {
      cout << Yes;
    }
  }
}


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

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

int main() {

    string S;
    cin>>S;
    bool A=false;
    for(int i=0;i<3;i++){

    if(S.at(i)=='7'){
        A=true;

    }}

    if(A){
        cout<<"Yes"<<endl;
    
    }
    else {
        cout<<"No"<<endl;}
return 0;}

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

#include <iostream>
#define rep(i,n) for(int i = 0; i < (n); i++)
using namespace std;
int main()
{
  string N;
  cin >> N;
  rep(i,3){
    if(N.at(i) == '7'){
      cout << "Yes" << endl;
      return 0;
    }
  }
  cout << "No" << endl;
  return 0;
}

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

#include <iostream>
using namespace std;
 
int main()
{
  int n;
  cin >> n;
  while(n)
  {
    if(n % 10 == 7)
    {
      cout << "Yes";
      return 0;
    }
    n /= 10;
  }
  cout << "No";
  return 0;
}

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

//For fast competitive programming

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

//DATA_TYPES
typedef long long ll; 
typedef vector<int> vi;
typedef pair<int, int> ii; 
typedef vector<ii> vii;
const int INF = 0x3f3f3f3f; //Infinity

//INITIALISING
//memset(arr, 0, sizeof arr);
//vi v(N, 0);

int main()
{
	std::ios_base::sync_with_stdio(0);
	std::cin.tie(NULL);
	
	//write your code here
	int t;
	cin>>t;
/*	for(int z=0;z<t;z++)
	{
	cout<<"Case #"<<z+1<<":";
	//take inputs for TC
*/	
//int no =0;
	if ((t %10)==7)
	{cout<<"Yes"<<endl;
	    return 0;
	}
	t=t/10;
	if ((t %10)==7)
	{cout<<"Yes"<<endl;
	    return 0;
	}
	t=t/10;
	if (t==7)
	{cout<<"Yes"<<endl;
	    return 0;
	}
	
	cout<<"No"<<endl;
	

	
	
	return 0;
}

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

//============================================================================
// Name        : template.cpp
// Author      : 
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

#include <iostream>
#include <algorithm>
#include <set>
#include <map>
#include <set>
#include <vector>
#include <string.h> // for memset in CF judge.
using namespace std;
#define _CRT_SECURE_NO_DEPRECATE // suppress some compilation warning messages (for VC++ users)
// Shortcuts for "common" data types in contests
typedef long long ll;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
typedef set<int> si;
typedef map<string, int> msi;
// To simplify repetitions/loops, Note: define your loop style and stick with it!
#define x first
#define y second
#define pb push_back
#define mp make_pair
#define REP(i, a, b) \
for (int i = int(a); i <= int(b); i++) // a to b, and variable i is local!
#define forn(i,n) \
for (int i =0; i<(n); i++)
#define TRvi(c, it) \
for (vi::iterator it = (c).begin(); it != (c).end(); it++)
#define TRvii(c, it) \
for (vii::iterator it = (c).begin(); it != (c).end(); it++)
#define TRmsi(c, it) \
for (msi::iterator it = (c).begin(); it != (c).end(); it++)
#define INF 2000000000 // 2 billion
// If you need to recall how to use memset:
#define MEMSET_INF 127 // about 2B
#define MEMSET_HALF_INF 63 // about 1B
//memset(dist, MEMSET_INF, sizeof dist); // useful to initialize shortest path distances
//memset(dp_memo, -1, sizeof dp_memo); // useful to initialize DP memoization table
//memset(arr, 0, sizeof arr); // useful to clear array of integers

int main() {
    int N;
    cin >> N;
    string ans = "No";
    while(N > 0) {
       int d = N%10;

       if(d == 7) {
          ans = "Yes";
           break;
       }
       N /= 10;
    }
cout << ans;
return 0;
}


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

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

int main(){
    int n;
    cin>>n;
    if(n%10!=7&&(n/10)%10!=7&&(n/100)%10!=7){
        cout<<"No"<<endl;
    }
    else{
        cout<<"Yes"<<endl;
    }
    return 0;
}

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

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

int main()
{
    string N;
    cin >> N;
    if (N.at(0) == '7' || N.at(1) == '7' || N.at(2) == '7')
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }       
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
 
 
int main(){
  string s;
  cin>>s;
  int n=s.size();
  rep(i,n){
    if(s[i]=="7"){
      cout<<"Yes"<<endl;
      return 0;
    }
  }
  cout<<"No"<<endl;
}

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

#include<iostream>
#include<string>
using namespace std;
#define rep(i,n) for(int i=0;i<(n);i++)
using ll=long long;
const ll INF=LLONG_MAX;


int main(){
  string n;
  cin>>n;
  bool f=false;
  rep(i,n.size()){
    if(n[i]=='7')f=true;
  }
  if(f)cout<<"Yes";
  else cout<<"No";


  return 0;
}



Compiler output:
main.c:1:9: 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 n,c[5],a,ba;
	cin>>n;
	if(n/100==7)
	{
		cout<<"Yes";
		return 0;
	}
	if((n%100)/10==7)
	{
		cout<<"Yes";
		return 0;
	}
	if(n%10==7)
	{
		cout<<"Yes";
		return 0;
	}
	cout<<"No";
	return 0;
} 

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

/*********************
*@Author:   CKang *
*@Language: C++11    *
*********************/
#include<bits/stdc++.h>
#pragma comment(linker, "/STACK:102400000,102400000")
//#define DEBUG
#define RI register int
#define endl "\n"

using namespace std;

typedef long long ll;
//typedef __int128 lll;
//const int N=100000+10;
const int M=100000+10;
const int MOD=1e9+7;
const double PI = acos(-1.0);
const double EXP = 1E-9;
const int INF = 0x3fffffff;
const ll LINF = 0x3fffffffffffffff;

inline ll read(){
    long long x=0,f=1;
    char ch=getchar();
    while(ch<'0'||ch>'9'){
        if(ch=='-')
            f=-1;
        ch=getchar();
    }
    while(ch>='0'&&ch<='9'){
        x=(x<<1)+(x<<3)+(ch^48);
        ch=getchar();
    }
    return x*f;
}

int main()
{
#ifdef DEBUG
    freopen("input.in", "r", stdin);
    //freopen("output.out", "w", stdout)
#endif
    //cout.tie(0);
    //ll t = read() ;
    //while(t--){}
    ll n=read();
    while(n){
        if(n%10==7){
            puts("Yes");
            return 0;
        }
        n/=10;
    }
    puts("No");
#ifdef DEBUG
    printf("Time cost : %lf s\n",(double)clock()/CLOCKS_PER_SEC);
#endif
    //cout << "Fuck You !" << endl;
    return 0;
}


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

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

int main() {
  int N;
  cin >> N;
  
  int s1, s2, s3;
  s1 = N / 100;
  s2 = (N - s1*100) / 10;
  s3 = (N - s1*100 - s2*10);

  vector<int> vec;
  vec = {s1, s2, s3};
  int result = 0;
  for (int i=0; i<3; i++){
    if (vec.at(i) == 7){
      result = 1;
    }
  }
  if (result == 1){
    cout << "Yes" << endl;
  } else{
    cout << "No" << endl;
  
}


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

#include <iostream>
using namespace std;
int main(void) {
  int n;
  cin >> n;
  
  for (int i = 0; i < 3; i++) {
  	if (n % 10 == 7) {
    	cout << "Yes" << endl;
      	return 0;
    }
    n /= 10;
  }
  cout << "No" << endl;
  return 0;
}

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

nclude <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define PI (acos(-1))
#define ct cout<<
#define cn cin>>
#define spc <<" "<<
#define nl puts("")
#define _fl(x) puts("FLAG " #x);
#define  _(x)  cout<< #x <<" is "<< x <<endl;
#define fs first
#define sc second
#define pb push_back
#define all(v)  (v).begin(), (v).end()
#define _109 (1000000000)
#define _0(arr) memset(arr,0,sizeof ( arr ) )
#define _1(arr) memset(arr,-1,sizeof ( arr ) )
#define _ninp(n,arr) for(int i=0; i<n;i++)cin>>arr[i];
#define _nout(n,arr) for(int i=0; i<n;i++)cout<<arr[i]<<" \n"[i==n-1];
double _eps=1e-6;
 
 
int main() {
 
    int n;
    cn n;
 
    while(n){
 
    	int d=n%10;
    	n/=10;
    	if(d==7){
    		ct "Yes",nl;
    		return 0;
    	}
    }
 
 
    ct "No",nl;
    
 
 
 
 
    return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude <bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:7:12: error: 'cin' was not declared in this scope; did you mean 'cn'?
    7 | #define cn cin>>
      |            ^~~
a.cc:27:5: note: in expansion of macro 'cn'
   27 |     cn n;
      |     ^~
a.cc:6:12: error: 'cout' was not declared in this scope
    6 | #define ct cout<<
      |            ^~~~
a.cc:34:17: note: in expansion of macro 'ct'
   34 |                 ct "Yes",nl;
      |                 ^~
a.cc:9:12: error: 'puts' was not declared in this scope
    9 | #define nl puts("")
      |            ^~~~
a.cc:34:26: note: in expansion of macro 'nl'
   34 |                 ct "Yes",nl;
      |                          ^~
a.cc:6:12: error: 'cout' was not declared in this scope
    6 | #define ct cout<<
      |            ^~~~
a.cc:40:5: note: in expansion of macro 'ct'
   40 |     ct "No",nl;
      |     ^~
a.cc:9:12: error: 'puts' was not declared in this scope
    9 | #define nl puts("")
      |            ^~~~
a.cc:40:13: note: in expansion of macro 'nl'
   40 |     ct "No",nl;
      |             ^~
Language: C

#include <iostream>
#include <vector>
#include <cmath>

using namespace std;

#define ll long long

#define DEBUG (0)

int main()
{
  int N = 0;
  cin >> N;

  int x,y,z = 0;
  x = N/100;
  y = (N - (x *100))/10;
  z = N - (x*100 + 10*y);

  if(x == 7 || y == 7 || z == 7){
    cout << "Yes" << "\n";
  }else{
    cout << "No" << "\n";
  }
#if DEBUG
  cin >> x >> y >> z;
  cout << z << " " << x << " " << y << "\n";
#endif
}


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

/*author @sushil*/
#include<bits/stdc++.h>
#define ll long long
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define sushil ios_base::sync_with_stdio(false);cin.tie(NULL);
#define test() long long t;cin>>t;while(t--)
using namespace std;
int main()
{
  string s;
  cin>>s;
  if(s[0]=='7'||s[1]='7'||s[2]='7')
  cout<<"Yes";
  else
  cout<<"No";
}

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

#include<iostream>
#define ll long long
#define MAXN 55
#define mod 998244353
#define INF 0x3f3f3f3f
#define ld long double
using namespace std;
 
int main(){
    ios::sync_with_stdio(false);
    #define int ll
    string s;
    cin>>s;
    for(int i=0;i<3;i++){
        if(s[i]=='7'){
            cout<<"Yes"<<endl;return 0;
        }
    }
    cout<<"No"<<endl;
    return 0;
}

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

#include <bits/stdc++.h>
#define REP(i, n) for(int i = 0;i < n;i++)
#define REPR(i, n) for(int i = n;i >= 0;i--)
#define FOR(i, m, n) for(int i = m;i < n;i++)
#define ll long long
#define INF 999999999
using namespace std;

int main() {
  int N;
  std::cin >> N;
  bool ans = false;
  int a = N/100;
  N = N%100;
  if (a == 7) {
    ans = true;
  }
   a = N/10;
  N = N%10;
  if (a == 7) {
    ans = true;
  }
  a = N;
  if (a == 7) {
    ans = true;
  }
  if (ans) {
    std::cout << "Yes" << '\n';
  }
  else{
    std::cout << "No" << '\n';
  }
}


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

#include <cstdio>

const int MAX_N = 3;
char S[MAX_N];

int main()
{
	scanf("%s", &S);

	if(S[0] == '7' || S[1] == '7' || S[2] == '7') {
		printf("Yes");
	} else {
		printf("No");
	}

	return 0;
}

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

#include<stdio.h>
#include <string>
#include<iostream>
using namespace std;
 
int main()
{
    int N;
  char *numStr;
  	cin>>N;
 
	sprintf(numStr, "%d", n);
 
 if(numStr[0]=='7'||numStr[1]=='7'||numStr[2]=='7')
	cout<<"Yes"<<endl;
  else
  	cout<<"No"<<endl;
  
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int n;
int main() {
	cin>>n;
	while(n) {
		if(n%10==7) {
			cout<<"Yes";
			return 0;
		}
		n/=10;
	}
	cout<<"No";
}

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

#include <bits/stdc++.h>
using namespace std;
int main(){
    long long n;
    cin>>n;
    int flag=0;
    while(n>0){
        if(n%10==7){
            flag=1;
            break;
        }n/=10;
    }if(flag==1){
        cout<<"Yes"<<endl;
    }else{
        cout<<"No"<<endl;
    }
	return 0;
}

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

#include <iostream>
#include <stdio.h>
#include <math.h>
using namespace std;

int main() {
	char a, b, c;
	cin >> a >> b >> c;
	if (c == "7"){
		cout << "Yes";
	}
	else {
		cout << "No";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |         if (c == "7"){
      |             ~~^~~~~~
Language: C

print('YNeos'['7' not in input()::2])

Compiler output:
main.c:1:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    1 | print('YNeos'['7' not in input()::2])
      |       ^~~~~~~
main.c:1:7: error: expected declaration specifiers or '...' before '\x4e656f73'
Language: C++

#include <iostream.h>
#include <string>
#include <string.h>
#include <vector>
using namespace std;
typedef long long ll;


int main(){
    char N[3];

    //input
    cin >> N;

    if(N[0] == '7' || N[1] == '7' || N[2] == '7'){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }

    return 0;
}


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

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

signed main(void)
{
	int n;
	cin >> n;
	bool ok= false;
	while(n)
	{
		if (n % 10 == 7)
			ok = true;
		n /= 10;
	}
	if(ok)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
	return 0;
}


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

#include <iostream>
#include <vector>
#include <string>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<n;i++)

int main(){
	int n;
	cin >> n;
	int num;
	string ans = "No\n";
	rep(i,3){
		num = n%10;
		n /= 10;
		if(num == 7){
			ans = "Yes\n";
			break;
		}
	}
	cout << ans ;

	return 0;
}

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

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

#define lli long long int
#define st first
#define nd second
#define mp make_pair
#define pb push_back
#define INF 1000000007
#define endl "\n"

stirng a;

int main(){
	cin>>a;
	for(int i=0;i<a.size();i++){
		if(a[i]=='7'){
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
}


Compiler output:
a.cc:12:1: error: 'stirng' does not name a type
   12 | stirng a;
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:15:14: error: 'a' was not declared in this scope
   15 |         cin>>a;
      |              ^