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

use std::io::*;
use std::str::FromStr;
use  std::collections::BTreeSet;
use std::cmp::min;

fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("faild to read char") as char)
        .take_while(|c| !c.is_whitespace())
        .collect();
    token
        .parse()
        .ok()
        .expect("faild to parse token")
}

fn main(){
    if is_seven(read()) {
        println!("Yes");
    } else {
        println!("No");
    }
}

fn is_seven(a: u64) -> bool {
    if a % 10 == 7 {
        true
    } else if a == 0 {
        false
    } else {
        is_seven(a / 10)
    }
}


Compiler output:
main.c:1:1: error: unknown type name 'use'
    1 | use std::io::*;
      | ^~~
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '::' token
    1 | use std::io::*;
      |        ^~
main.c:2:1: error: unknown type name 'use'
    2 | use std::str::FromStr;
      | ^~~
main.c:2:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '::' token
    2 | use std::str::FromStr;
      |        ^~
main.c:3:1: error: unknown type name 'use'
    3 | use  std::collections::BTreeSet;
      | ^~~
main.c:3:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '::' token
    3 | use  std::collections::BTreeSet;
      |         ^~
main.c:4:1: error: unknown type name 'use'
    4 | use std::cmp::min;
      | ^~~
main.c:4:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '::' token
    4 | use std::cmp::min;
      |        ^~
