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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
  int N;
  cin >> N;
  bool ans = false;
  if(N % 10 == 7) ans = true;
  N = N - (N % 10);
  if (N % 100 == 70) ans = true;
  N = N - (N % 100);
  if (N % 1000 = 700) ans = true;
  if (ans) cout << "Yes" << endl;
  else cout << "No" << endl; 
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: lvalue required as left operand of assignment
   12 |   if (N % 1000 = 700) ans = true;
      |       ~~^~~~~~
Language: C

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

int mani(){
  string a;
  cin >> a;
  
  for (int i=0;i<1000;++i){
    if (a.at(i) == 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 <algorithm>
#include<iostream>
#include<stdio.h>
#include <algorithm>
#include<iostream>
#include<stdio.h>
#include<vector>
#include<set>
#include<string>
#include<iomanip>
#include<queue>
#include<functional>
#include<cmath>
#include <numeric>
#define rep(i,n) for(int i=0; i<(int)n; i++)//n回繰り返す
using namespace std;
using ll = long long;
using P = pair<int, int>;
using graph = vector<vector<int>>;
int main() {
	string N;
	cin >> N;
	if (N[0] == 7 || N[1] == 7 || N[2] == 7) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}



}






























	
	





	
	


	


	


		






Compiler output:
main.c:1:10: fatal error: algorithm: No such file or directory
    1 | #include <algorithm>
      |          ^~~~~~~~~~~
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()
int main(){
  int N; cin >> N;
  bool seven = false;
  if(N%10 == 7){
    seven = true;
  } else if (N/100 == 7){
    seven = true;
  } else if ((N/10)%10 == 7){
    seven = true;
  }
  if(seven){
    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)++)
typedef long long ll;

 int main(){
     string N;
     int l = 0;
     cin >> N;
    rep(i,N.size()){
        if(N.at(i) == '7') {
        l++;
        }
    }
        if(l >= 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>
#define ALL(a) (a).begin(), (a).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define pb push_back
#define FOR(i, a, b) for (int i = (a); i < (b); ++i)
#define REP(i, n) FOR(i, 0, n)
#define ll long long
using namespace std;

const ll P = 1000000007;
int gcd(int a, int b) { return b != 0 ? gcd(b, a % b) : a; }
int lcm(int a, int b) { return a / gcd(a, b) * b; }

int main()
{
  int N;
  cin >> N;
  if((N%10==7)||(N/10%10==7)||(N/100==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

//#define _GLIBCXX_DEBUG
#include <iostream>
#include <bits/stdc++.h>
    
    
using namespace std;
#define ll long long
#define ld long double
#define  P pair<ll,ll>
#define FOR(i,n,m) for(ll i=n; i<(ll)m;i++)
#define FORr(i,m,n) for(ll i=n; i>=(ll)m; i--)
#define FORm(i,m) for(auto i=m.begin();i!=m.end();i++)
#define sortAl(v) sort(v.begin(),v.end())
#define sortAlr(v) sort(v.begin(),v.end()); reverse(v.begin(),v.end())
#define cout(n) cout<<fixed<<setprecision(n)
#define dout(n) cout<<# n<<" = "<<n<<endl;
#define v1out(v) FOR(j,0,v.size()){cout<<v[j]; if(j!=(ll)v.size()-1)cout<<" ";else cout<<endl; }
#define v2out(v) FOR(i,0,v.size())v1out(v[i]);

int main(){
    cin.tie(0);
    ios::sync_with_stdio(false);
    string x;
    cin>>x;
    if(x[0]=='7' || x[1] == '7' || x[2] == '7') cout<<"Yes"<<endl;
    else cout<<"No"<<endl;

}

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

#include <iostream>
#include <string>
#include <cmath>
#include <ctime>
#include <vector>
#include <algorithm>
#include <cstdlib>
using namespace std;

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

    string s = "No";
    if(N[0] == '7') s = "Yes";
    if(N[1] == '7') s = "Yes";
    if(N[2] == '7') s = "Yes";

    cout << s << 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 <string>
using namespace std;

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

	string ans = "No";
	for (int i = 0; i < n.length(); i++) {
		if (n.at(i) == '7') {
			ans = "Yes";
		}
	}

	cout << ans << 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 in, check = 0;

    cin>>in;

    while(in > 0){
        if(in%10 == 7){
            cout<<"Yes\n";
            check = 1;
            break;
        }
        in = in/10;

    }
    if(check == 0){
        cout<<"No\n";
    }

    return 0;
}



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

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

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

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

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

	while (n != 0) {
		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++

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

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


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

N=int(input())
a=int(N/100)
b=N%100
c=int(b/10)
d=b%10
        
if a==7 or c==7 or d==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())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:3: error: expected expression before 'int'
    1 | N=int(input())
      |   ^~~
main.c:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     print('Yes')
      |           ^~~~~
main.c:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     print('No')
      |           ^~~~
Language: C

#include<stdio.h>
#difine BUFSIZE 100000
int hoge[BUFSIZE];

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

Compiler output:
main.c:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine BUFSIZE 100000
      |  ^~~~~~
      |  define
main.c:3:10: error: 'BUFSIZE' undeclared here (not in a function); did you mean 'BUFSIZ'?
    3 | int hoge[BUFSIZE];
      |          ^~~~~~~
      |          BUFSIZ
main.c: In function 'main':
main.c:13:4: error: stray '\343' in program
   13 |    <U+3000>else printf("No");
      |    ^~~~~~~~
main.c:14:4: error: expected declaration or statement at end of input
   14 |    }
      |    ^
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>

using namespace std;

int main(){
  string n;
  cin >> n;
  
  if(n[0] == '7' or n[1] == '7' or 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 <stdio.h>
#include <iostream>
#include <cstdlib>
#include <iomanip>
#include <cmath>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdlib>
#include <limits>
#include <numeric>
#include <queue>
#include <set>
#include <bitset>
#include <map>

using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef vector<int> vi;
typedef vector<string> vs;
typedef vector<char> vc;
typedef vector<long long> vll;
typedef queue<int, int> qii;
typedef pair<int, int> pii;
typedef pair<string, int> psi;

#define PI 3.14159265359
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rept(i,n) rep(i,0,n)

//int型を受け取ってその桁数を返す
int check_digits(int n,int m) {
	int digits = 0;
	while (n != 0) {
		n /= m;
		digits++;
	}
	return digits;
}

//int型を受け取ってその各桁の和を返す
int sum_digits(int n) {
	int sum=0;
	int N = n;
	while (N) {
		sum += N % 10;
		N /= 10;
	}
	return sum;
}


//最大公約数を返す関数
int gcd(int n, int m) {
	while (n != 0) {
		if (n < m) swap(n, m);
		n = n % m;
	}
	return m;
}


//2点間の距離を返す
float dis(int x1, int y1, int x2, int y2) {
	return sqrt(pow(abs(x1 - x2), 2) + pow(abs(y1 - y2), 2));
}


//入力された文字列が回文か判断してboolを返す
bool is_kaibun(string s) {
	string s_r(s.rbegin(), s.rend());
	return (s == s_r);
}


void yes() {cout << "Yes" << endl;}
void no() {cout << "No" << endl;}


//問題文を落ち着いて読む！
//型に注意！！
//出力例もちゃんと全部見る！！！！！
int main() {
	int n;
	cin >> n;
	string temp;
	temp = to_string(n);
	rept(i, temp.size()) {
		if (temp[i] == '7') {
			yes();
			//system("pause");
			return 0;
		}
	}

	no();
	//system("pause");
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
# define ll long long
# define int long long  //comment it out when MLE
//# define endl "\n"
#define gok ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
# define mo 1000000009
# define pi acos(-1)
# define fi first
# define se second
using namespace std;


signed main()
{
    gok
    int n;
    cin>>n;
    bool ch=false;
    while(n!=0)
    {
        if(7==n%10)
            ch=true;
        n/=10;
    }
    if(ch)
        cout<<"Yes";
    else
        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

local N = io.read("*l")

local isYes = false
for i = 1, 3 do
    if N:sub(i, i) == "7" then
        isYes = true
    end
end

print(isYes and "Yes" or "No")

Compiler output:
main.c:1:1: error: unknown type name 'local'
    1 | local N = io.read("*l")
      | ^~~~~
main.c:1:11: error: 'io' undeclared here (not in a function)
    1 | local N = io.read("*l")
      |           ^~
main.c:3:1: error: expected ',' or ';' before 'local'
    3 | local isYes = false
      | ^~~~~
Language: C

N=str(input())
L=N.count('7')
if L>=1:
    print('Yes')
else :
    print('No')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N=str(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    1 | N=str(input())
      |   ^~~
main.c:1:7: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N=str(input())
      |       ^~~~~
main.c:1:3: error: initializer element is not constant
    1 | N=str(input())
      |   ^~~
main.c:2:1: error: expected ',' or ';' before 'L'
    2 | L=N.count('7')
      | ^
main.c:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
Language: C

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

int main() {
  string N; cin >> N;
  
  bool seven = false;
  for (int i = 0; i < 3; i++) {
    if (N[i] == '7') seven = true;
  }
  
  if (seven) 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

import java.util.*;
import java.io.*;
import java.lang.*;

public class Main {

      
 public static void main(String[] args) {
    
    Scanner in = new Scanner(new BufferedReader(new InputStreamReader(System.in)));
    int N = in.nextInt();
    
    boolean yes = false;
    
    while(N > 0) {
        int d = N%10;
        N /= 10;
        if(d == 7) {
            yes = true;
        }
    }
    
    System.out.println(yes ? "Yes" : "No");
    
  }
  
  
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.io.*;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.io.*;
      |            ^
main.c:3:1: error: unknown type name 'import'
    3 | import java.lang.*;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.lang.*;
      |            ^
main.c:5:1: error: unknown type name 'public'
    5 | public class Main {
      | ^~~~~~
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    5 | public class Main {
      |              ^~~~
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 s;
  cin >> s;
  if(s[0] == '7' || s[1] == '7' || s[2] == '7'){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }

  return 0;
}

Compiler output:
main.c:1:10: fatal error: 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 flag=false;
  do{
    if(n%10 == 7){
      flag=true;
      break;}
    n/=10;
    }while(n/10);
  if(flag)
    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<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dl;
const int iNF = 1e9 + 100;
//const ll INF = 1e18 + 100;
typedef pair<int, int> pii;
 
#define EPS (1e-9)
#define inf 1e19
#define PI acos(-1.0)

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

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

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

int main() {
  int n;
  cin >> n;
  int a, b, c;
  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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int N;
    cin >> N;
    if(N%10 == 7 || (N/10)%10 == 7 || N/100 == 7)
        cout << "Yes";
    else
        cout << "No";
    
}

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

#include <iostream>
#include <string>
using namespace std;
int main(int argc, char const *argv[]) {
  string n;
  cin>>n;
  if(n[2]=='7') cout<<"Yes"<<endl;
  else if(n[1]=='7') cout<<"Yes"<<endl;
  else if(n[0]=='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<iostream>
using namespace std;
int main(){
  	char c[3];
  	cin>>c;
  	if(c[0]=='7' || c[1]=='7' || c[2]=='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 <algorithm>
#include <cmath>
#include <deque>
#include <iomanip>
#include <iostream>
#include <map>
#include <numeric>
#include <set>
#include <string>
#include <vector>

using namespace std;
using LLONG = long long;
const LLONG MOD = 1000000007;

int main()
{
    int N; cin >> N;
    if (N / 100 == 7)
    {
        cout << "Yes\n";
        return 0;
    }
    N %= 100;
    if (N / 10 == 7)
    {
        cout << "Yes\n";
        return 0;
    }
    N %= 10;
    cout << (N == 7 ? "Yes\n" : "No\n");
}


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

#include<bits/stdc++.h>

using namespace std;

int main()
{
    char p;
    string s = "NO";

    for(int i = 0; i < 3; i++)
    {
        cin >> p;
        if(p - '0' == 7)
            s = "YES";
    }

    cout << s << endl;

    return 0;
}


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

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'flag' was not declared in this scope
   16 |         if(flag){
      |            ^~~~
Language: C

#include<cstdio>
#include<algorithm>
#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    string ss;
    cin>>ss;
    if(ss[0]=='7'||ss[1]=='7'||ss[2]=='7')
        puts("Yes");
    else puts("No");
    return 0;
}


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

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

int main() {
  int n;
  cin >> n;
  while (n) {
    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: C

n = input()
ans = 0
for i in range(len(n)):
  if n[i] == "7":
	ans += 1
print("Yes" if ans > 0 else "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:2:1: error: expected ',' or ';' before 'ans'
    2 | ans = 0
      | ^~~
Language: C

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

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

  if(n%10 == 7 || (n%100-n%10)/10 == 7 || n/100 == 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<iostream>
using namespace std;

int main(){
    int n;
    bool ans = 0;
    cin >> n;
    for(int i = 0;i < 3;i++){
    if(n%10 == 7){
        ans = 1;
    }
    n -= n%10;
    }
    if(ans){
        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: Java

import java.util.Scanner;

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

		int thirdPlace = N / 100;
		int secondPlace = N - thirdPlace*100;
		int firstPlace = N - thirdPlace*100 - secondPlace*10;
		if(thirdPlace == 7 || secondPlace == 7 || firstPlace == 7) {
			System.out.println("yes");
		}else {
			System.out.println("No");
		}
	}

}


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

n = input()

l = False

for k in range(3):
    if n[k] == "7":
        l = True

if l:
    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 'l'
    3 | l = False
      | ^
Language: C

#include <bits/stdc++.h>

#define EPS (1e-10)
#define rep(i, a, b) for (int i = a; i < (int)(b); ++i)
#define rrep(i, a, b) for (int i = b - 1; i >= (int)(a); --i)
#define all(a) a.begin(), a.end()

using namespace std;
using ll = long long;
using vi = vector<int>;
using vb = vector<bool>;
using vll = vector<ll>;
using vd = vector<double>;
using vvi = vector<vi>;
using vvb = vector<vb>;

constexpr int MOD = 1000000007;

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

    string s;
    cin >> s;

    rep(i, 0, s.size()) {
        if (s[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;

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

#include <iostream>
using namespace std;

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

long inf = 1000000007;


int main() {
	int n; cin >> n;
	int a = n%10;
	n /= 10;
	int b = n % 10;
	n /= 10;
	
	if (a == 7 or b == 7 or n == 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 <iostream>
#include <string>
using namespace std;

int main(){
  int n;
  cin>>n;
  string s=to_string(n);
  for(auto d:s){
    if(d=="7"){
      	cout<<"Yes"<<endl;
      	return 0;
    }
  }
  cout<<"No"<<endl;
}

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

#include <iostream>

using namespace std;

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

	bool flag = false;
	for (const auto& num : n) {
		if (num == '7') {
			flag = true;
		}
	}
	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

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<iomanip>
#include<math.h>
#include<complex>
#include<queue>
#include<deque>
#include<stack>
#include<map>
#include<set>
#include<bitset>
#include<functional>
#include<assert.h>
#include<numeric>
using namespace std;
#define REP(i,m,n) for(int i=(int)(m) ; i < (int) (n) ; ++i )
#define rep(i,n) REP(i,0,n)
using ll = long long;
const int inf = 1e9 + 7;

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

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


}

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

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

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

    cout << "No" << endl;

}

 


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

#include <bits/stdc++.h>
#define ll long long int
#define vi vector<int>
#define vl vector<long long>
#define fin(ar,k,n) for(int i=k;i<n;i++) cin>>ar[i]
#define fout(ar,k,n) for(int i=k;i<n;i++) cout<<ar[i]<<' '
#define vs vector<string>
#define mx INT_MAX
#define mn INT_MIN
#define all(z) z.begin(),z.end()
#define mcc 1000000007
#define mcf 998244353
#define mi map<int,int>
#define mem(a,n) memset(a,n,sizeof(a))
using namespace std;

//ll maxl(ll a,ll b) {return (a>b)? a:b;}
//ll minl(ll a,ll b) {return (a<b)? a:b;}
//ll gcdl(ll a,ll b) {return b ? gcdl(b,a%b):a;}
//bool sortc(const vi &v1,const vi &v2) {return v1[0]>v2[0];}

void solve()
{
    string s;
    cin>>s;
    for (auto const a: s)
    {
        if (a=='7')
        {
            cout<<"Yes";
            return;
        }
    }
    cout<<"No";
}


#if 1
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    int t=1;
    //cin>>t;
    while(t--) solve();
    return 0;
}
#endif

//------------------------Google-------------------
#if 0
int main()
{
    #ifdef __WIN32
    freopen("input.txt","r",stdin);
    #endif
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    ll t,ct=0;
    cin>>t;
    while(t--)
    {
        cout<<"Case #"<<++ct<<": ";
        solve();
    }
    return 0;
}
#endif


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;
typedef long long ll;
typedef long long int lli;

ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a; }	//最大公約数(Greatest Common Divisor)
ll lcm(ll a, ll b) { return a/gcd(a,b)*b; }			//最小公倍数(Least Common Multiple)

long long comb(long long m) {
	return (m * (m - 1)) / 2;
}


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

	int nn[3];
	nn[0] = n % 10;
	nn[1] = (n % 100)/10;
	nn[2] = n /100;

	if (nn[0] == 7 || nn[1] == 7 || nn[2] == 7)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;


}

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

include<bits/stdc++.h>
using namespace std;
int main()
{
    int t;
    t=1;
    while(t--)
    {
        long int n;
        cin>>n;
        bool f = false;
        while(n){
            n=n%10;
            if(n==7){
                cout<<"Yes";
                f=true;
                break;
        }
        n/=10;
        }
        if(!f)
            cout<<"No";
    }
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<bits/stdc++.h>
      |        ^
main.c: In function 'main':
main.c:10:9: error: 'cin' undeclared (first use in this function)
   10 |         cin>>n;
      |         ^~~
main.c:10:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:9: error: unknown type name 'bool'
   11 |         bool f = false;
      |         ^~~~
main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | include<bits/stdc++.h>
main.c:11:18: error: 'false' undeclared (first use in this function)
   11 |         bool f = false;
      |                  ^~~~~
main.c:11:18: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:15:17: error: 'cout' undeclared (first use in this function)
   15 |                 cout<<"Yes";
      |                 ^~~~
main.c:16:19: error: 'true' undeclared (first use in this function)
   16 |                 f=true;
      |                   ^~~~
main.c:16:19: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String A = sc.next();
    String a = A.substring(0);
    String b = A.substring(1);
    String c = A.substring(2);
    if(a.equals("7") || b.equals("7") || c.equals("7")){
      System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}



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

#include <bits/stdc++.h>

using namespace std;


int main(){
  int n;
  cin >> n;
  for(int i=0;i<3;i++){
    int tmp=n%10;
    n=n/10;
    if(tmp==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>
#define rep(i,n) for (int i = 0; i < n; ++i)
using namespace std;

int main(){
    int N,A,B,C;
    cin >> N;
    A = N/100;
    B = (N - 100*A)/10;
    C = (N - 100*A - 10*B);
    if(A ==7 || B == 7 || C == 7){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;777
    }
    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 ll = long long;

int main() {
  int n;
  cin >> n;
  
  bool ans = false;
  for(int i=0; i<3; i++){
    int a=n/pow(10,i);
    int b=n/pow(10,i+1);
    if(a-b*10==7) ans = true;
  }
  
  if(ans==true) cout << "Yes";
  else cout << "No";
  
  return 0;
  
}


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

#include <iostream>
#include <sstream>
#include <algorithm>
#include <string>
#include <vector>
#include <stack>
#include <set>
#include <queue>
#include <map>
#include <numeric>
#include <functional>
#include <math.h>

using namespace std;

typedef long long ll;
typedef long double ld;
typedef pair<int, int> pii;

#define INF ((int)1e9)
#define INFLL ((ll)1e18)
#define MOD (1000000007LL)


int main(int argc, const char * argv[]) {
    ios_base::sync_with_stdio(false);
    int N;
    cin >> N;
    bool b = false;
    for (int k = 0; k < 3; ++k) {
        if (N % 10 == 7) {
            b = true;
        }
        N /= 10;
    }
    if (b) {
        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;
typedef long long ll;
typedef vector<ll> vl ;
typedef vector<int> vi;
typedef pair<int, int> pi;
typedef pair<ll,ll> pl;

#define rep(i,N) for(int i=0; i < (int)N; i++)
#define all(v) (v).begin(),(v).end()

const int INF = 100000002;

int main(){
	string S;
	cin >> S;
	for(auto s:S){
		if(s == '7'){
			 cout << "Yes" << endl;
			 return 0;	
		}	
	}
	
	cout << "No" << endl;
}	

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

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

int main()
{
  bool frag=false;
  vector<char> v(3);
  for(int i = 0; i < 3; i++)
  {
    cin >> v[i];
    if(v[i] == '7')frag = true;
  }
  
  if(frag)cout << "Yes" << endl;
  else cout << "No" << endl;
}  

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

#include <bits/stdc++.h>

using namespace std;

int main() {

    int N;
    cin >> N;

    if ((N%10==7||(N%100-N%10)/10==7)||(N-N%100)/100==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>
#include <sstream>
#define pi 3.1416
using namespace std;
/*double Convert(double radian)
{
    return(radian*(180/pi));
}*/
int main()
{
    int count=0;
    string s;
    cin>>s;
    for(int i=0;i<3;i++)
    {
        if(s[i]=='7')
        {
            count++;
        }
    }
    if(count==0)
    {
        cout<<"No";
    }
    else
    {
        cout<<"Yes";
    }


}







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

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

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

    ll a = n%10;
    ll b = n/10;
    ll c = b%10;
    ll d = b/10;

    if((a==7||c==7)||d==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 <iostream>
#include <math.h>
#include <strings.h>
#include <queue>
#include <algorithm>
using namespace std;

int main()
{
    int N;
    cin >> N;
    int A,B,C;
    int flag =0;
    A=N/100;
    if(A==7){
        flag=1;
    }
    B=(N-(A*100))/10;
        if(B==7){
        flag=1;
    }
    C=(N-(A*100)-(B*10));
    if(C==7){
        flag=1;
    }

    if(flag==0){
        cout<<"No";
    }else{
        cout<<"Yes";
    }
    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() {
	string N;
  bool A=false;
  cin>>N;
  if(N.at(0)==7){
    A=true;
  }
  if(N.at(1)==7){
    A=true;
  }
  if(N.at(2)==7){
    A=true;
  }
  if(A==true){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  
  
}


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

#include <bits/stdc++.h>
using namespace std;
// clang-format off

using LL = long long;
#define COUT(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << endl

#define REP(i,x) for(int i=0;i<(int)(x);i++)
#define FOR(i,c) for(__typeof((c).begin())i=(c).begin();i!=(c).end();i++)
#define RFOR(i,c) for(__typeof((c).rbegin())i=(c).rbegin();i!=(c).rend();i++)
#define UNIQUE(v) v.erase( unique(v.begin(), v.end()), v.end() );
 
template<class T> ostream& operator<<(ostream &os, const vector<T> &t) {
os<<"["; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"]"; return os;
}
template<class T> ostream& operator<<(ostream &os, const set<T> &t) {
os<<"{"; FOR(it,t) {if(it!=t.begin()) os<<","; os<<*it;} os<<"}"; return os;
}
template<class S, class T> ostream& operator<<(ostream &os, const pair<S,T> &t) { return os<<"("<<t.first<<","<<t.second<<")";}
// clang-format on
const string YES = "Yes";
const string NO = "No";

void solve(long long N) {
  // solver code

  if (N % 10 == 7 || (N / 10) % 10 == 7 || (N / 100) % 10 == 7) {
    cout << YES << endl;
  } else {
    cout << NO << endl;
  }
}

int main() {
  long long N;
  scanf("%lld", &N);
  solve(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;

#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);
#define ll long long

int main() {
    fastio;
    int n, flag = 0;
    cin >> n;
    while (n) {
        if (n % 10 == 7) {
            flag = 1;
            break;
        }
        n /= 10;
    }
    cout << (flag == 1 ? "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

//g++ -std=c++14 test.cpp -o test.out

#include <bits/stdc++.h>
 
// #include <string.h>
// #include <stdlib.h>
// #include <math.h>
// #include <algorithm>
// #include <functional>
// #include <iostream>
// #include <iomanip>
// #include <vector>
// #include <queue>
// #include <map> 
// #include <utility>
// #include <limits.h>
// #include <bitset>
// #include <set>
using namespace std;
 
#define LL long long int
const LL INF = (1LL<<60);
const int INF_INT = 2147483647-1e6-1;
const LL mod = 1000000007ll;
const int mod_int = 1000000007;
 
string N;
 
string ans = "Yes";
 
void solve(){
	for(int i=0;i<N.size();i++){
		if(S[i]=='7') return;
	}
	ans = "No";
}
 
int main(){
    cin >> N;
 
    solve();
 
    cout << ans << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i=0; i<(n); ++i)
#define REP(i, d, n) for(int i=(d); i<(n); ++i)
#define all(v) v.begin(), v.end()
using ll = long long;
using P = pair<int, int>;
 
int main() {

int a;cin>>a;
  int b;b=a-(a/100)*100;
  if(a/100==7||a%10==7||b/10==7){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}

}

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

#include<iostream>
#include<vector>
#include<cmath>
#include<limits>
#include<algorithm>
#include<string>
using namespace std;
int main(){
    string n;
	cin>>n;
	if(string::npos==n.find("7")){
		cout<<"No"<<endl;
	}
	else{
		cout<<"Yes"<<endl;
	}
}

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

N = input()
m=0

for i in range(3):
    if N[i] == "7":
        m=1
        break

if m==1:
    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:2:1: error: expected ',' or ';' before 'm'
    2 | m=0
      | ^
Language: C

#include <algorithm>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <limits>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <tuple>
#include <type_traits>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>

#define REP(i, n) for(int i = 0, i##_MACRO = (n); i < i##_MACRO; i++)
#define RANGE(i, a, b) for(int i = (a), i##_MACRO = (b); i < i##_MACRO; i++)
#define EACH(e, a) for(auto&& e : a)
#define ALL(a) std::begin(a), std::end(a)
#define RALL(a) std::rbegin(a), std::rend(a)
#define FILL(a, n) memset((a), n, sizeof(a))
#define FILLZ(a) FILL(a, 0)
#define INT(x) (static_cast<int>(x))

using namespace std;

using ll = long long;
using VI = vector<int>;
using VI2D = vector<vector<int>>;

constexpr int INF = 2e9;
constexpr double EPS = 1e-10;
constexpr double PI = acos(-1.0);

constexpr int dx[] = {-1, 0, 1, 0};
constexpr int dy[] = {0, -1, 0, 1};

template <typename T>
constexpr int sign(T x) {
	return x < 0 ? -1 : x > 0 ? 1 : 0;
}

template <>
constexpr int sign(double x) {
	return x < -EPS ? -1 : x > EPS ? 1 : 0;
}

template <typename T, typename U>
constexpr void chmax(T& m, U x) {
	m = max(m, x);
}

template <typename T, typename U>
constexpr void chmin(T& m, U x) {
	m = min(m, x);
}

template <typename T>
constexpr T square(T x) {
	return x * x;
}

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


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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N;
  cin >>N;
  
  for(int i=0;i<3;i++){
    if(N.at(i)=="7"){
    cout <<"Yes"<<endl;
      return 0;
    }
  }
  cout <<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |     if(N.at(i)=="7"){
      |          ^~
Language: C

#include<iostream>
#include<string>

using namespace std;

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


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

#include <iostream>
using namespace std;
using ll = long long;

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

  string N; cin >> N;
  string ans = "No";
  for (ll i = 0; i < 3; i++) {
    if (N[i] == '7') ans = "Yes";
  }
  cout << ans << '\n';
  return 0;
}

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

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

int main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    string n;
    cin >> n;
    for(int i=0; i<3; i++) {
        if(n[i] == '7') {
            cout << "Yes";
            return 0;
        }
    }
    cout << "No";
    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

#define endl '\n'
#define ll long long

const ll mod = 1e9 + 7;
const ll maxn = 2e8 + 5;
const double pi = 3.1415926535897932384626433832795028841971693993751058209749445923078;
//iostream::sync_with_stdio(false);

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



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


#include <iostream>

using namespace std;

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


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