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

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

/* typedef */
/* long系 */
typedef long long ll;	// long long
typedef long double ld;	// long double
/* vector系 */
typedef vector<int> vint;	// intのvector
typedef vector<double> vdouble;	// doubleのvector
typedef vector<ll> vll;	// llのvector
typedef vector<ld> vld;	// ldのvector
typedef vector<pair<int, int>> vi_i;	// i_iのvector
typedef vector<pair<double, double>> vd_d;	// d_dのvector
typedef vector<pair<ll, ll>> vl_l;	// l_lのvector
typedef vector<pair<ld, ld>> vld_ld;	// ld_ldのvector
typedef vector<string> vstring;	// stringのvector
/* pair系 */
typedef pair<int, int> i_i;	// int同士のpair
typedef pair<double, double> d_d;	// double同士のpair
typedef pair<ll, ll> l_l;	// ll同士のpair
typedef pair<ld, ld> ld_ld;	// ld同士のpair

/* define */
#define pb push_back	// push_back
#define all(v) v.begin(),v.end()	// コンテナ全体
#define PI (acos(-1))  // 円周率pi

/* 変数入出力 read, write */
template <typename T>	// 1変数
void read(T& x) {
	cin >> x;
}
template <typename T, typename T0>	// 2変数
void read(T& x, T0& y) {
	cin >> x >> y;
}
template <typename T, typename T0, typename T1>	// 3変数
void read(T& x, T0& y, T1& z) {
	cin >> x >> y >> z;
}
template <typename T, typename T0, typename T1, typename T2>	// 4変数
void read(T& x, T0& y, T1& z, T2& w) {
	cin >> x >> y >> z >> w;
}
template <typename T>	// 1変数
void write(T& x) {
	cout << x << endl;
}
template <typename T, typename T0>	// 2変数
void write(T& x, T0& y) {
	cout << x << " " << y << endl;
}
template <typename T, typename T0, typename T1>	// 3変数
void write(T& x, T0& y, T1& z) {
	cout << x << " " << y << " " << z << endl;
}
template <typename T, typename T0, typename T1, typename T2>	// 4変数
void write(T& x, T0& y, T1& z, T2& w) {
	cout << x << " " << y << " " << z << " " << w << endl;
}
// vectorの出力
template <typename T>
void printvec(const vector<T> &data) {
    		    for (const auto elm : data) {
      		    	cout << elm << " ";
    		    }
    		    cout << endl;
}