main.c:6:1: error: unknown type name 'fn'
    6 | fn read<T: FromStr>() -> T {
      | ^~
main.c:6:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 | fn read<T: FromStr>() -> T {
      |        ^
main.c:20:1: error: unknown type name 'fn'
   20 | fn main(){
      | ^~
main.c: In function 'main':
main.c:21:8: error: expected '(' before 'is_seven'
   21 |     if is_seven(read()) {
      |        ^~~~~~~~
      |        (
main.c:21:8: error: implicit declaration of function 'is_seven' [-Wimplicit-function-declaration]
   21 |     if is_seven(read()) {
      |        ^~~~~~~~
main.c:21:17: error: implicit declaration of function 'read' [-Wimplicit-function-declaration]
   21 |     if is_seven(read()) {
      |                 ^~~~
main.c: At top level:
main.c:28:1: error: unknown type name 'fn'
   28 | fn is_seven(a: u64) -> bool {
      | ^~
main.c:28:14: error: expected ')' before ':' token
   28 | fn is_seven(a: u64) -> bool {
      |              ^
      |              )
Language: Java

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        String buf;
        int num;
        long ans;
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            buf = br.readLine();
            num = Integer.parseInt(buf);
            ans = 0;
            for(int i = 1; i <= num; i++){
                if (i % 3 == 0 || i % 5 == 0){
                    continue;
                }else{
                    ans += i;
                }
            }
            System.out.println(Integer.toString(ans));
        } catch(Exception e) {}
  }
}

Compiler output:
Main.java:22: error: incompatible types: possible lossy conversion from long to int
            System.out.println(Integer.toString(ans));
                                                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;
int INF = 1000000009;
int main()
{
  int n;
  cin >> n;
  while(n){
    if(n%10==7){
      cout << "Yes" << endl;
      return 0;
    }
    n /= 10;
  }
  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>
 
#define int         long long
#define uint        unsigned int
#define ld          long double
#define showoff     ios::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define pb          push_back
#define pii         pair<int,int>
#define FOR(i,a,b)  for(int i=a;i<b;++i)
#define RFOR(i,a,b) for(int i=a;i>b;--i)
#define f           first
#define se          second
#define maxn        1000005
#define all(v)      v.begin(),v.end()
#define sz(x)       (int)x.size()
#define mod         1000000007
#define pqueue      priority_queue<int>
#define pdqueue     priority_queue< int,vector<int> ,greater< int >>
 
using namespace std;
 
 
//mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
 
 
int power(int a,int n)
{
    a %= mod;
    if(n == 1)return a;
    if(n == 0)return 1;
    if(n%2)return (a*(power((a*a)%mod,n/2)%mod))%mod;
    return power((a*a)%mod,n/2)%mod;
}
const int inf = (int) 1e18;
 
int inverse(int x){
    return power(x,mod-2)%mod;//little fermat....
}   

signed main()
{
    showoff;
    int n;
    cin >> n;
    if(n%10 == 7){cout << "Yes";return 0;}
    n /= 10;
    if(n%10 == 7){cout << "Yes";return 0;}
    n /= 10;
    if(n%10 == 7){cout << "Yes";return 0;}
    cout << "No";
    return 0;
}
//*->for large size of matrix take int not long long if possible......
//*->always take maximum as inf for safer side ... 

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 = input()

b = 0

for i in range(len(N)):
  if N[i] == "7":
    b = 1
    
if b:
  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:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'b'
    3 | b = 0
      | ^
Language: C

import java.util.*; 

class Main{
public static void main(String[] args){
	Scanner sc=new Scanner(System.in);
       String s=sc.next();
String[] a=s.split("");


 	if(a[0].equals("7")||a[1].equals("7")||a[2].equals("7")){
    		System.out.println("Yes");
    	}else{
     		System.out.println("No");
   	 }

    	System.out.println();
    }
}

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 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
Language: Java

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        String buf;
        try {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        buf = br.readLine();
        

        for(int i = 0; i < buf.length(); i++){
            if ( buf.charAt(i)  == "7"){
                System.out.println("Yes");
                break;
            }else if( i == 3 ){
                System.out.println("No");
                break;
            }
        }
    } catch(Exception e) {}
  }
}

Compiler output:
Main.java:14: error: bad operand types for binary operator '=='
            if ( buf.charAt(i)  == "7"){
                                ^
  first type:  char
  second type: String
1 error
Language: C

#include <iostream>
#include <iomanip>
#include <cassert>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <cstdlib>
#include <complex>
#include <map>
#include<unordered_map>
#include <set>
#include <queue>
#include <stack>
#include <vector>
#include<bitset>
#include<deque>
#include<string>
#include<list>
#include<iterator>
#include<sstream>
#include <algorithm>
#include <numeric>
#include <math.h>

#define user spaesk
#define lli long long int
#define ld long double
#define ff first
#define ss second
#define lower(a) transform(a.begin(),a.end(),a.begin(),::tolower);

using namespace std;

const int N = 3e5 + 500;
const long long mod = 1e9 + 7;
const long long cmod = 998244353 ;
const long long inf = 1LL << 61;
const int M = 1e6 + 500;
const lli ths = 1LL << 40;
const int NN = 5e3 + 6;

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

/*
*/

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

    int t = 1;
//    cin>>t;
    while(t --)
    {
        solve();
    }
    return 0;
}


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

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        String buf;
        try {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        buf = br.readLine();
        
        char[] work = new char[buf.length()];

        for(int i = 0; i < buf.length(); i++){
            if ( work[i]  == "7"){
                System.out.println("Yes");
                break;
            }else if( i == 3 ){
                System.out.println("No");
                break;
            }
        }
    } catch(Exception e) {}
  }
}

Compiler output:
Main.java:15: error: bad operand types for binary operator '=='
            if ( work[i]  == "7"){
                          ^
  first type:  char
  second type: String
1 error
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{
	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: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        int num;
        String buf;
        try {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        buf = br.readLine();
        
        char[] work = new char[buf.length()];

        for(int i = 0; i < buf.length(); i++){
            num = Integer.parseInt(work[i] );
            if ( num % 7 == 0){
                System.out.println("Yes");
                break;
            }else if( i == 3 ){
                System.out.println("No");
                break;
            }
        }
    } catch(Exception e) {}
  }
}

Compiler output:
Main.java:16: error: incompatible types: char cannot be converted to String
            num = Integer.parseInt(work[i] );
                                       ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

import java.io.*;

class Main
{
    public static void main(String args[])
    {
        int num;
        String buf;
        try {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        buf = br.readLine();
        
        char[] work = new char[buf.length()];

        for(int i = 0; i < text.length(); i++){
            num = Integer.parseInt(work[i] );
            if ( num % 7 == 0){
                System.out.println("Yes");
                break;
            }else if( i == 3 ){
                System.out.println("No");
                break;
            }
        }
    } catch(Exception e) {}
  }
}

Compiler output:
Main.java:15: error: cannot find symbol
        for(int i = 0; i < text.length(); i++){
                           ^
  symbol:   variable text
  location: class Main
Main.java:16: error: incompatible types: char cannot be converted to String
            num = Integer.parseInt(work[i] );
                                       ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 errors
Language: C

#include <bits/stdc++.h>
//For ordered_set
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define MOD 1000000007
#define MOD2 998244353
#define test int t; cin>>t; while(t--)
#define init(arr,val) memset(arr,val,sizeof(arr))
#define loop(i,a,b) for(int i=a;i<b;i++)
#define loopr(i,a,b) for(int i=a;i>=b;i--)
#define loops(i,a,b,step) for(int i=a;i<b;i+=step)
#define looprs(i,a,b,step) for(int i=a;i>=b;i-=step)
#define ull unsigned long long int
#define ll long long int
#define P pair
#define PLL pair<long long, long long>
#define PII pair<int, int>
#define PUU pair<unsigned long long int, unsigned long long int>
#define L list
#define V vector
#define D deque
#define ST set
#define MS multiset
#define M map
#define UM unordered_map
#define mp make_pair
#define pb push_back
#define pf push_front
#define MM multimap
#define F first
#define S second
#define IT iterator
#define RIT reverse_iterator
#define FAST ios_base::sync_with_stdio(false);cin.tie();cout.tie();
#define FILE_READ_IN freopen("input.txt","r",stdin);
#define FILE_READ_OUT freopen("output.txt","w",stdout);
#define all(a) a.begin(),a.end()
#define ld long double
using namespace std;
// For ordered_set
using namespace __gnu_pbds;

template <typename T>
using ord_set = tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;
const ll maxn = 1e5;
const ll inf = 1e9;
const double pi = acos(-1);

template<class T> ostream& operator<<(ostream &os, vector<T> V) {
    os << "[ ";
    for(auto v : V) os << v << " ";
    return os << "]";
}
template<class T> ostream& operator<<(ostream &os, set<T> S){
    os << "{ ";
    for(auto s:S) os<<s<<" ";
    return os<<"}";
}
template<class L, class R> ostream& operator<<(ostream &os, pair<L,R> P) {
    return os << "(" << P.first << "," << P.second << ")";
}
template<class L, class R> ostream& operator<<(ostream &os, map<L,R> M) {
    os << "{ ";
    for(auto m:M) os<<"("<<m.F<<":"<<m.S<<") ";
    return os<<"}";
}

int main(){
    FAST;
    string s;
    cin >> s;
    for(auto c: s) {
        if(c == '7') {
            cout << "Yes\n";
            return 0;
        }
    }
    cout << "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<bits/stdc++.h>
using namespace std;


int main()
{


     ios_base::sync_with_stdio(false);
     cin.tie(NULL);
   
    int t=1;
    while(t--)
    {
      
      int count;
      cin>>count;
      int flag=0;
      while(count>0)
      {
        int temp=count%10;
        if(temp==7)
          flag=1;
        count/=10;
      }
      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>
#include<algorithm>

using namespace std;

int gcd(int p, int q)
{
	if(p % q == 0)return q;
 	return gcd(q, p % q);
 }

int main()
{	int sum=0;
	int t;
  	cin >> t;
  for(int a=1;a<=k;a++)
  {
    for(int b=1;b<=k;b++)
    {	for(int c=1;c<=k;c++)
    	{	sum+=gcd(a,b,c);
        }
    }
   }
cout << sum << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:18: error: 'k' was not declared in this scope
   16 |   for(int a=1;a<=k;a++)
      |                  ^
a.cc:20:25: error: too many arguments to function 'int gcd(int, int)'
   20 |         {       sum+=gcd(a,b,c);
      |                      ~~~^~~~~~~
a.cc:6:5: note: declared here
    6 | int gcd(int p, int q)
      |     ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(){
int n;
  bool ans = false;
  cin>>n;
  string word  = tostring(n);
  for(auto x : word){
  if(x =='7'){
  ans = true;
  }
    
  }
  ans==true? cout<<"Yes":cout<<"No";
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'tostring' was not declared in this scope
    9 |   string word  = tostring(n);
      |                  ^~~~~~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
#define mp make_pair
#define mod 1000000007
#define INF 1e9+5
#define IOS ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define forn(i,a,b) for(int i=a;i<(int)b;i++)
#define ff first
#define ss second
#define int long long
ll min(ll a, ll b) {return a>b?b:a;}
ll max(ll a, ll b) {return a>b?a:b;}
int32_t main()
{
    IOS;
    int n;
    cin>>n;
    int flag=0;
    while(n)
    {
        if(n%10==7)
            flag=1;
        n/=10;
    }
    if(flag==1)
        cout<<"Yes\n";
    else
        cout<<"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>
using namespace std;
int main()
{
        string a;
        cin >>  a;
        if(a[0] == '7'|| a[1] == '7' || a[2] == '7' )
                cout << "Yes" << endl;
        else
                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<bits/stdc++.h>
using namespace std;
signed mian(){
  string n;
  cin>>n;
  for(int i=0;i<3;i++){
    if(n[i]=='7'){
      cout<<"Yes\n";
      return 0;
    }
  }
  cout<<"No\n";
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C

#include <bits/stdc++.h>
#define ll long long

using namespace std;

int main(void)
{
  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: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(){
//srandom((unsigned long)time(NULL));

string n;
cin>>n;
bool seven=false;
for(int i=0;i<3;i++){
    if(n[i]-'0'==7)seven=true;
}
if(seven)cout<<"Yes"<<endl;
else cout<<"No"<<endl;

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: Java

import java.util.*; 
	public class cp {
	public static void main( String[] args) {			
					
					Scanner in = new Scanner(System.in);
					String a = in.next();
					int l = a.length();
					int flag =0;
					for(int i = 0;i<l;i++) {
						if(a.charAt(i)=='7') {
							flag = 1;
							break;
						}
					}
					if(flag ==1)
					System.out.println("YES");
					
					else {
						System.out.println("NO");
					}
					
			}}

Compiler output:
Main.java:2: error: class cp is public, should be declared in a file named cp.java
	public class cp {
	       ^
1 error
Language: Java


	
import java.util.Collections;
import java.util.Scanner;
import java.util.*; 
	public class cp {
	public static void main( String[] args) {			
					
					Scanner in = new Scanner(System.in);
					String a = in.next();
					int l = a.length();
					int flag =0;
					for(int i = 0;i<l;i++) {
						if(a.charAt(i)=='7') {
							flag = 1;
							break;
						}
					}
					if(flag ==1)
					System.out.println("YES");
					
					else {
						System.out.println("NO");
					}
					
			}}

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

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

using namespace std;
using ll = long long;

int main(){
    char a, b, c; cin >> a >> b >> c;
        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>
#define rep(i, n) for(int i = 0; i < n; i++)

using namespace std;
using ll = long long;

int main(){
    int n; cin >> n;
    string s = to_string(n);
        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: 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;
using ll = long long;

int main(){
    int n; cin >> n;
    string s = to_string(n);
        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: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

s = input()
if s.count('7') != 0:
  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:2:1: error: expected ',' or ';' before 'if'
    2 | if s.count('7') != 0:
      | ^~
main.c:3:9: warning: multi-character character constant [-Wmultichar]
    3 |   print('Yes')
      |         ^~~~~
main.c:5:9: warning: multi-character character constant [-Wmultichar]
    5 |   print('No')
      |         ^~~~
Language: C

#include <bits/stdc++.h>
#define maxn 100005
#define MOD 1000000007
#define INF 1000000000000000000
#define lim 20

using namespace std;

#define ll long long
#define pii pair<ll, ll>
#define piii pair<pii, ll>
#define ft first
#define sd second

void fast(){
    ios_base::sync_with_stdio(false);
    cin.tie(0);
}

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

int main()
{
    fast();
    ll 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 <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char>cvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
int main()	{
  int n;
  cin>>n;
  while(n){
    if(n%10==7){
      cout<<"Yes"<<endl;
      return 0;
    }
    n/=10;
  }
  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()
{
	string n; cin >> n;
	puts(n.find("7") != string::npos ? "Yes" : "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 rep(i,n) for(int i=0; i < (n); i++)
using namespace std;
using ll = long long;
int main(){
  int n;
  cin >> n;
  
  rep(i,3){
    if(n%10==7) {
      cout << "Yes";
      return 0;
    }
    else n/=10;
  }
  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>

using namespace std;

int main()
{
    
    string s; cin>>s;
    
    for (int i=0 i <s.length() ; i++)
        
    {
        if (s[i] == '7') {cout << "YES"; return 0;}
    }
    
    cout << "NO";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'i'
   10 |     for (int i=0 i <s.length() ; i++)
      |                 ^~
      |                 ;
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll  = long long;
using vl  = vector<ll>;
using pll = pair<ll,ll>;
using vll = vector<pll>;

#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rng(i,a,b) for(int i = (a); i < (b); ++i)
#define all(a) (a).begin(), (a).end()

int main() {
    string s; cin >> s;
    if (s[0]=='7' or s[1]=='7' or s[2]=='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 "stdafx.h"
#include <iostream>

void solve_A() {
	int N; std::cin >> N;
	int mod_1 = N % 10;
	N /= 10;
	int mod_2 = N % 10;
	N /= 10;
	int mod_3 = N % 10;
	N /= 10;
	if (mod_1 == 7 || mod_2 == 7 || mod_3 == 7) {
		std::cout << "Yes";
	}
	else {
		std::cout << "No";
	}

}

int main()
{

	solve_A();
    return 0;
}

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

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

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string str;
  cin>>str;
  if(str[0]=='7' || str[1]=='7' ||str[2]=='7')
    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<iostream>
#include<string>
using namespace std;

int main()
{
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  
  string str;
  cin>>str;
  if(str[0]=='7' || str[1]=='7' || str[2] =='7')
    {
      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;

#define LL long long
typedef pair<int, int> pii;

template< typename T > inline void read(T &x)
{
    static char _c;
    static bool _f;

    x = 0;
    _f = 0;
    _c = getchar();

    while(_c < '0' || '9' < _c) {if(_c == '-') _f = true; _c = getchar();}
    while('0' <= _c && _c <= '9') {x = (x << 1) + (x << 3) + (_c & 15); _c = getchar();}
    if(_f) x = -x;
}

template < typename T > inline void Min(T &x, T y) {if(y < x) x = y;}
template < typename T > inline void Max(T &x, T y) {if(x < y) x = y;}


#define lowbit(x) ((x) & -(x))
#define lson l,mid,id<<1
#define rson mid+1,r,id<<1|1
#define ls id<<1
#define rs id<<1|1
#define MID(l,r) ((l)+(((r)-(l))>>1))
#define fi first
#define se second
#define mk make_pair
#define pb push_back

const int INF = 0x3f3f3f3f;
const double pi = (double) acos(-1.0);
const double eps = (double) 1e-8;
//const int MOD = (int) 1e9 + 7;
//const int MOD = (int) 998244353;
int MOD = 998244353;
const int e5 = (int) 1e5 + 5;
const int maxn = (int) 1e5 + 20;
const int maxm = (int) 1e6 + 20;

inline int sig(double x) {return x < -eps ? -1 : eps < x;}
LL fp(LL a, LL n, LL mod = MOD)
{
    if(n < 0) a = fp(a, mod - 2, mod), n = -n;
    LL res = 1; for(; n; n >>= 1, a = a * a % mod) if(n & 1) res = res * a % mod; return res;
}

struct Mint
{
    LL x;
    Mint() {x = 0;}
    Mint(int _x): x(_x) {}
    Mint(LL _x): x(_x) {}
    Mint operator - () const{
        return Mint(MOD - x);
    }
    Mint operator + (const Mint &rhs) const{
        LL res = x + rhs.x; if(res >= MOD) res -= MOD; return Mint(res);
    }
    Mint operator - (const Mint &rhs) const{
        LL res = x - rhs.x; if(res < 0) res += MOD; return Mint(res);
    }
    Mint operator * (const Mint &rhs) const{
        return Mint(x * rhs.x % MOD);
    }
    Mint operator / (const Mint &rhs) const{
        return Mint(x * fp(rhs.x, -1) % MOD);
    }
    Mint& operator += (const Mint &rhs) {
        x += rhs.x; if(x >= MOD) x -= MOD; return *this;
    }
    Mint& operator *= (const Mint &rhs) {
        x = (x * rhs.x) % MOD; return *this;
    }
    bool operator == (const Mint &rhs) const{
        return x == rhs.x;
    }
    bool operator != (const Mint &rhs) const{
        return x != rhs.x;
    }
    friend ostream& operator << (ostream &out, const Mint &rhs){
        return out << rhs.x;
    }
    friend istream& operator >> (istream &in, Mint &rhs){
        return in >> rhs.x;
    }
};

void work()
{
    int x; read(x);

    while(x)
    {
        if(x % 10 == 7)
        {
            cout <<"Yes";
            return ;
        }
        x /= 10;
    }
    cout <<"No";
}

int main(int argc, char **argv)
{
#ifdef yukihana0416
freopen("in.txt", "r", stdin);
//freopen("out.txt", "w", stdout);
#endif // yukihana0416
//    get_prime();
//    pre();
    int tc = 1;
    read(tc);
    for(int ca = 1; ca <= tc; ca++)
    {
//        printf("Case #%d: ", ca);
        work();
    }
    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 s;
    cin >> s;
    string ans="No";
    for(int i=0;i<3;i++){
        if(s[i]=='7') ans="Yes";
    }
    cout << ans << 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;
	bool flag = false;

	cin >> N;

	int tmp = N;
	for (int i = 0; i < N; i++) {
		if (tmp % 10 == 7) {
			flag = true;
		}
		tmp /= 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 <iostream>

using namespace std;

int main() {
	int N;
	bool flag = false;

	cin >> N;

	int tmp = N;
	for (int i = 0; i < N; i++) {
		if (tmp % 10 == 7) {
			flag = true;
		}
		tmp /= 10;
	}

	if (flag) {
		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

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':
      | ^~
main.c:3:9: warning: multi-character character constant [-Wmultichar]
    3 |   print('Yes')
      |         ^~~~~
main.c:5:9: warning: multi-character character constant [-Wmultichar]
    5 |   print('No')
      |         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:2:9: error: 'string' was not declared in this scope
    2 |         string n;
      |         ^~~~~~
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin>>n;
      |         ^~~
a.cc:3:14: error: 'n' was not declared in this scope
    3 |         cin>>n;
      |              ^
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout<<"Yes"<<endl;
      |   ^~~~
a.cc:6:16: error: 'endl' was not declared in this scope
    6 |   cout<<"Yes"<<endl;
      |                ^~~~
a.cc:9:3: error: 'cout' was not declared in this scope
    9 |   cout<<"No"<<endl;
      |   ^~~~
a.cc:9:15: error: 'endl' was not declared in this scope
    9 |   cout<<"No"<<endl;
      |               ^~~~
Language: C

#include <iostream>
#include <algorithm>
#include <string>
#include <queue>
#include <cmath>


using namespace std;
using ll = long long;



int main()
{
	string N = 0;
	cin >> N;
	for (int i = 0; i < 3; i++) {
		if (N[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++

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
#define x first
#define y second
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// *** Using PBDS ***
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// *** Using PBDS ***
int modexp(int x1, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x1*x1)%mod, n/2)%mod * x1%mod)%mod;
	}
	else{
		return (modexp((x1*x1)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}
bool compare(pii a,pii b)
{
    return a.first<b.first;
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

signed main()
{
    
    string s;
    cin>>s;
    if(s[0]=='7' || s[1]=='7' || s[2]=='7')
    cout<<"Yes";
    else
    cout<<"No";
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}



Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:8:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C

/*
	watch me go
*/
#pragma GCC optimize("O3")
//#pragma comment(linker, "/stack:200000000")
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include<bits/stdc++.h>
using namespace std;
#define int long long
#define d long double
#define pii pair<int,int>
#define pb push_back
#define inf (int)1e18
#define init(x,a) memset(x,a,sizeof(x))
#define all(c) c.begin(),c.end()
int const mod=998244353;
int const mod1=1000000007;
#define x first
#define y second
int toint(const string &s) {stringstream ss; ss << s; int x; ss >> x; return x;}
string tostring ( int number ) {stringstream ss; ss << number; return ss.str();}
#define out(x) cout<<#x<<" = "<<" "<<x<<"\n";
#define trace1(x)                cerr<<#x<<": "<<x<<endl
#define trace2(x, y)             cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define trace3(x, y, z)          cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
 #define haha ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
// *** Using PBDS ***
// typedef tree<long long, null_type, less<long long>, rb_tree_tag, 
//              tree_order_statistics_node_update> 
//                 os; 
// *** Using PBDS ***
int modexp(int x1, int n){
	if(n==0){
		return 1;
	}
	else if(n&1){
		return (modexp((x1*x1)%mod, n/2)%mod * x1%mod)%mod;
	}
	else{
		return (modexp((x1*x1)%mod, n/2)%mod);
	}
}
 
int modinv(int n)
{
	return modexp(n,mod-2);
}
bool compare(pii a,pii b)
{
    return a.first<b.first;
}

struct custom_hash {
    static uint64_t splitmix64(uint64_t x) {
        // http://xorshift.di.unimi.it/splitmix64.c
        x += 0x9e3779b97f4a7c15;
        x = (x ^ (x >> 30)) * 0xbf58476d1ce4e5b9;
        x = (x ^ (x >> 27)) * 0x94d049bb133111eb;
        return x ^ (x >> 31);
    }

    size_t operator()(uint64_t x) const {
        static const uint64_t FIXED_RANDOM = chrono::steady_clock::now().time_since_epoch().count();
        return splitmix64(x + FIXED_RANDOM);
    }
};

signed main()
{
    
    string s;
    cin>>s;
    if(s[0]=='7' || s[1]=='7' || s[2]=='7')
    cout<<"Yes";
    else
    cout<<"No";
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
}



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

#include<iostream>
#include<string>
using namespace std;
int main()
{
  string str;
  cin>>str;
  int c=0;
  for(int i=0;i<str.size();i++)
    if(str[i]=='7')c++;
  if(c)
    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;
#define rep(i,n) for(int i = 0; i < (int)n; i++)
using ll = long long;

int main(){
  int n;
  cin >> n;
  bool f = false;
  rep(i,5) {
    if(n % 10 == 7) f = true;
    n /= 10;
  }
  cout << (f? "Yes" : "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 all(c) c.begin(),c.end()
#define init(c) memset(c,0,sizeof c)
typedef long long ll;
const int N=20000005;
int n,k,x,t,a,b;
string s;
vector<int>v;
int main(){

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

using System;
using System.Collections.Generic;

namespace tst
{
    class Program
    {
        public static void Main()
        {
            string In = Console.ReadLine();
            if(In[0]=='7' || In[1] == '7' || In[2] == '7')
            {
                Console.WriteLine("Yes");
            }
            else
            {
                Console.WriteLine("No");
            }
            
        }
    }
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:2:1: error: unknown type name 'using'
    2 | using System.Collections.Generic;
      | ^~~~~
main.c:2:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | using System.Collections.Generic;
      |             ^
main.c:4:1: error: unknown type name 'namespace'
    4 | namespace tst
      | ^~~~~~~~~
main.c:5:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    5 | {
      | ^
Language: C

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

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

    string strN = to_string(N);
    for (int i = 0; i < 3; i++) {
        if (strN[i] == '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<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int N = 1e5 + 7;

int main()
{
    int n;
    cin >> n;
    int flag = 0;
    while(n)
    {
        if(n % 10 == 7)
            flag = 1;
        n = n / 10;
    }
    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(void){
 int number;
 cin >> number;
  while(number!=0){
    if(number%10==7){
      cout << "Yes";
      return 0;
    }
    number /= 10;
  }
  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(void){
 int number;
 cin >> number;
  while(number!=0){
    if(number%10==7){
      cout << "Yes";
      return 0;
    }
    number /= 10;
  }
  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>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
 
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long int
#define mod 1000000007
#define inf 1e18+42
#define endl "\n"

#define out1(a) cout<<#a<<" "<<a<<endl
#define out2(a,b) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<endl
#define out3(a,b,c) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<" "<<#c<<" "<<c<<endl

#define rep(i,a,b) for(int i=a;i<b;i++)
#define ford(i,a,b) for(int i=a;i>=b;i--)
#define fori(it,A) for(auto it=A.begin();it!=A.end();it++)

#define ft first
#define sd second
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define zero(x) memset(x,0,sizeof(x));
 
using namespace std;

void solve()
{
    int n;
    cin>>n;
    int found = 0;
    while( n > 0 )
    {
        d = n % 10;
        if ( d == 7 )
        {
            found = 1;
            break;
        }
        n /= 10;
    }

    if ( found == 1 )
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }
}

signed main()
{
    fast;
    int t = 1;
    // cin>>t;

    while(t--)
    {
        solve();
    }
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:37:9: error: 'd' was not declared in this scope
   37 |         d = n % 10;
      |         ^
Language: C

#include<bits/stdc++.h>
#include<vector>
#include<string>
#include<algorithm>
#include<cmath>
 
#define fast ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define int long long int
#define mod 1000000007
#define inf 1e18+42
#define endl "\n"

#define out1(a) cout<<#a<<" "<<a<<endl
#define out2(a,b) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<endl
#define out3(a,b,c) cout<<#a<<" "<<a<<" "<<#b<<" "<<b<<" "<<#c<<" "<<c<<endl

#define rep(i,a,b) for(int i=a;i<b;i++)
#define ford(i,a,b) for(int i=a;i>=b;i--)
#define fori(it,A) for(auto it=A.begin();it!=A.end();it++)

#define ft first
#define sd second
#define pb push_back
#define mp make_pair
#define all(x) (x).begin(),(x).end()
#define zero(x) memset(x,0,sizeof(x));
 
using namespace std;

void solve()
{
    int n;
    cin>>n;
    int found = 0;
    while( n > 0 )
    {
        d = n % 10;
        if ( d == 7 )
        {
            found = 1;
            break;
        }
        n /= 10;
    }

    if ( found == 1 )
    {
        cout<<"Yes"<<endl;
    }
    else
    {
        cout<<"No"<<endl;
    }
}

signed main()
{
    fast;
    int t = 1;
    // cin>>t;

    while(t--)
    {
        solve();
    }
    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

a = input()

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

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

#include <bits/stdc++.h>
using namespace std;
#define int long long int
#define pb push_back
#define N 200100
#define MOD 1000000007
#define fn(i,n) for(int i=0;i<n;i+=1)
#define rep(i,l,r) for(int i=l;i<=r;i+=1)
#define INF 100000000000000
#define pii pair<int,int>
#define speed ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);


signed main()
{
    
    speed
    int n;
    cin>>n;
    int f=0;
    while(n){
        int xd=n%10;
        if(xd==7){
            cout<<"Yes"<<endl;
            f=1;
            break;
        }
        n/=10;
    }
    if(!f)
        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

a = input()
b = list(a)
for i in b:
    if i == "7":
        print("Yes")
    exit()
print("No")        

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | a = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'b'
    2 | b = list(a)
      | ^