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


import java.util.Scanner;

public class Main {

    public static void main(String[] args) {
	// write your code here
        Scanner scanner = new Scanner(System.in);
            int b = scanner.nextInt();
        
            while(b > 0){
                int c = b % 10;
                if(c == 7)
                {
                    System.out.println("Yes");
                    ans = true;
                    return;
                }
                b /= 10;

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

        }
    }



Compiler output:
Main.java:16: error: cannot find symbol
                    ans = true;
                    ^
  symbol:   variable ans
  location: class Main
1 error
Language: C

//	Author : amnptl 
//	   Godbless
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define NeedForSpeed() ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define MOD (1000000007); // 1e9+7
int main()
{
	NeedForSpeed();
	int n; cin>>n; 
	bool pos = false;
	while(n)
	{
		int x = n%10;
		if(x==7) pos = true;
		n/=10;
	}		
	if(pos) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

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

//#include<bits/stdc++.h>
#include <iostream>
using namespace std;
int main(){
    int n,rem,i;
    bool flag=false;
    cin>>n;
    while(n!=0){
        rem=n%10;
        if(rem==7){
            flag=true;
            break;
        }
        n=n/10;
    }
    if(flag)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

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,rem,i;
    bool flag=false;
    cin>>n;
    while(n!=0){
        rem=n%10;
        if(rem==7){
            flag=true;
            break;
        }
        n=n/10;
    }
    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

#include <bits/stdc++.h>
using namespace std;
int main(){
    int n,rem,i;
    bool flag=false;
    cin>>n;
    while(n!=0){
        rem=n%10;
        if(rem==7){
            flag=true;
            break;
        }
        n=n/10;
    }
    if(flag)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 <stdio.h>
#include <stdlib.h>
 
int main(){
  int n;
  int ct = 0;
 scanf("%d",&n);
 for(int i=0;i<3;i++){
  if(n%10==7){
 	printf("Yes");
    return 0;
  }
   n = n/10;
 }
 
  printf("No");
  return 0;
}
  
  
  
  
  
}
#include <stdio.h>
#include <stdlib.h>

int main(){
  int n;
  int ct = 0;
 scanf("%d",&n);
 for(int i=0;i<3;i++){
  if(n%10==7){
 	printf("Yes");
    return 0;
  }
   n = n/10;
 }
 
  printf("No");
  return 0;
}
  


Compiler output:
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
main.c:28:5: error: redefinition of 'main'
   28 | int main(){
      |     ^~~~
main.c:4:5: note: previous definition of 'main' with type 'int()'
    4 | int main(){
      |     ^~~~
Language: C

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

int main(){
  int n;
  int ct = 0;
 scanf("%d",&n);
 for(int i=0;i<3;i++){
  if(n%10==7){
 	printf("Yes");
    return 0;
  }
   n = n/10;
 }
 
  printf("No");
  return 0;
}
  
  
  
  
  
}

Compiler output:
main.c:24:1: error: expected identifier or '(' before '}' token
   24 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  string s;
  cin >> s;
  for(int i = 0; i < s.size(); ++i){
    if(s[i] == '7'){
      cout << "Yes";
      return;
    }
  }
  cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |       return;
      |       ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define uint unsigned int
#define ull  unsigned long long
typedef string str;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define ins insert
#define all(x) (x).begin(), (x).end()
#define fr(i, n) for(int i = 0; i < n; i++)
#define rall(x) (x).rbegin(), (x).rend()
#define speed() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
const int INF = 1e9 + 5;
 
 
void solve(){
    string s;
    cin >> s;
    for(i, s.size()){
        if(s[i] == '7'){
            cout << "Yes";
            return;
        }
    }
    cout << "No";
    
    
}
 
 
int main(){
    speed();
    int t = 1;
    // cin >> t;
    while(t--)solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:24:9: error: 'i' was not declared in this scope
   24 |     for(i, s.size()){
      |         ^
a.cc:33:1: error: expected primary-expression before '}' token
   33 | }
      | ^
a.cc:30:18: error: expected ')' before '}' token
   30 |     cout << "No";
      |                  ^
      |                  )
......
   33 | }
      | ~                 
a.cc:24:8: note: to match this '('
   24 |     for(i, s.size()){
      |        ^
a.cc:33:1: error: expected primary-expression before '}' token
   33 | }
      | ^
Language: C

#include <bits/stdc++.h>
using namespace std;
#define uint unsigned int
#define ull  unsigned long long
typedef string str;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define ins insert
#define all(x) (x).begin(), (x).end()
#define fr(i, n) for(int i = 0; i < n; i++)
#define rall(x) (x).rbegin(), (x).rend()
#define speed() ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
const int INF = 1e9 + 5;
 
 
void solve(){
    string s;
    cin >> s;
    for(i, s.size()){
        if(s[i] == '7'){
            cout << "Yes";
            return;
        }
    }
    cout << "No";
    
    
}
 
 
int main(){
    speed();
    int t = 1;
    // cin >> t;
    while(t--)solve();
}

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() {
	int n;
	cin >> n;
	int j = 0;
	while (n > 0) {
		if (n % 10 == 7) {
			cout << "Yes" << endl;
			j = 1;
			break;
		}
		else {
			n /= 10;
		}
	}
	if (j == 0) {
		cout << "No" << endl;
	}
}

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = a % 100 - x;
       	int z = a/100;
      	int c;
		if(x==7||y==7) {
          System.out.println("Yes");
          c=1;
        }
   	    else if(z==7&&c!=1) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
}

Compiler output:
Main.java:14: error: variable c might not have been initialized
   	    else if(z==7&&c!=1) {
   	                  ^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = a % 100 - x;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
          int c=1;
        }
   	    else if(z==7 && c!=1) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
   	    else if(z==7 && c!=1) {
   	                    ^
  symbol:   variable c
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = a % 100 - x;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
          int c=1;
        }
   	    else if(z==7&&c!=1) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
}

Compiler output:
Main.java:13: error: cannot find symbol
   	    else if(z==7&&c!=1) {
   	                  ^
  symbol:   variable c
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
      	int x = a % 10;
      	int y = a % 100 - x;
       	int z = a/100;
		if(x==7||y==7) {
          System.out.println("Yes");
          break;
        }
   	    else if(z==7) {
          System.out.println("Yes");
        }
   		else{
          System.out.println("No");
        }
	}
}