int main(int argc, char const *argv[]) {
    int n; cin >> n;
    string s = to_string(n);
    for (int i = 0; i < s.size(); i++) {
        if (s[i] == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    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: C

#include <bits/stdc++.h>
 
using namespace std;
 
int main() {
	int n;
	bool ret = false;
	cin >> n;
	while (1) {
		if ((n) % 10 == 7) {
			ret = true;
			break;
		}
		if (n / 10 < 1) n /= 10;
		else {
			ret = false;
			break;
		}
	}
	if (ret) printf("Yes\n");
	else printf("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>
#define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
#define ALL(x) (x).begin(),(x).end()
#define rALL(x) (x).rbegin(),(x).rend()
typedef long double ld;
using ll=long long;
using namespace std;
const auto mod=1e9+7;


int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  cout << fixed << setprecision(20);
  
  int n; cin >> n;
  string ans="No";
  while(n>0){
  	int k = n%10;
  	if(k==7) ans="Yes";
  	n/=10;
  }
  cout << ans << endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: 'setprecision' was not declared in this scope
   14 |   cout << fixed << setprecision(20);
      |                    ^~~~~~~~~~~~
a.cc:2:1: note: 'std::setprecision' is defined in header '<iomanip>'; this is probably fixable by adding '#include <iomanip>'
    1 | #include <iostream>
  +++ |+#include <iomanip>
    2 | #define rep(i,a,b) for(int i=a; i< (int)(b); ++i)
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  x=n%10;
  y=n%100;
  z=n%1000;
  if(x==7) {
    cout << "Yes" << endl;}
  else if(y>=70 && y<80) {
    cout << "Yes" << endl;}
  else if(z>=700 && z<800) {
    cout << "Yes" << endl;}
  else {
    cout << "No" << endl;}
  return 0;
  }
    
    
  


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'x' was not declared in this scope
    6 |   x=n%10;
      |   ^
a.cc:7:3: error: 'y' was not declared in this scope
    7 |   y=n%100;
      |   ^
a.cc:8:3: error: 'z' was not declared in this scope
    8 |   z=n%1000;
      |   ^
Language: C

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

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

int a=N/100, b=N/10%10, c=N%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


a = input() 

print('7' in a ,sep="\n")


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


// Problem : A - Lucky 7
// Contest : AtCoder Beginner Contest 162
// URL : https://atcoder.jp/contests/abc162/tasks/abc162_a
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cp-editor)

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

#define ff first
#define fs second
#define lb lower_bound
#define ub upper_bound

#define int long long
#define vi vector<int>
#define vvi vector< vector <int> >
#define vpii vector< pair<int, int> >
#define vb vector<bool>
#define si set<int>
#define mii map<int, int>
#define mci map<char, int>
#define md 1000000007
#define pb push_back
#define eb emplace_back

#define qw1(x) cerr<<#x<<": "<<x<<" "<<endl
#define qw2(x, y) cerr<<#x<<": "<<x<<" | "<<#y<<": "<<y<<endl
#define qw3(x, y, z) cerr<<#x<<":" <<x<<" | "<<#y<<": "<<y<<" | "<<#z<<": "<<z<<endl
#define qw4(a, b, c, d) cerr<<#a<<": "<<a<<" | "<<#b<<": "<<b<<" | "<<#c<<": "<<c<<" | "<<#d<<": "<<d<<endl


#define f(i,a,b) for(int i=(int)a;i<=(int)b;i++)
#define rl(i,a,b) for(int i=(int)a;i>=(int)b;i--)
#define all(x) x.begin(),x.end()
#define endl '\n'

void printv(vector<int>  v){
	for(int i=0;i<v.size();i++) cout<<v[i]<<' '; 
	cout<<endl;
	}

int be(int m , int n, int mod) {
	int res=1;
	while(n){
	     if(n%2!=0) { res*=m; res%=mod; }
	     m*=m;   m%=mod;   n/=2;
	}
	return res;
     }

void sieve(int n, vb &prime){
    prime[0]=false;     prime[1]=false;
    for(int i=2;i*i<=n;i++){
         if(prime[i]==true){
              for(int j=i*i;j<=n;j+=i)    prime[j]=false;
             	  }
    	 }
	}


int32_t main ()
{
  //ios_base::sync_with_stdio (false); cin.tie (NULL);  cout.tie (NULL);
int t=1; 
//cin>>t; 
  while(t--){
int n; cin>>n;
while(n){
	int z=n%10;
	if(z==7) { cout<<"Yes\n"; return 0;}
	n/=10;
}
cout<<"No\n";
   
  }
 
}








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

#include <bits/stdc++.h>
#define ll long long
#define all(x) x.begin(),x.end()
#define TESTCASES 0

using namespace std;

string s;

int Go(){

  cin >> s;

  bool is = 0;
  for(auto c : s) is |= (c == '7');

  puts(is ? "Yes" : "No");

  return 0;
}


int main(){

  int t;
  if(TESTCASES) scanf("%d",&t); 
  else          t = 1;
  
  while(t--) Go();
} 

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(void){
    // Your code here!
    string s;
    cin >> s;
    for(int i= 0; i< 3; i++){
        if(s[i] == '7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}


Compiler output:
main.c:1: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;
  if(N.at(0)!=7||N.at(1)!=7||N.at(2)!=7){
  cout<<"No"<<endl;
  
  }
else{
cout<<"Yes"<<endl;

}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |   if(N.at(0)!=7||N.at(1)!=7||N.at(2)!=7){
      |        ^~
a.cc:6:20: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |   if(N.at(0)!=7||N.at(1)!=7||N.at(2)!=7){
      |                    ^~
a.cc:6:32: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |   if(N.at(0)!=7||N.at(1)!=7||N.at(2)!=7){
      |                                ^~
Language: C

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>

using namespace std;
using ll =long long;
using vi = vector<int>; 
using vvi = vector<vi>; 
using vl = vector<ll>; 
using vvl = vector<vl>; 
using vs = vector<string>;
using vvs = vector<vs>; 
using vc = vector<char>;
using vvc = vector<vc>; 
using vb = vector<bool>;
using vvb = vector<vb>; 

#define rep(i,n) ;for( int i =0; i < n ; i ++)
#define all(a) a.begin(),a.end()
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n",a)
#define mem(a) memset(a,0,sizeof(a))
#define f(i,a,b) for(int i=a;i<b;i++)
#define pri(a)  printf("%.14lf\n",a);
#define MOD 1000000007
bool is_int_lround(double x){
  return std::lround(x)==x;
}
ll keta(ll x){
  ll n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}

ll conbi(int n,int m){
  
  cin>>n>>m;
  vector<ll> a(100);
  a[0] =1;
  for(int i=0;i<14;i++){
    a[i+1]=a[i]*(i+1);
  }
  return a[n] /(a[m] *a[n-m]);
}

long long modpow(long long a, long long n, long long mod) {
    long long res = 1;//繰り返し二乗法
    while (n > 0) {
        if (n & 1) res = res * a % mod;
        a = a * a % mod;
        n >>= 1;
    }
    return res;
}
ll kaijoMOD(ll x){
  ll z=1;
  if(x==0){
    return 1;
  }
  while(x>0){
    z *=x;
    z %=MOD;
    x--;
  }
  return z;
}
ll yakusu_num(ll n){
  vl yakusu(n+1,1);
  for(ll i=2;i*i<=n;i++){ 
    while(n%i==0){
      n /=i;
      yakusu[i]++;
    }
  }
  if(n!=1)yakusu[n]++;
  ll num=1;
  for(ll i=0;i<=n;i++){
    num*=yakusu[i];
  }
  return num;
}

int H,W;
vs s(50);
vi dv ={-1,0,1,0};vi du={0,-1,0,1};
int cnt=1;
int dfs(int u,int v){
  s[u][v]='.';
  
  rep(i,4){
   
      int nu =u +du[i],nv=v+dv[i];
      if(nu<0||nu>=H||nv<0||nv>=W)continue;
      if(s[nu][nv]=='.')continue;
      cnt ++;
      dfs(nu,nv);
    
  }
  return cnt;

}
int keta_wa(int x){
  int tot=0;
  while(x>0){
    tot +=x%10;
    x/=10;
  }
  return tot;
}

//vc alp ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
//vc Alp ={'A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'};
//cout<<""<<endl;
int main(){
  int N ;
  string s;
  cin>> s ;
  bool ok=false;
  rep(i,3){
    if(s[i]=='7'){
      cout<<"Yes"<<endl;
      ok=true;
      break;
    }
  }
  if(!ok){
   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
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define INF 1e10
#define MOD 1e9+7
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using Graph = vector<vector<int>>;
int fg(int k){
    int sum = 1;
    for (int i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
signed main(){
  string a;
  cin>>a;
  rep(i,3){
   if(a.at(i)=="7"){
     cout<<"Yes";
   }
    else if(i==3){
     cout<<"No";
    }
    else{
      continue;
    }
  }
}


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

#include <bits/stdc++.h>
#define all(a) a.begin(),a.end()
#define allr(a) a.rbegin(),a.rend()
#define ff first
#define sc second
#define INF 3000000000
#define SINF 2*(1e18)
#define inf -10000000
#define pb push_back
#define forr(i,p,n) for(int i=p;i<n;i++)
#define mpk make_pair
#define upb(a,s) upper_bound(a.begin(),a.end(),s)
#define lwb(a,s) lower_bound(a.begin(),a.end(),s)
#define D(x) cout << #x " = " << (x) << endl
#define mem(a,val) memset(a,val,sizeof a)
#define cc continue
#define bb break
using namespace std;
typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<ii> vii;
typedef vector<ll> vi;
typedef vector<vi> vvi;
//priority_queue<ll> pq;
ll gcd(ll a,ll b){
    if(a%b==0)return b;
    return gcd(b,a%b);
}
bool pal(string s){
  ll j=s.size()-1;
  ll sw=0;
  for(ll i=0;i<s.size()/2;i++){
    if(s[i]!=s[j]){sw=1;break;}j--;}
  if(sw)return false;
  else return true;
}
int main()
{
    ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie();
    ll a,b,c,d,n,t,m,k;
    string s;
    while(cin>>s){
      if(count(all(s),'7')>0)cout<<"Yes"<<endl;
      else cout<<"No"<<endl;
    }
}


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

#include <iostream>
#include <string>
#include <stdio.h>
#include <stdlib.h>
 
using namespace std;
 
int main() {
	int n;
	bool ret = false;
	cin >> n;
	while (1) {
		if ((n) % 10 == 7) {
			ret = true;
			break;
		}
		if (n / 10 < 1) n /= 10;
		else {
			ret = false;
			break;
		}
	}
	if (ret) printf("Yes\n");
	else printf("No");
	return 0;
}

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

n = int(input("enter a number: "))
sum = 0
for i in range(n):
    rem = n%10
    sum +=rem
    n = n//10
if sum >= 7:
    print("Yes")
else:
    print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n = int(input("enter a number: "))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | n = int(input("enter a number: "))
      |     ^~~
Language: C

#include <stdio.h>

int main(void)
{
	int N;

	scanf("%d", &N);

	if ( (N/100 == 7) || ((N-(N/100)*100)/10 == 7) || (N-(N/10)*10) == 7) ) {
		printf("Yes\n");
	} else {
		printf("No\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:79: error: expected statement before ')' token
    9 |         if ( (N/100 == 7) || ((N-(N/100)*100)/10 == 7) || (N-(N/10)*10) == 7) ) {
      |                                                                               ^
main.c:11:11: error: 'else' without a previous 'if'
   11 |         } else {
      |           ^~~~
Language: Java

import java.util.*;
public class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		String NN = N.toString();
		String ans = "No";
		if(NN.charAt(0) == '7'|| NN.charAt(1) == '7'|| NN.charAt(2) == '7'){
			ans = "Yes";
		}
		System.out.println(ans);
	}
}

Compiler output:
Main.java:6: error: int cannot be dereferenced
		String NN = N.toString();
		             ^
1 error
Language: C++

#include <iostream>
 
using ll = long long;
#define rep(inc, bgn, end) for (int inc = bgn; inc < end; ++inc)
#define repe(inc, bgn, end) for (int inc = bgn; inc <= end; ++inc)
 
using namespace std;
 
int gcd(int a, int b) {
    if (b == 0)
        return a;
    else
        return gcd(b, a % b);
}
 
int main(void) {
    int n;
    cin >> n;
 
    cout << sum << endl;
 
    return 0;
}

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

//#include<bits/stdc++.h>
#include<iostream>

using namespace std;

int main(){
    int n=0;
    //char s[200];
    bool flag = false;
    //vector<int> a(N,0);

    cin >> n;

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


    

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


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

//#pragma GCC optimize("O3")
//#pragma GCC target("avx")
#include <bits/stdc++.h>
#define rep(i ,n) for(int i=0;i<(int)(n);++i)
#define repr(i ,n) for(int i=n;i>(int)(n);--i)
#define rep1(i ,n) for(int i=1;i<=(int)(n);++i)
#define ALL(a) a.begin(), a.end()
#define SORT(a) sort(ALL(a))
#define bit_check(bit, i) ((bit>>(i)) & 1)
#define PRINT(x) printf("%d\n",(x));
using namespace std;
typedef long long int int64;
typedef unsigned long long uint64;
template<class T> using V = vector<T>;
using I = int;
using VI = V<I>;
const int INF = 2e9;
const int64 MOD = 1e9 + 7;

template <class T> inline bool chmin(T& a, T b){if(a>b){a=b; return true;} return false;}
template <class T> inline bool chmax(T& a, T b){if(a<b){a=b; return true;} return false;}

int main(){
    int n; cin >> n;
    bool f = false;
    int tmp = n;
    tmp %= 10;
    if (tmp == 7) f = true;
    n /= 10;
    tmp = n;
    tmp %= 10;
    if (tmp == 7) f = true;
    n /= 10;
    tmp = n;
    tmp %= 10;
    if( tmp == 7) f =true;
    cout <<( f ? "Yes" : "No") << endl;
}

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


int main (){
	int a;
	cin >> a ;
	int j = a%100;
	int k = j%10;
	if (k == 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>
void main()
{
  int N;
  cout<<"enter no. between 100 and 999";
  cin>>N;
  
  while(N>0)
  {
    if (N%10==7)
      cout<<"yes";
    N/=10;
  }
  
  cout<<"no";
}


Compiler output:
a.cc:2:1: error: '::main' must return 'int'
    2 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   cout<<"enter no. between 100 and 999";
      |   ^~~~
      |   std::cout
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:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>N;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C

#include<iostream>
#include<vector>

using namespace std;

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

    int a =1;

    if(s[2]!=s[3]){a=0;}
    if(s[4]!=s[5]){a=0;}

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

}


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

#include<stdio.h>

int main(void)
{
	char sen[3];
	int i,j;
	j = 0;

	for ( i = 0; i < 3; i++){
		scanf_s("%c", sen[i]);
		if (sen[i] ==' 7') {
			j++;
		}
	}
	if (j < 1) {
		printf("No");
	}
	else {
		printf("Yes");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:17: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   10 |                 scanf_s("%c", sen[i]);
      |                 ^~~~~~~
      |                 scanf
main.c:11:30: warning: multi-character character constant [-Wmultichar]
   11 |                 if (sen[i] ==' 7') {
      |                              ^~~~
Language: C

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
int main(){
  string num;
  cin>>string;
  char a,b,c;
  a=num[0];
  b=num[1];
  c=num[2];
  if(a==7 || b==7 || c==7){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s.at(0) == '7' || s.at(1) == '7' || s.at(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;

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


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

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

int main(){
  string str;
  cin >> str;
  if(str[0]=="7"||str[1]=="7"||str[2]=="7"){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str[0]=="7"||str[1]=="7"||str[2]=="7"){
a.cc:7:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str[0]=="7"||str[1]=="7"||str[2]=="7"){
a.cc:7:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str[0]=="7"||str[1]=="7"||str[2]=="7"){
Language: C++

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

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


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

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
  char ch[1000];
  int len=strlen(ch)
  for(int i=1;i<=n;i++)
  {
    cin>>ch[i];
    if(ch[i]=='7')
    {
	  cout<<"YES"<<endl;
    }
    else
    {
      cout<<"NO"<<endl;
    }
  }
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: expected ',' or ';' before 'for'
    8 |   for(int i=1;i<=n;i++)
      |   ^~~
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=1;i<=n;i++)
      |               ^
a.cc:8:18: error: 'n' was not declared in this scope
    8 |   for(int i=1;i<=n;i++)
      |                  ^
Language: C

#include<bits/stdc++.h>
using namespace std;
char c[5];
bool b=0;
int main()
{
    cin>>c;
    int l=strlen(c);
    for(int i=0;i<l;i++)
        if(c[i]=='7')
        b=1;
    if(b)
        cout<<"Yes";
    else
        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() {
  int n;
  string s;
	vector<int>a(n);
  cin >> a(n);
  for(int i= 0; i<n;i++){
  if(a(i) == 7) s={"Yes"};
   else s= {"No"};
  }
 cout << s << endl; 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: no match for call to '(std::vector<int>) (int&)'
    7 |   cin >> a(n);
      |          ~^~~
a.cc:9:7: error: no match for call to '(std::vector<int>) (int&)'
    9 |   if(a(i) == 7) s={"Yes"};
      |      ~^~~
Language: C

using namespace std;

#include <cstdint>
//#include <cstring>
//#include <cmath>
#include <string>
#include <iostream>
//#include <vector>
//#include <algorithm>
//#include <queue>
//#include <stack>

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

    string  N;
    int     n = 0;
    cin >> N;
    int     cnt = 0;
    string  ans;
    for(n = 0; n < N.size(); n++){
        if(N.substr(n,1).compare("7") != 0){
            cnt++;
        }
    }
    if(cnt == N.size()){
        ans = "No";
    }else{
        ans = "Yes";
    }


    cout << ans << "\n";
    return 0;
    
}


Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using namespace std;
      | ^~~~~
main.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    1 | using namespace std;
      |                 ^~~
main.c:3:10: fatal error: cstdint: No such file or directory
    3 | #include <cstdint>
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include<iostream>
using namespace std;
int main()
{
    int num,check=7;
    while(cin>>num)
    {
        if(num%10==check)
        {
            cout<<"Yes"<<endl;
        }
        else if(num%10!=check)
        {
            cout<<"No"<<endl;
        }
    }
}

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

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

	int main(){
    int n,k,l,o;
      cin>>n;
      n/100==k;
        (n-k*100)/10==l;
        (n-k*100-l*10)==o;
      if(k==7||l==7||o==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>
//#include <ext/pb_ds/assoc_container.hpp>

//using namespace __gnu_pbds;

using namespace std;

#define ll  long long

typedef vector<int> vi;
typedef pair<int,int> pi;
typedef unordered_map<int,int> um;
typedef unordered_set<int> us;
typedef priority_queue<int> pq;
typedef deque<int> dq;
typedef queue<int> q;
typedef stack<int> st;

#define f first
#define s second
#define pb push_back
#define mp make_pair

#define rep(i,a,b) for (int i = a; i <= b; i++)
//#define bitset<n> b<n>

/* typedef tree<int,null_type,less<int>,rb_tree_tag,
tree_order_statistics_node_update> indexed_set; */

void c_p_c()
{
	
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif
}

int main(){

	ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);

	//indexed_set s;
	//s.insert(2);
	//s.insert(3);
	//s.insert(7);
	//s.insert(9);

	//auto x = s.find_by_order(2);
	//s.order_of_key(7)
	
	//c_p_c();

	//__builtin_clz(x): the number of zeros at the beginning of the number
   // __builtin_ctz(x): the number of zeros at the end of the number
   // __builtin_popcount(x): the number of ones in the number
   // __builtin_parity(x): the parity (even or odd) of the number of ones

	int n;
	cin>>n;

	while(n>0){
		int dig = n%10;
		if(dig==7){
			cout<<"YES";
			return 0;
		}
		n /= 10;
	}

	cout<<"NO";
	//ll t;
	//cin>>t;
	//while(t--){

	//}

	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>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'string' was not declared in this scope
    4 |         string s;
      |         ^~~~~~
a.cc:4:9: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:5:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |         cin >> s;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:16: error: 's' was not declared in this scope
    5 |         cin >> s;
      |                ^
a.cc:8:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |                         cout << "Yes" << endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:42: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    8 |                         cout << "Yes" << endl;
      |                                          ^~~~
      |                                          std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |         cout << "No" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:12:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   12 |         cout << "No" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include<stdio.h>

int main(void){
	int hoge[3];
	scanf("%d",hoge);
	
   for(int i=0;i<3;i++)
   {
   if(hoge[i]==7)
   {
   printf("Yes");
   }
   　else{
	   printf("No");
        }   
   }
   
   




}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: stray '\343' in program
   13 |    <U+3000>else{
      |    ^~~~~~~~
Language: C++

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

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


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

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<cmath>
#include<queue>
#include<map>
#define il inline
#define re register
#define fo(i,j,k) for(register int i=j;i<=k;i++)
#define do(i,j,k) for(register int i=j;i>=k;i--) 
#define inf 0x7fffffff
typedef long long ll;
using namespace std;
il ll read()
{
	ll x=0,f=1;char c=getchar();
	while(c<'0'||c>'9'){if(c=='-') f=-1;c=getchar();}
	while(c>='0'&&c<='9') x=(x<<1)+(x<<3)+(c^48),c=getchar();
	return f*x;	
}
int n; 
int main()
{
	cin>>n;
	int a=n/100,b=n/10%10,c=n%10;
	if(a==7||b==7||c==7) cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	return 0;
}

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

#include <iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	bool flag = false;
	for (int i = 0; i < 3; i++) {
		if (n % 10 == 7) {
			flag = true;
			break;
		}
		n /= 10;
	}
	if (flag)
		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>
#define ll long long
using namespace std;
int main() 
{ 
    ll n;
    cin>>n;
    ll s=0;
    while(n!=0){
    	s=n%10;
    	if(s==7){
    		cout<<"YES"<<endl;
    		return 0;
    	}
    	n/=10;
    }
    cout<<"NO"<<endl;
}
#include<bits/stdc++.h>
#define ll long long
using namespace std;
int main() 
{ 
    ll n;
    cin>>n;
    ll s=0;
    while(n!=0){
    	s=n%10;
    	if(s==7){
    		cout<<"YES"<<endl;
    		return 0;
    	}
    	n/=10;
    }
    cout<<"NO"<<endl;
}

Compiler output:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: C

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

int main(){
	int n;
  	cin >> n;
  
  	bool ans = false;
  	rep(i, 3){
    	if(n % 10 == 7) ans = true;
      	n = n / 10;
    }
  
  	cout << (ans ? "Yes" : "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
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define rep2(i,n) for(int i=0;i<=n;i++)
#define repr(i,a,n) for(int i=a;i<n;i++)
#define all(a) a.begin(),a.end()
#define P pair<long long,long long>
#define double long double
#define INF 1e10
#define MOD 1e9+7
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using Graph = vector<vector<int>>;
int fg(int k){
    int sum = 1;
    for (int i = 1; i <= k; ++i)
    {
        sum *= i;
    }
    return sum;
}
signed main(){
  string a;
  cin>>a;
  rep(i,3){
   if(a[i]=="7"){
     cout<<"Yes";
   }
    else if(i==3){
     cout<<"No";
    }
    else{
      continue;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:28:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |    if(a[i]=="7"){
a.cc:37:2: error: expected '}' at end of input
   37 | }
      |  ^
a.cc:24:14: note: to match this '{'
   24 | signed main(){
      |              ^
Language: C

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

//def
#define debug(x) cout << #x << ": " << x << '\n'
#define out(x) cout << x << '\n'
#define repeat(i, a, b) for (int i = (int)(a); i < (int)(b); i++)
#define revrepeat(i, a, b) for (int i = (int)(b)-1; i >= (int)(a); i--)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define revrep(i, n) for (int i = (int)(n)-1; i >= 0; i--)
#define foreach(e, v) for (auto &e : v)
#define all(x) (x).begin(), (x).end()
#define CYES cout << "Yes" << endl
#define CNO cout << "No" << endl
#define SPC(x) cout << fixed << setprecision(x)
#define ZERO(a) memset(a, 0, sizeof(a))
#define MINUS(a) memset(a, 0xff, sizeof(a))

typedef long long ll;
typedef long double ld;
typedef vector<int> vi;
typedef vector<vector<int>> vii;
typedef vector<ll> vl;
typedef vector<vector<ll>> vll;
typedef pair<int, int> P;
constexpr int MOD = 1e9 + 7;
constexpr int INF = __INT_MAX__;               // 2^31 - 1
constexpr long long INFLL = __LONG_LONG_MAX__; // 2^61 - 1
constexpr int MAX_N = 1e5 + 5;
constexpr double PI = acos(-1);

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

    string n;
    bool ok = false;
    cin >> n;
    rep(i, 3) {
        if (n[i] == '7') ok = true;
    }
    if (ok)
        CYES;
    else
        CNO;
    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() {
  int n;
  cin >> n;
  bool flag = false;
  do {
    if (n%10 == 7) {
      flag = true;
      break;
    }
    n /= 10;
  }
  while (n != 0)
    if (flag) cout << "Yes";
  	else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:17: error: expected ';' before 'if'
   16 |   while (n != 0)
      |                 ^
      |                 ;
   17 |     if (flag) cout << "Yes";
      |     ~~
Language: C

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

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

  if (N.find("7") != -1) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

  return 0;
}

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

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

int main() {
  int N;
  cin >> N;
  bool a = false;
  if (N % 10 == 7 || (N % 100) / 10 == 7 || N / 100 == 7) {
    a = true;
    if (a) {
      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>
#define INF 1000000000
#define LINF 1000000000000000000
#define MOD 1000000007
#define mod 1000007
#define INF63 1061109567
#define INF127 9187201950435737471
#define UINF 18446744073709551615
#define F first
#define S second
#define ll long long
using namespace std;
string s;
int main(){
	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: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
 using namespace std;
 using pii = pair<int, int>;
 using ll = long long;
 #define rep(i, j, n) for(int i = j; i < (int)(n); i++)
 const ll MOD = 1000000007;
 const ll INF = 1LL << 60;

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

   cin >> N;

   if (N / 100 == 7) ok = true;
   else if (N % 10 == 7) ok = true;
   else if (N / 10 % 10 == 7) ok = true;

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


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

import java.util.*;
public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int N = sc.nextInt();
        String tmp = String.value(N);
        boolean flg = false;

        for(int i = 0; i < 3; i++) {
            if(tmp.charAt(i) == '7') {
                flg = true;
            }
        }
        if(flg == true)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}


Compiler output:
Main.java:7: error: method value in class String cannot be applied to given types;
        String tmp = String.value(N);
                           ^
  required: no arguments
  found:    int
  reason: actual and formal argument lists differ in length
1 error
Language: C++

#include <bits/stdc++.h>

int main()
{
    int n;
   	cin >> n;
    for (int i = 0; i < n; i++)
    {
        long a, ans = 0;
        cin >> a;
        while(a != 0)
        {
            if (a % 10 == 7)
            {
                cout << "Yes" << endl;
                ans += 1;
              	break;
            }
            a /= 10;
        }
      	if (ans == 0)
        {
          	cout << "No" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: 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:15:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   15 |                 cout << "Yes" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:15:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   15 |                 cout << "Yes" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:23:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   23 |                 cout << "No" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:23:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   23 |                 cout << "No" << endl;
      |                                 ^~~~
      |                                 std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

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

	if (n % 10 == 7) {
		cout << "Yes" << endl;
		return 0;
	}
	else if ((n - n % 10) % 100 == 70){
	cout << "Yes" << endl;
	return 0;
	}
	else if (((n  - n % 100) == 700) {
		cout << "Yes" << endl;
		return 0;
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:41: error: expected ';' before '{' token
   16 |         else if (((n  - n % 100) == 700) {
      |                                         ^~
      |                                         ;
a.cc:21:29: error: expected ')' before ';' token
   21 |         cout << "No" << endl;
      |                             ^
      |                             )
a.cc:16:17: note: to match this '('
   16 |         else if (((n  - n % 100) == 700) {
      |                 ^
Language: C

#include <iostream>
using namespace std;

int main() {
    bool res = false;
    for (int i = 0; i < 3; ++i) {
        if (cin.get() == '7') {
            res = true;
        }
    }
    cout << (res ? "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 <bits/stdc++.h>
using namespace std;

int main() {
  int N;
  cin >> N;
  
  if ( N % 10 == 7 ){
    cout << "Yes" << endl;
  }
  else if ( N % 100 / 10 == 7 ){
    cout << "Yes" << endl;
  }
  else if ( N / 10 == 7 ){
     cout << "Yes" << endl;
  }
  else if ( N / 100 == 7 ){
     cout << "Yes" << endl;
  }
  else if ( N / 7 == 1 ){
    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() {
string N;
  cin >> N;
  if(N[0]=='7'||N[1]=='7'||N[2]=='7'){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
 
cout<<result<<endl;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |   else cout<<"No\n"
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include <iostream>
#include <algorithm>
#include <stack>
#include <queue>
#include <vector>
#include <utility>
#include <map>
#include <string>
#include <math.h>
using namespace std;
typedef long long ll;


int main() {

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:5: error: expected primary-expression before '}' token
   29 |     }
      |     ^
Language: C

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

#define ll long long
#define rep(i,N) for(ll i=0; i<N; i++)
const int mx = 2e5;


int main(void){

  int N;
  cin >> N;
  
  if(((N%10)==7) || ((N%100)/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 <iostream>
using namespace std;
 
int main() {
int N;
cin >> N;
if(N.at(0) == 7|| N.at(1) == 7 || N.at(2) == 7)
cout << "Yes" << endl;
 
else 
cout << "No" << endl;
 
 
 
}

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

#include<iostream>
#include<conio>
void main()
{
  int N;
  cout<<"enter no. between 100 and 999";
  cin>>N;
  
  while(N>0)
  {
    if (N%10==7)
      cout<<"yes";
    N/=10;
  }
  return N%7==0;
  cout<<"no";
  getch();
}


Compiler output:
a.cc:2:9: fatal error: conio: No such file or directory
    2 | #include<conio>
      |         ^~~~~~~
compilation terminated.
Language: C

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


int main() {

  string N;
  cin >> N;

  string ans = "No";

  for(int i=0; i<N.size(); i++){
    if(N.at(i)=='7'){
      ans = "Yes";
      break;
    }
  }

  cout << ans << 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.