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

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n)  for(long long i=0;i<(long long)(n);i++)
#define REP(i,k,n) for(long long i=k;i<(long long)(n);i++)
#define all(a) a.begin(),a.end()
#define pb push_back
typedef long long ll;
typedef pair<ll,ll> P;
using vi=vector<ll>;
using vvi=vector<vi>;
using vvvi=vector<vvi>;
int main(){
    string n;
    string ans="No";
    cin>>n;
    if (n[0]=='7'||n[1]=='7'||n[2]=='7')ans="Yes";
    cout<<ans;
    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 number;
    cin >> number;
    bool seven = false;
    if(number/100== 7){
        seven = true;
    }
    number %= 10;
    if(number/10 == 7){
        seven = true;
    }
    number %= 10;
    if(number == 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

#include <iostream>
#include <string>
#include <vector>
#include <map>
#include <algorithm>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long int ll;

ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

void P(int x) {cout << x << endl;}
void P(long x) {cout << x << endl;}
void P(ll x) {cout << x << endl;}
void P(string x) {cout << x << endl;}

#define YES cout << "YES" << endl
#define Yes cout << "Yes" << endl
#define NO cout << "NO" << endl
#define No cout << "No" << endl

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define drep(i, n) for(int i = n - 1; i >= 0; i--)

const int INF = 1001001001;
const ll LINF = 1001002003004005006ll;

int main() {
  string s;
  cin >> s;
  rep (i, s.size()) {
    if (s[i] == '7') {
      Yes;
      return 0;
    }
  }
  No;
  return 0;
}

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

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

int main() {
  int n,ans=0,m;
  cin >> n;
  m=10*n;
  for(int i=0;i<3;i++){
    m=m/10;
    if((m-7)%10==0){
      ans=1;
      break;
    }
    if(ans==0) cout<<No;
    else cout<<Yes;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'No' was not declared in this scope
   14 |     if(ans==0) cout<<No;
      |                      ^~
a.cc:15:16: error: 'Yes' was not declared in this scope
   15 |     else cout<<Yes;
      |                ^~~
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string 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:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if(N.at(i)=="7"){
      |        ~~~~~~~^~~~~
Language: C++

int digit(int n, int k)
{
    if (n < 0)
        n = -1*n;
    if (n/10 > 0) {
        digit(n/10, k);
    }

    if(n % 10 == k) cout<<"yes"<<endl;
    else cout<<"no"<<endl;
}
int main()
{   
    int n;
    scanf("%d",&n);
    digit(n, 7);
    return 0;
}

Compiler output:
a.cc: In function 'int digit(int, int)':
a.cc:9:21: error: 'cout' was not declared in this scope
    9 |     if(n % 10 == k) cout<<"yes"<<endl;
      |                     ^~~~
a.cc:9:34: error: 'endl' was not declared in this scope
    9 |     if(n % 10 == k) cout<<"yes"<<endl;
      |                                  ^~~~
a.cc:10:10: error: 'cout' was not declared in this scope
   10 |     else cout<<"no"<<endl;
      |          ^~~~
a.cc:10:22: error: 'endl' was not declared in this scope
   10 |     else cout<<"no"<<endl;
      |                      ^~~~
a.cc:11:1: warning: no return statement in function returning non-void [-Wreturn-type]
   11 | }
      | ^
a.cc: In function 'int main()':
a.cc:15:5: error: 'scanf' was not declared in this scope
   15 |     scanf("%d",&n);
      |     ^~~~~
Language: C

#include <iostream>
#include <bits/stdc++.h>
using namespace std;
using ll = int64_t;
#define rep(i,n) for(int i = 0; i < ((int)(n)); i++)   // 0-indexed昇順

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


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

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

int main(){
  string S;
  cin >> S;
  if(S.at(0)==7||S.at(1)==7||S.at(2)==7)
    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>
#include <iostream>
#include <limits>
#include <numeric>
#include <type_traits>
 
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define srt(i) sort(i.begin(), i.end())
#define rvt(i) sort(i.begin(), i.end(), greater<int>())
 
int main() {
  string n;
  cin >> n;
 
  rep(i, 3){
    char c = n.at(i);
 
    if(c=='7') {
      cout << "Yes" << endl;
      return 0;
    }
  }
 
  cout << "No" << endl;
}

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

#include<iostream>
#include <string>
#include <sstream>
using namespace std;
int main(){
	int num;
	string res;
	stringstream s;
	cin>>num;
	s<<num;
	s>>res;
	
	for(int i=0;i<res.length();i++){
	if(res[i]=='7'){
		cout<<"Yes";
		break;	
		}
	}
	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;
    int t;
    while(n>0) {
        t = n%10;
        if(t==7) {
            cout<<"Yes";
            return 0;
        }
        n /= 10;   
    }
    cout<<"No";
}

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;
	cin>>n;
	if(n%10==7||n/10%10==7||n/100==7)
	{
		cout<<"Yes"<<endl;
		return 0;
	 } 
	 else
	 {
	 	cout<<"No"<<endl;
	 }
	 return 0;
} 

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

#include<stdio.h>
int main()
{
  int a,b,c,d;
  scanf("%d",&a);
  d=a%100;
  b=a//100;
  c=(a-b*100)//10;
   if(d==7)
   {
     printf("Yes");
   }
else if(c==7)
{
  printf("Yes");
}
  else if(b==7)
  {
    printf("Yes");
  }
  else
  {
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'c'
    7 |   b=a//100;
      |      ^
      |      ;
    8 |   c=(a-b*100)//10;
      |   ~
Language: C

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

void Main() {
	string N;
	cin >> N;
	int pos = N.find("7");
	if (pos == string::npos) {
		cout << "No" << endl;
	}
	else {
		cout << "Yes" << endl;
	}
}

int main() {
	std::cout << std::fixed << std::setprecision(15);
	Main();
}

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 ll long long
#define rep(i,a,b) for(long long i=a; i<b; i+=1)
#define repr(i,a,b) for(long long i=a; i<=b; i+=1)
#define vec vector<ll>
#define map map<string,int>
#define repa(p,A) for(auto p:A)
#define pb push_back
#define sort(a) sort(a.begin(),a.end())
#define reverse(a) reverse(a.begin(),a.end())

using namespace std;
int main() {
  ll N,a,b;
  cin>>N;
  a=N/10;
  b=N/100;
  
  bool answer=false;
  if(N%10==7) {
    ans=true;
  }
  if(a%10==7) {
    ans=true;
  }
  if(b%10==7) {
    ans=true;
  }
  if(ans)
    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 = N;
  cin >> N;
if(str.at(0)==7){
  cout << "Yes" << endl;
}
else if(str.at(1) == 7)){
   cout << "Yes" << endl;
}
else if(str.at(2) == 7)){
   cout << "Yes" << endl;
}
else {
  cout << "No" << endl;

}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:16: error: 'N' was not declared in this scope
    4 |   string str = N;
      |                ^
a.cc:9:24: error: expected primary-expression before ')' token
    9 | else if(str.at(1) == 7)){
      |                        ^
a.cc:12:24: error: expected primary-expression before ')' token
   12 | else if(str.at(2) == 7)){
      |                        ^
Language: C

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

char a[5];

int main()
{
    for(int i=1;i<=3;i++)
    {
        scanf("%c",&a[i]);
        if(a[i]=='7')
        {
            printf("Yes");
            return 0;
        }
    }
    printf("No");
    return 0;
}

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

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


int main()
{
    ios_base::sync_with_stdio(0); cin.tie(0);
    string s;
    cin>>s;
    for(auto l : s) if(l=='7') return puts("Yes"),0;
    cout<<"No";
}


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

#include <stdio.h>
int main();
{
  int N[2];
  scanf("%d",&N);
  
  if(N[0]=7||N[1]=7||N[2]=7){
    printf("Yes");
  }
  else{
    printf("No");
  }
  return 0;
  

Compiler output:
main.c:3:1: error: expected identifier or '(' before '{' token
    3 | {
      | ^
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{
    int num;
    cin >> num;
    int temp1 = num % 10;
    int temp2 = (num / 10) % 10;
    int temp3 = (num / 100);
    if(temp1 == 7 || temp2 == 7 || temp3 == 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,bai,shi,ge;
	cin>>n; //123
	
	bai=n/100;
	shi=(n/10)%10;
	ge=n%10;
	
	if(shi==7||ge==7||bai==7)  cout<<"Yes";
	else cout<<"No";
	
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
 
typedef long long ll;
typedef long double ld;
 
#define REP(i,a,n) for(int (i)=(a); (i)<(int)(n); (i)++)
#define rep(i,n) REP(i,0,n)
#define sqrt(d) pow((long double) (d), 0.50)
 
const ll INF = 2e9;
const ll large_P = 1e9 + 7;
 
 
int main(){
  int N; cin >> N;
  int a1, a2, a3;
  a1 = N/100; N -= 100*a1;
  a2 = N/10; N -= 10*a2;
  a3 = N;
  
  if(a1 == 7 || a2 == 7 || a3 == 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

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

Compiler output:
main.c: In function 'main':
main.c:2:5: error: unknown type name 'string'
    2 |     string n;
      |     ^~~~~~
main.c:3:5: error: unknown type name 'bool'
    3 |     bool flag = 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 | int main(){
main.c:3:17: error: 'false' undeclared (first use in this function)
    3 |     bool flag = false;
      |                 ^~~~~
main.c:3:17: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:3:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:5: error: 'cin' undeclared (first use in this function)
    4 |     cin >> n;
      |     ^~~
main.c:6:13: error: subscripted value is neither array nor pointer nor vector
    6 |         if(n[i] == '7'){
      |             ^
main.c:7:20: error: 'true' undeclared (first use in this function)
    7 |             flag = true;
      |                    ^~~~
main.c:7:20: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:10:14: error: 'cout' undeclared (first use in this function)
   10 |     if(flag) cout << "Yes" << endl;
      |              ^~~~
main.c:10:31: error: 'endl' undeclared (first use in this function)
   10 |     if(flag) cout << "Yes" << endl;
      |                               ^~~~
Language: C

my $N =<STDIN>;
if ($N=~/7/){print "Yes\n";}else{print "No\n";}

Compiler output:
main.c:1:1: error: unknown type name 'my'
    1 | my $N =<STDIN>;
      | ^~
main.c:1:8: error: expected expression before '<' token
    1 | my $N =<STDIN>;
      |        ^
main.c:2:1: error: expected identifier or '(' before 'if'
    2 | if ($N=~/7/){print "Yes\n";}else{print "No\n";}
      | ^~
main.c:2:29: error: expected identifier or '(' before 'else'
    2 | if ($N=~/7/){print "Yes\n";}else{print "No\n";}
      |                             ^~~~
Language: C

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

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

main = do
  str <- getLine
  putStrLn $ if '7' `elem` str then "Yes" else "No"

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | main = do
      | ^~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'main' [-Wimplicit-int]
main.c:1:8: error: expected expression before 'do'
    1 | main = do
      |        ^~
main.c:3:21: error: stray '`' in program
    3 |   putStrLn $ if '7' `elem` str then "Yes" else "No"
      |                     ^
main.c:3:26: error: stray '`' in program
    3 |   putStrLn $ if '7' `elem` str then "Yes" else "No"
      |                          ^
Language: C

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

using namespace std;


int main(){
    int N;
    cin >> N;
    int out = 0;
    for(int i=0; i!=N; i++){
        if((i%3)&(i%5)) out+=i;
    }
    cout << out;
    return 0;


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

n=input()
if "7" in n:
  print("Yes")
else:
  print("No")  

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

N = input()
YN = False
for i in N:
    if int(i) == 7:
        YN = True
if YN:
    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 'YN'
    2 | YN = False
      | ^~
Language: C

#include<iostream>
using namespace std;

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

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

#include<string>
using namespace std;

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


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

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

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

import java.util.*;
import java.io.*;
import java.math.*;
public class p1
{
	static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
    public static void main(String args[])
    {
    	FastReader sc=new FastReader();
        String s=sc.nextLine();
        for(int i=0;i<s.length();i++)
        {
            char a=s.charAt(i);
            if(a=='7')
            {
                System.out.println("YES");
                System.exit(0);
            }
        }
        System.out.println("NO");
    }
}

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

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
typedef vector<int> vec1;
typedef vector<string> vec2;
typedef vector<double> vec3;

int main() {

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

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

#include <iostream>
using namespace std;
int main(){
  string n;
  cin>>n;
  if(n.at(0)=='7') cout<<"Yes";
  else if (n.at(1)=='7') cout<<"Yes";
  else if(n.at(2)=='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>
#include<vector>
#include<numeric>
#include<math.h>
#include<algorithm>
#include<iomanip>
#include<bitset>
using namespace std;

int main() {

	string N;
	cin >> N;

	bool jdg = false;

	for (int i = 0; i < N.size(); i++) {
		if (N.substr(i,1) == "7") {
			jdg = true;
		}
	}

	if (jdg == true) {
		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 <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:9:11: error: expected ';' before 'cin'
    9 |   b = "No"
      |           ^
      |           ;
   10 |   cin >> a;
      |   ~~~      
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(a[i]=="7")
Language: C

#include <iostream>
 
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define en '\n'
 
int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    int n;
    cin >> n;
    if(n/100 == 7 or n % 10 == 7 or (n / 10)%10 == 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<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;
  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

list_num = list(input())
list_num = [int(i) for i in list_num]

if 7 in list_num:
    print('Yes')
else:
    print('No')

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

n = str(input())

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

#include<iostream>
#include<algorithm>
#include<map>
using namespace std;
int main()
{
	int n; 
	bool fl = false;
	cin >>n;
	char str[3];
	itoa(n,str,10);
	for(int i=0;i<3;i++) if(str[i]=='7') fl = true;
	puts(fl?"Yes":"No") ;
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: 'itoa' was not declared in this scope
   11 |         itoa(n,str,10);
      |         ^~~~
Language: C

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

int main()
{
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    string s;
    cin>>s;
    for(int i=0;i<3;i++)
    {
        if(s[i]=='7')
        {
            cout<<"Yes"<<endl;
            return 0;
        }
    }
    cout<<"No"<<endl;
}

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

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


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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{ 
    int n,a,b,c;
    cin>>n;
    
    a=n%10;
    b=n/10%10;
    c=n/100;
    
    if(a==7||b==7||c==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<iostream>
#include<algorithm>
#include<vector>
 
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;
  }
  
  
  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  ll  long long
#define rep(k, n)  for(int i=k; i<n;  i++)
#define rep2(k,n)   for(int j=k; j<n;  j++)
using namespace std;

int main(){
    string s;
    cin >> s;
    rep(0,s.length()){
        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 <stdio.h>

int main (void)
{

  char a=0,b=0,c=0;
  
  scanf("%c %c %c",&a,&b,&c);
  
  if(a!=char'7')
  {
  	if(b!=char'7')
  	{
    	if(c!=char'7')
        {
        	printf("No");
        }
      	else
        {
        	printf("Yes");
        }
    }
    else
    {
    	printf("Yes");
    }
  }
  else
  {
  	printf("Yes");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:9: error: expected expression before 'char'
   10 |   if(a!=char'7')
      |         ^~~~
main.c:12:15: error: expected expression before 'char'
   12 |         if(b!=char'7')
      |               ^~~~
main.c:14:15: error: expected expression before 'char'
   14 |         if(c!=char'7')
      |               ^~~~
Language: C

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

int main()
{
    int N;
    cin >> N;
    int hun = int(N/100);
    int ten = int((N%100)/10);
    int one = int(N%10);
    if (hun == 7 || ten ==7 || one ==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 <bits/stdc++.h>
using namespace std;
  
int main(){
    int a,b,c;
    cin >>a;
    for(int i=0,i<3,i++){
        if(a[i]==7){
            b++;
        }
    }
    if(b>=1){
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
    return 0;
    
}

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

#include<iostream.h>
using namespace std;

int main()
{
  int x;
  cin>>x;
  for(i=0;i<3;i++)
  {
    if(x%10==7)
    {
      cout<<"Yes";
      return 0;      
    }
  }
  cout<<"No";
  return 0;
}

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

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

int main() {
	int N;
 	cin >> N;
  
    if (N / 100 - 7 == 0) {
      cout << "yes" << endl;
    }
    
  	else if (N / 10 - N / 100 * 10 - 7 == 0) {
      cout << "yes" << endl;
    }
  
  	else if (N - N / 10 * 10 - 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

N = input()
count = 0
for x in range(len(N)):
    if int(N[x]) == 7:
        count = count+1
if count>0:
    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 'count'
    2 | count = 0
      | ^~~~~
Language: C

#include <bits/stdc++.h>  // clang-format off
using Int = long long;
#define REP_(i, a_, b_, a, b, ...) for (Int i = (a), lim##i = (b); i < lim##i; i++)
#define REP(i, ...) REP_(i, __VA_ARGS__, __VA_ARGS__, 0, __VA_ARGS__)
struct SetupIO { SetupIO() { std::cin.tie(nullptr), std::ios::sync_with_stdio(false), std::cout << std::fixed << std::setprecision(13); } } setup_io;
#ifndef _MY_DEBUG
#define dump(...)
#endif  // clang-format on

/**
 *    author:  knshnb
 *    created: Sun Apr 12 21:00:00 JST 2020
 **/

signed main() {
    std::string s;
    std::cin >> s;
    std::cout << (std::find(s.begin(), s.end(), '7') != s.end() ? "Yes" : "No") << std::endl;
}


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

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

int main() {
  string a ;
  cin >> a ;
  bool kekka = false;
  for (int i = 0; i < 3; i++) {
    char b = a.at(i);
      if(b=='7')
      {kekka=true;}
  }
  
  if(kekka==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 <iostream>
#include <string>

using namespace std;

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

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

    return 0;
}


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

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


int main(){
    char c;
    for(int i=0;i<3;i++){
        cin>>c;
        if(c=='7'){
            cout<<"Yes"<<endl;
            return 0;
        }
    }

    cout<<"No"<<endl;

    

}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> x;
      |   ^~~
a.cc:4:14: error: 'cout' was not declared in this scope
    4 |   if(x%10==7)cout << "Yes";
      |              ^~~~
a.cc:5:25: error: expected primary-expression before '%' token
    5 |   else if(((int)(x/10))/%10==7) cout << "Yes";
      |                         ^
a.cc:5:33: error: 'cout' was not declared in this scope
    5 |   else if(((int)(x/10))/%10==7) cout << "Yes";
      |                                 ^~~~
a.cc:6:26: error: expected primary-expression before '%' token
    6 |   else if(((int)(x/100))/%10==7) cout << "Yes";
      |                          ^
a.cc:6:34: error: 'cout' was not declared in this scope
    6 |   else if(((int)(x/100))/%10==7) cout << "Yes";
      |                                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope
    7 |   else cout << "No";
      |        ^~~~
Language: Java

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

public class lucky7 {
	public static void main(String[] args) throws IOException{
		BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
		String str = in.readLine();
		
		System.out.println(has7(str) ? "Yes" : "No");
	}
	public static boolean has7(String str) {
		for (int i = 0; i < str.length(); i++) {
			if (str.charAt(i) == '7')
				return true;
		}
		return false;
	}
}


Compiler output:
Main.java:4: error: class lucky7 is public, should be declared in a file named lucky7.java
public class lucky7 {
       ^
1 error
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:
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;
  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;

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:
a.cc: In function 'int main()':
a.cc:11:55: error: expected primary-expression before ')' token
   11 |         if(s[0]=='7' || s[1] == '7' || s[2] == '7' || ) cout<< "Yes" << endl;
      |                                                       ^
Language: C

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

int main() {
  char a, b, c;
  cin >> a >> b >> c;
  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 <bits/stdc++.h>
#define rep(i,n); for(int i = 0;i < (n);i++)
using namespace std;
typedef long long ll;
typedef pair<int,int> P;

// 最小公倍数を求める
int euqlid (int a, int b){
  int temp;
  temp = a % b;
  if(temp == 0)return b;
  return euqlid(b,temp);
}
ll conbination(ll a,ll b){
  ll u = 1;
  ll d = 1;
  while(b != 0){
    u *= a;
    d *= b;
    a--;
    b--;
  }
  return u / d;
}

int main(){
 int n;
 string ans = "No";
 cin >> n;
 for(int i = 2;i > -1;i--){
   int m = n / pow(10,i);
   int temp = pow(10,i);
   n = n % temp;
   if(m == 7)ans = "Yes";
 }
 cout << ans << endl;
}


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

#include <bits/stdc++.h>
using namespace std;
     
int main() {
  string N;
  cin >> N;
  
  int flag =0;
  for(int i=0;i<3;i++){
    if(N[i]=='7'){
      flag = 1;
    }
  }
  
  if(flag==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;
#define IO ios_base::sync_with_stdio(false)
int a[200000], vs[200000],b[200020], co[200200];
vector<int>v[300000];
string s;
int main()
{
    int i, j, m, k, n, l;
    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:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

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

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

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

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

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

	for(int i=0; i<3; i++) {
		if(n % 10 == 7) {
			r = true;
			break;
		}
		n /= 10;
	}

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

n = int(input())
if 7 in range(n):
    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:5: error: expected expression before 'int'
    1 | n = int(input())
      |     ^~~
Language: C

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

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

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

import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
	static class FastReader 
    { 
        BufferedReader br; 
        StringTokenizer st; 
  
        public FastReader() 
        { 
            br = new BufferedReader(new
                     InputStreamReader(System.in)); 
        } 
  
        String next() 
        { 
            while (st == null || !st.hasMoreElements()) 
            { 
                try
                { 
                    st = new StringTokenizer(br.readLine()); 
                } 
                catch (IOException  e) 
                { 
                    e.printStackTrace(); 
                } 
            } 
            return st.nextToken(); 
        } 
  
        int nextInt() 
        { 
            return Integer.parseInt(next()); 
        } 
  
        long nextLong() 
        { 
            return Long.parseLong(next()); 
        } 
  
        double nextDouble() 
        { 
            return Double.parseDouble(next()); 
        } 
  
        String nextLine() 
        { 
            String str = ""; 
            try
            { 
                str = br.readLine(); 
            } 
            catch (IOException e) 
            { 
                e.printStackTrace(); 
            } 
            return str; 
        } 
    } 
    public static void main(String args[])
    {
    	FastReader sc=new FastReader();
        String s=sc.nextLine();
        for(int i=0;i<s.length();i++)
        {
            char a=s.charAt(i);
            if(a=='7')
            {
                System.out.println("YES");
                System.exit(0);
            }
        }
        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 '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.math.*;
      | ^~~~~~
main.c:3:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    3 | import java.math.*;
      |            ^
main.c:4:1: error: unknown type name 'public'
    4 | public class Main
      | ^~~~~~
main.c:4:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    4 | public class Main
      |              ^~~~
Language: C

#include<stdio.h>
int main(){
int a[2];
  int n,b=0;
  for(n=0;n<3;n++){
  scanf("%1d",&a[n]);}
  if(a[n]==7)b=1;}
   if(b=0)printf("No");
else printf("Yes");

return 0;}

Compiler output:
main.c:8:4: error: expected identifier or '(' before 'if'
    8 |    if(b=0)printf("No");
      |    ^~
main.c:9:1: error: expected identifier or '(' before 'else'
    9 | else printf("Yes");
      | ^~~~
main.c:11:1: error: expected identifier or '(' before 'return'
   11 | return 0;}
      | ^~~~~~
main.c:11:10: error: expected identifier or '(' before '}' token
   11 | return 0;}
      |          ^
Language: C

#include<stdio.h>
int main(void){
	int number;
	scanf("%d", &number);
  	
  	han_num = number / 100;
  	ten_num = (number - han_num * 100) / 10;
  	one_num = number - (han_num * 100) - (ten_num * 10)
  
  	if (han_num == 7 || ten_num == 7 || one_num == 7){
    	printf("Yes\n");
    } else {
    	printf("No\n")
    }
}

Compiler output:
main.c: In function 'main':
main.c:6:9: error: 'han_num' undeclared (first use in this function)
    6 |         han_num = number / 100;
      |         ^~~~~~~
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:9: error: 'ten_num' undeclared (first use in this function)
    7 |         ten_num = (number - han_num * 100) / 10;
      |         ^~~~~~~
main.c:8:9: error: 'one_num' undeclared (first use in this function)
    8 |         one_num = number - (han_num * 100) - (ten_num * 10)
      |         ^~~~~~~
main.c:8:60: error: expected ';' before 'if'
    8 |         one_num = number - (han_num * 100) - (ten_num * 10)
      |                                                            ^
      |                                                            ;
    9 | 
   10 |         if (han_num == 7 || ten_num == 7 || one_num == 7){
      |         ~~
Language: C

N = input()

if list(filter(lambda x: x=="7", N)):
    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 'if'
    3 | if list(filter(lambda x: x=="7", N)):
      | ^~
Language: C

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  if(n/100==7){
    cout<<"Yes"<<endl;
    return 0;
  }
  else if(n/10==17||n/10==27||n/10==37||n/10==47||n/10==57||n/10==67||n/10==77||n/10==87||n/10==97){
    cout<<"Yes"<<endl;
    return 0;
  }
  else if(n%10==7){
    cout<<"Yes"<<endl;
  }
  else{
    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 <iostream>
#include <string>

using namespace std;

int main() {
    string S;

    cin >> S;

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

    cout << "No";
    return 0;
}

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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define ARB ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define bp  __builtin_popcount
using namespace std;
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_statistics_node_update> indexed_set;
const int maxn=1e5+5;
const  double EPS = 1e-14;
int main()
{
    ARB
    int n;
    cin>>n;
    if(n%10==7)
        cout<<"Yes";
    else
        cout<<"No";
}


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

#include <iostream>
using namespace std;

int main(){
    int ans=0;
    string s;
    s[3];
    for(int i=0;i<3;i++){
        cin>>s[i];
    }

    for(int j=0;j<3;j++){
        if(s[j]=='7') ans++;
    }
    if(ans>0) 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<cstdio>
int main(){
  int x;
  scanf("%d",&x);
  if(x/100==7)puts("Yes");
  else if(x/10%10==7)puts("Yes");
  else if(x%10==7)puts("Yes");
  else puts("No");
}

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

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

using namespace std;

int main() {
    string number;
    cin >> number;
    if (number[0] == '7' or number[1] == '7' or number[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.