Compiler output:
Main.java:11: error: break outside switch or loop
          break;
          ^
1 error
Language: C

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back;
#define mod 1000000007
#define test cout<<"#"


int main()
{
   ios_base::sync_with_stdio(false);
   cin.tie(0);
   ll n;
   cin>>n;
   while(n!=0)
   {
      if(n%10==7)
      {
         cout<<"Yes\n";
         return 0;
      }
      n=n/10;
   }
   cout<<"No\n";
}

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<string>

using namespace std;

int main(){
    string num;
    cin >> num;
    cout << ((num.find('7') != string::npos) ? "Yes" : "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 n;

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

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

import java.util.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
      long n = Integer.parseint(sc.next());
      long total = 0;
      for(long i=0; i<n; i++){
        if(n / 3 == 0 || n / 5== 0 ){
        }else{
          total += n;
        }
      }
      System.out.println(total);   
    }
    
}


Compiler output:
Main.java:7: error: cannot find symbol
      long n = Integer.parseint(sc.next());
                      ^
  symbol:   method parseint(String)
  location: class Integer
1 error
Language: C

/*╔═══╗──╔╗╔╗───────────────────╔╗────────╔═══╦═══╗
  ║║─║╠╗╠╗╔╣╚═╦══╦═╗╔╦╗╔═╗╔══╦══╣╚═╦╦══╦══╣║─║║║─╚╝
  ║╔═╗║╚╝║╚╣║║║╚╝║║─╔╦╗║║║║╚╝║╚╝║╚╝║║║═╬══║╔═╗║╚╩═║
  ╚╝─╚╩══╩═╩╝╚╩══╩╝─╚╩╝╚╝╚╩══╩══╩══╩╩══╩══╩╝─╚╩═══╝*/
#include<bits/stdc++.h>
#define mod 1000000007
#define modc 998244353
#define pb push_back
#define mp make_pair
#define ll long long
#define ull unsigned long long
#define deb(x) cout << #x << " " << x << endl;
#define yes cout << "YES" << endl
#define no cout << "NO" << endl
using namespace std;
void solve()
{
	int n;
	cin >> n;
	string a = to_string(n);
	if(a[0] == '7' || a[1] == '7' || a[2] == '7')
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
}
int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(NULL);
	cout.tie(NULL);
	int t = 1;
	while(t--)
		solve();
}


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;
    if((n%10==7)||((n/10)%10==7)||((n/100)%10==7))
    {
        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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    if((n%10==7)||((n/10)%10==7)||((n/100)%10==7))
    {
        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.*;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
      //整数の入力
      Scanner sc = new Scanner(System.in);
	  String n = sc.next();
      
      if(n.contains("7")){
        System.out.println("Yes");
      }else{
        System.out.println("No");
      }
    }     
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main { //クラス名はMain
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main { //クラス名はMain
      |              ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n,f=0;
    cin>>n;
    while(n)
    {
        if(n%10==7)
            f=1;
        n/=10;
    }
    if(f)
        printf("Yes\n");
    else
        printf("No\n");
    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 <algorithm>
using namespace std;
int main(){
  int N;
  cin>>N;
  bool flag=false;
  if(N/100==7){
    flag=true;
  }
  if((N%100)/10==7){
    flag=true;
  }
  if(N%10==7){
    flag=true;
  }
  if(flag==true){
    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<bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin>>N;
  bool flag=false;
  if(N/100==7){
    flag=true;
  }
  if((N%100)/10==7){
    flag=true;
  }
  if(N%10==7){
    flag=true;
  }
  if(flag==true){
    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

#include <iostream>
#include <string>

int main() {
    std::string s;
    std::cin >> s;

    bool flag = false;
    for(int i; i < s.length(); i++) {
        if(s[i] == '7') {
            flag = true;
        }
    }

    if(flag) {
        std::cout << "Yes" << std::endl;
    } else {
        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;
  cin>>N;
  bool lean=false;
  if(N/100==7){
    lean=true;
  }
  if((N%100)/10==7){
    lean=true;
  }
  if(N%10==7){
    lean=true;
  }
  if(lean==true){
    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;
  bool lean=false;
  if(N/100==7){
    lean=true;
  }
  if((N%100)/10==7){
    lean=true;
  }
  if(N%10==7){
    lean=true;
  }
  if(lean==true){
    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

#include <bits/stdc++.h>
using namespace std;
int main () {
  int n ;
  cin >> n;
  if (n % 10 == 7 || n / 10 % 10 == 7 || n / 100 % 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;
int main () {
  int n ;
  cin >> n;
  if (n % 10 == 7 || n / 10 % 10 == 7 || n / 100 % 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: Java

import java.util.*;	
		
public class Main{
  public static void main(String[] args){
int num =sc.nextInt();
				 boolean ans=false;
				 for(int i=1;i<=3;i++){
					 if(num%10==7)
						 ans=true;
					 num=num/10;
				 }
				 if(ans){
					 System.out.print("Yes");
				 }else{
					 System.out.print("No");
				 }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
int num =sc.nextInt();
         ^
  symbol:   variable sc
  location: class Main
1 error
Language: Java

import java.util.*;
import static java.lang.System.*;

public class Main {
  	Scanner sc = new Scanner(System.in);
    public static void main(String[] args) {
        
      	String N = sc.next();
      	if (N.contains("7")) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
          
          
    }
}


Compiler output:
Main.java:8: error: non-static variable sc cannot be referenced from a static context
      	String N = sc.next();
      	           ^
1 error
Language: Java

import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
      	String N = sc.next();
      	if (N.contains("7")) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}
          }
          
    }
}

Compiler output:
Main.java:16: error: class, interface, enum, or record expected
}
^
1 error
Language: C

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

#define fastio 

#define ll long long
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define ld long double
#define forn(low,high,i) for(i = low; i < high; i++)
#define forrev(high,low,i) for(i = high; i >= low; i--)
#define all(v) v.begin(),v.end()
#define decimal_digits cout << fixed << setprecision(15);

string to_string(string s) { return '"' + s + '"';}
string to_string(char s) { return string(1, s);}
string to_string(const char* s) { return to_string((string) s);}
string to_string(bool b) { return (b ? "true" : "false");}
template <typename A> string to_string(A);
template <typename A, typename B>string to_string(pair<A, B> p) {return "(" + to_string(p.first) + ", " + to_string(p.second) + ")";}
template <typename A> string to_string(A v) {bool f = 1; string r = "{"; for (const auto &x : v) {if (!f)r += ", "; f = 0; r += to_string(x);} return r + "}";}
void debug_out() { cerr << endl; }
template <typename Head, typename... Tail> void debug_out(Head H, Tail... T) {cerr << " " << to_string(H); debug_out(T...);}
#define pr(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)

mt19937_64 rng(chrono::steady_clock::now().time_since_epoch().count());

const int inf = 1e9;
const long long INF = 1e18;
const int mod = 1e9 + 7;
const int bit32 = log2(inf) + 3;
const int bit64 = log2(INF) + 3;

inline int add(long long a, long long b){a += b; if(a >= mod) a -= mod; return a;}
inline int sub(long long a, long long b){a -= b; if(a < 0) a += mod; return a;}
inline int mul(long long a, long long b){a %= mod; b %= mod; return (int)((long long) a * b % mod);}
inline int modexpo(long long a, long long b){int res = 1; while(b > 0){ if(b & 1) res = mul(res, a); a = mul(a, a); b /= 2;} return res;}
inline int divide(long long a, long long b){return mul(a, modexpo(b, mod - 2));}
inline int inv(long long a){return modexpo(a, mod - 2);}

clock_t time_p = clock();

void ktj(){
  time_p = clock() - time_p;
  cerr << "Time elapsed : " << (float)(time_p)/CLOCKS_PER_SEC << "\n";
}

void pre(){ // Reset each global variable (esp. for graphs)
  
}

void solve(){
  string s;
  cin >> s;
  if(s[0] == '7' or s[1] == '7' or s[2] == '7')
    cout << "Yes\n";
  else
    cout << "No\n";
}

int main(){
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);cout.tie(NULL); 

  pre();

  int t = 1, T;
  // cin >> t;
  T = t;
  while(t--){
    // cout << "Case #" << T - t << ": ";
    solve();
  }

  ktj();
}


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>
#define rep(i,n) for (int i= 0;i<(n);++i)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

int check(int a,int b){
  if(a==7){
    ++b;
  }
return b;
}

int main(){
  int n,x,y,z;
  cin >>n;
  x =n/100;
  y =(n-(x*100))/10;
  z = n-(x*100+y*10);
  int flag=0;
  flag =check (x,flag);
  flag =check (y,flag);
  flag =check (z,flag);
  if(flag){
    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;

#define int long long int

void fileioe(){
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout); 
	freopen("error.txt","w",stderr);
}
#define GO ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);

#ifndef ONLINE_JUDGE
#define fioe() fileioe()
#else
#define fioe() 1
#endif
//!

int32_t main()
{
	GO
	//fioe();
	string s;
	cin>>s;bool flag = false;
	for(int i=0;i<s.length();i++){
		if(s[i] == '7')
			flag = true;
	}	
	if(flag)
		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<iostream>
using namespace std;
 
int main()
{
  int N =0;
  cin >> N;
    if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}
 
cout << "No";
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: expected ';' before 'if'
   12 | N-=(100*(N/100))
      |                 ^
      |                 ;
   13 | if (N%10==7){
      | ~~               
a.cc:17:15: error: expected ';' before 'if'
   17 | N-=(10*(N/10))
      |               ^
      |               ;
   18 | if (N==7){
      | ~~
Language: C

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

int main() {
	int n;
	scanf("%d", &n);
	
	bool chk = false;
	while(n>0) {
		if(n%10==7)chk = true;
		n/=10;
	}
	puts(chk?"Yes":"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<iostream>
using namespace std;
 
int main()
{
  cin >> N;
    if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}
 
cout << "No";
 return 0;
}

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

#include<iostream>
using namespace std;
 
int main()
{
    if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}
 
cout << "No";
 return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope
    6 |     if ((N/100)==7){
      |          ^
a.cc:10:1: error: 'N' was not declared in this scope
   10 | N-=(100*(N/100))
      | ^
a.cc:22:2: error: 'return0' was not declared in this scope
   22 |  return0;
      |  ^~~~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
//#pragma GCC target("avx2")
#pragma GCC optimize("-O3")
#define rep(i,a,n) for (int i=a;i<n;i++)
#define per(i,a,n) for (int i=n-1;i>=a;i--)
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define fi first
#define se second
#define INF 1e18
#define SZ(x) ((int)(x).size())
typedef vector<int> VI;
typedef long long ll;
typedef long double ld;
typedef pair<int,int> PII;
typedef double db;
mt19937 mrand(random_device{}());
const ll mod=1743;
const ll gd = 2000001;
const ll gd_o = 1000001;
//const ll p = 31;
const ll MD=1e6 + 3;
int rnd(int x) { return mrand() % x;}
ll fastpow(ll a, ll n) {ll res=1;while(n){if(n&1)res*=a;a*=a;n>>=1;}return res;}
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
ll gcd(ll a,ll b) { return b?gcd(b,a%b):a;}
ll nok(ll a,ll b){ return (a * b / gcd(a, b));}


int main() {
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
//    freopen("input.txt","r",stdin);
//    freopen("output.txt","w",stdout);
//    freopen("msched.in", "r", stdin);
//    freopen("msched.out", "w", stdout);
    string n;
    cin >> n;
    for (int i = 0; i < n.size(); i++)
        if (n[i] == '7') {cout << "Yes"; return 0;}
    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<iostream>
using namespace std;
 
int main()
{
    if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}
 
cout << "No";
 return0;
}

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

int main(){
  if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}

cout << "No";
 return0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:8: error: 'N' was not declared in this scope
    2 |   if ((N/100)==7){
      |        ^
a.cc:3:3: error: 'cout' was not declared in this scope
    3 |   cout << "Yes";
      |   ^~~~
a.cc:6:1: error: 'N' was not declared in this scope
    6 | N-=(100*(N/100))
      | ^
a.cc:17:1: error: 'cout' was not declared in this scope
   17 | cout << "No";
      | ^~~~
a.cc:18:2: error: 'return0' was not declared in this scope
   18 |  return0;
      |  ^~~~~~~
Language: C++

if ((N/100)==7){
  cout << "Yes";
  return 0;
}
N-=(100*(N/100))
if (N%10==7){
  cout << "Yes";
  return 0;
}
N-=(10*(N/10))
if (N==7){
  cout << "Yes";
  return 0;
}

cout << "No";



Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if ((N/100)==7){
      | ^~
a.cc:5:1: error: 'N' does not name a type
    5 | N-=(100*(N/100))
      | ^
a.cc:10:1: error: 'N' does not name a type
   10 | N-=(10*(N/10))
      | ^
a.cc:16:1: error: 'cout' does not name a type
   16 | cout << "No";
      | ^~~~
Language: C

#include <bits/stdc++.h>

using namespace std;

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

    bool Ok = (s[0] == '7') || (s[1] == '7') || (s[2] == '7');

    puts(Ok ? "Yes" : "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 <iostream>
using namespace std;

int main() {
  int n;
  cin >> n;
  while (n) {
    if (n % 10 == 7) {
      cout << "Yes\n";
      return 0;
    }
    n /= 10;
  }
  cout << "No\n";
  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() {
  int i;
  int a,b,c;
  cin >> i;
  a = i / 100;
  b = (i % 100) / 10;
  c = i % 10
  if(a == 7 || b == 7 || c == 7) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'if'
   10 |   c = i % 10
      |             ^
      |             ;
   11 |   if(a == 7 || b == 7 || c == 7) {
      |   ~~         
a.cc:13:5: error: 'else' without a previous 'if'
   13 |   } else {
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int i;
  int a,b,c;
  cin >> i;
  a = i / 100;
  b = (i % 100) / 10;
  c = i % 10
  if(a == 7 || b == 7 || c == 7) {
    cout << 'Yes' << endl;
  } else {
    cout << 'No' << endl;
  }
}

Compiler output:
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:14:13: warning: multi-character character constant [-Wmultichar]
   14 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:10:13: error: expected ';' before 'if'
   10 |   c = i % 10
      |             ^
      |             ;
   11 |   if(a == 7 || b == 7 || c == 7) {
      |   ~~         
a.cc:13:5: error: 'else' without a previous 'if'
   13 |   } else {
      |     ^~~~
Language: C

n=input()
if n[0]=="7" or n[1]=="7" or n[2]=="7":
     print("Yes")
else:
     print("No")

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

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

int main() {
  int i;
  int a,b,c;
  cin >> i;
  a = i / 100;
  b = (i % 100) / 10;
  c = i % 10
  if(a == 7 || b == 7 || c == 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

n=str(input())
if n[0]=="7" or n[1]=="7" or n[2]=="7":
     print("Yes")
 else:
     print("No")

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

#include<bits/stdc++.h>
using namespace std;
typedef  long long int ll;
const ll mod = 1e9+7;
const ll mod1 = 998244353;
#define rep(i,a,b) for(ll i=a;i<b;i++)

//*********Debugger template starts***********************//
#define n_l '\n'
#define dbg(...) cout << "[" << #__VA_ARGS__ << "]: "; cout << to_string(__VA_ARGS__) << endl
template <typename T, size_t N> int SIZE(const T (&t)[N]){ return N; } template<typename T> int SIZE(const T &t){ return t.size(); } string to_string(const string s, int x1=0, int x2=1e9){ return '"' + ((x1 < s.size()) ? s.substr(x1, x2-x1+1) : "") + '"'; } string to_string(const char* s) { return to_string((string) s); } string to_string(const bool b) { return (b ? "true" : "false"); } string to_string(const char c){ return string({c}); } template<size_t N> string to_string(const bitset<N> &b, int x1=0, int x2=1e9){ string t = ""; for(int __iii__ = min(x1,SIZE(b)),  __jjj__ = min(x2, SIZE(b)-1); __iii__ <= __jjj__; ++__iii__){ t += b[__iii__] + '0'; } return '"' + t + '"'; } template <typename A, typename... C> string to_string(const A (&v), int x1=0, int x2=1e9, C... coords); int l_v_l_v_l = 0, t_a_b_s = 0; template <typename A, typename B> string to_string(const pair<A, B> &p) { l_v_l_v_l++; string res = "(" + to_string(p.first) + ", " + to_string(p.second) + ")"; l_v_l_v_l--; return res; } template <typename A, typename... C> string to_string(const A (&v), int x1, int x2, C... coords) { int rnk = rank<A>::value; string tab(t_a_b_s, ' '); string res = ""; bool first = true; if(l_v_l_v_l == 0) res += n_l; res += tab + "["; x1 = min(x1, SIZE(v)), x2 = min(x2, SIZE(v)); auto l = begin(v); advance(l, x1); auto r = l; advance(r, (x2-x1) + (x2 < SIZE(v))); for (auto e = l; e != r; e = next(e)) { if (!first) { res += ", "; } first = false; l_v_l_v_l++; if(e != l){ if(rnk > 1) { res += n_l; t_a_b_s = l_v_l_v_l; }; } else{ t_a_b_s = 0; } res += to_string(*e, coords...); l_v_l_v_l--; } res += "]"; if(l_v_l_v_l == 0) res += n_l; return res; } void dbgm(){;} template<typename Heads, typename... Tails> void dbgm(Heads H, Tails... T){ cout << to_string(H) << " | "; dbgm(T...); }
#define dbgm(...) cout << "[" << #__VA_ARGS__ << "]: "; dbgm(__VA_ARGS__); cout << endl
//*********Debugger template ends ***********************//

void swap(ll &a , ll &b){
    ll t = a;
    a = b;
    b = t;
}

ll min(ll a, ll b){
    if(a<b)return a;
    return b;
}

ll max(ll a, ll b){
    if(a>b)return a;
    return b;
}

 ll pow(ll a, ll b) {
    a %= mod;
    ll ans = 1;
    while (b > 0) {
        if (b & 1)
            ans = ans * a % mod;
        a = a * a % mod;
        b /= 2;
    }
    return ans;
}




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";

}


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;
  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:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<cstdio>
#include<string>

using namespace std;

int main(){
    int n;
    scanf("%d",&n);
    bool ans = false;
    while(n>0){
        if(n%10==7) ans = true;
        n/=10;
    }
    printf("%s\n",ans?"YES":"NO");
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at[0]=='7'||s.at[1]=='7'||s.at[2]=='7'){
      |        ^~
a.cc:6:22: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at[0]=='7'||s.at[1]=='7'||s.at[2]=='7'){
      |                      ^~
a.cc:6:36: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at[0]=='7'||s.at[1]=='7'||s.at[2]=='7'){
      |                                    ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at(0)=='7'||s.at(1)=='7'||s.at(2)=='7'){
      |        ^~
a.cc:6:22: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at(0)=='7'||s.at(1)=='7'||s.at(2)=='7'){
      |                      ^~
a.cc:6:36: error: request for member 'at' in 's', which is of non-class type 'char [3]'
    6 |   if(s.at(0)=='7'||s.at(1)=='7'||s.at(2)=='7'){
      |                                    ^~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
    char c;
    string ans="No";
    for(int i=0; i<3; i++){
        cin >> c;
        if(c=='7') ans="Yes";
    }
    cout << ans;
    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<stdio.h>
int main()
{int N,i,P;
 scanf("%d",&N);
 while(N!=0)
 {
   P=N%10;
   N=N/10;
   if(p==7)
   { printf("yes");
     P=0;
     break;
   }
 }
 if(P!=0)
 {
   printf("no");
 }
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'p' undeclared (first use in this function)
    9 |    if(p==7)
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main()
{int N,i,P;
 scanf("%d",&N);
 while(N!=0)
 {
   P=N%10;
   N=N/10;
   if(p==7)
   { printf("yes")
     break;
   }
 }
 else 
   printf("no");
 return 0;
}


Compiler output:
main.c: In function 'main':
main.c:9:7: error: 'p' undeclared (first use in this function)
    9 |    if(p==7)
      |       ^
main.c:9:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:19: error: expected ';' before 'break'
   10 |    { printf("yes")
      |                   ^
      |                   ;
   11 |      break;
      |      ~~~~~         
main.c:14:2: error: 'else' without a previous 'if'
   14 |  else
      |  ^~~~
Language: C

#include<stdio.h>
int main()
{int N,i;
 scanf("%d",&N);
 while(N!=0)
 {
   P=N%10;
   N=N/10;
   if(p==7)
   { printf("yes")
     break;
   }
 }
 else 
   printf("no");
 return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'P' undeclared (first use in this function)
    7 |    P=N%10;
      |    ^
main.c:7:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:7: error: 'p' undeclared (first use in this function)
    9 |    if(p==7)
      |       ^
main.c:10:19: error: expected ';' before 'break'
   10 |    { printf("yes")
      |                   ^
      |                   ;
   11 |      break;
      |      ~~~~~         
main.c:14:2: error: 'else' without a previous 'if'
   14 |  else
      |  ^~~~
Language: C

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

const int N = 2e5 + 10, mod = 1e9 + 7;



int main() {
    // ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
    int tc = 1; 
    //scanf("%d", &tc);
    while(tc--) {
        int n; cin >> n;
        bool ok = 0;
        while(n) {
            if((n % 10) == 7) ok = 1;
            n /= 10;
        }
        if(ok) puts("Yes");
        else 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 <bits/stdc++.h>

using namespace std;

int main()
{
    int n;
    cin >> n;
    if(n%10==7 || (n/10)%10==7 || (n/100)==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 <bits/stdc++.h>
#define lowbit(x) ((x)&(-x))
#define mem(i, a) memset(i, a, sizeof(i))
#define sqr(x) ((x)*(x))
#define ls(x) (x << 1)
#define rs(x) (x << 1 | 1)
typedef long long ll;
const double eps = 1e-8;
const double pi = acos(-1.0);
const int inf = 0x3f3f3f3f;
const int maxn = e + 7;
using namespace std;
int main(void){
#ifdef ljxtt
freopen("data.in", "r", stdin);
#endif
    int n; cin >> n;
    bool ans = 0;
    while(n){
        int t = n % 10;
        if(t == 7) ans = 1;
        n /= 10;
    }
    if(ans) puts("Yes");
    else puts("No");
    return 0;
}

Compiler output:
a.cc:11:18: error: 'e' was not declared in this scope
   11 | const int maxn = e + 7;
      |                  ^
Language: C++

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

int main (void)
{
	int n;
    cin >> n;

    for(int x == 100; x > 0; x /= 10)
    {
        if(n / x % 7 == 0)
            cout << "Yes";
        cout << "No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '==' token
    9 |     for(int x == 100; x > 0; x /= 10)
      |              ^~~
      |              ;
a.cc:9:15: error: expected primary-expression before '==' token
    9 |     for(int x == 100; x > 0; x /= 10)
      |               ^~
a.cc:9:28: error: expected ')' before ';' token
    9 |     for(int x == 100; x > 0; x /= 10)
      |        ~                   ^
      |                            )
a.cc:9:30: error: 'x' was not declared in this scope
    9 |     for(int x == 100; x > 0; x /= 10)
      |                              ^
Language: C++

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

int main (void)
{
	int n;
    cin >> n;

    for(int x == 1; x < 101; x *= 10)
    {
        if(n * x % 7 == 0)
            cout << "Yes";
        cout << "No";
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '==' token
    9 |     for(int x == 1; x < 101; x *= 10)
      |              ^~~
      |              ;
a.cc:9:15: error: expected primary-expression before '==' token
    9 |     for(int x == 1; x < 101; x *= 10)
      |               ^~
a.cc:9:28: error: expected ')' before ';' token
    9 |     for(int x == 1; x < 101; x *= 10)
      |        ~                   ^
      |                            )
a.cc:9:30: error: 'x' was not declared in this scope
    9 |     for(int x == 1; x < 101; x *= 10)
      |                              ^
Language: C++

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

void main( void )
{
    int n;
    cin >> n;

    if ( n / 100 == 7 || n % 10 == 7 || n % 100 / 10 == 7 )
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}

Compiler output:
a.cc:6:1: error: '::main' must return 'int'
    6 | void main( void )
      | ^~~~
Language: C

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

void main( void )
{
    int n;
    cin >> n;

    if ( n / 100 == 7 || n % 10 == 7 || n % 100 / 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

//O7Oo7oO7O

#include <bits/stdc++.h>

#define IOS ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

using namespace std;

using ll = long long int;

int main()
{
	IOS
	
    int n;
    cin>>n;
    int flag=0;
    while(n>0)
    {
    	if(n%10==7)
    		flag=1;
    	n/=10;

    }
    if(flag)
    	cout<<"YES\n";
    else
    	cout<<"NO\n";

    return 0;
}



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

#include<bits/stdc++.h>

int main (void)
{
	int n;
    cin >> n;

    for(int x = 0; x < 3; x++)
    {
        if(x == 7)
            cout << "Yes";
        cout << "No";
    } 

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |             cout << "Yes";
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << "No";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

using namespace std;

using ll = long long;

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

	int h = n / 100;
	int t = (n % 100) / 10;
	int s = (n % 100) % 10;


	if (7 == h || 7 == t || s == 7) {
		cout << "Yes" <<endl;
	}
	else {
		cout << "No" <<endl;
	}

	

	//system("pause");
	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>
typedef long long ll;
#define rep(i,n) for ( int i = 0; i < (int)n; i++ )

void main( void )
{
    int n;
    cin >> n;

    if ( n / 100 == 7 || n % 10 == 7 || n % 100 / 10 == 7 )
        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

#include<bits/c++.h>
typedef long long ll;
#define rep(i,n) for ( int i = 0; i < (int)n; i++ )

void main( void )
{
    int n;
    cin >> n;

    if ( n / 100 == 7 || n % 10 == 7 || n % 100 / 10 == 7 )
        cout << "Yes" << endl;
    else
        cout << "No" << endl;
}

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

#include<iostream>
using namespace std;

int main(){
	cin.tie(0),ios::sync_with_stdio(false);
	string n;
	cin>>n;
	for(auto&i:n)if(i=='7'){cout<<"Yes\n"s;return 0;}
	cout<<"No\n"s;
}

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

#include <algorithm>
#include <cassert>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <vector>

using namespace std;

typedef long long ll;

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;
}

int main(void) {
    string S;
    cin >> S;

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

    return 0;
}


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