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

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

int main() {
  string n;
  cin >> n;
  bool flg = false;
  for(int i = 0; i < 3; i++){
    if(n[i] == '7') flg = true;
  }
  if(flg) 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(){
  
  char a, b, c;
  
  cin >> a >> b >> c;
  
  if (a == '7'){
    cout << "Yes" << endl;
  }
   else if (b == '7'){
    cout << "Yes" << endl;
  }
   else if (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>
using namespace std;

int main(){
    string n;
    cin>>n;
    if(n.find("7")!=-1){
        cout<< "Yes"<<endl;
    }else{
        cout<< "No"<<endl;
    }

}

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

#include "bits/stdc++.h"
using namespace std;
#define fios ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
typedef long long ll;

int main() {
	// fios;
	string n;
	cin >> n;
	if(n.find("7") != string::npos) puts("Yes");
	else puts("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

//g++ -std=c++14 test.cpp -o test.out
 
#include <string.h>
#include <stdlib.h>
#include <math.h>
#include <cassert>
#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(N[i]=='7') return;
	}
	ans = "No";
}
 
int main(){
    cin >> N;
 
    solve();
 
    cout << ans << endl;
    return 0;
}

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

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

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

    if(n[0] == '7' || n[1] == '7' || n[2] == '7'){
        puts("Yes");
    }else{
        puts("No");
    }
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
const long long MOD = 1000000007;
const long long INF = 9999999999999999;
using ll = long long;
int main(){
  int N;
  cin>>N;
  if(N%10 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else if((N/10)%10 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else if((N/100)510 == 7){
    cout << "Yes" << endl;
    return 0;
  }
  else{
    cout << "No" << endl;
    return 0;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:18: error: expected ')' before numeric constant
   17 |   else if((N/100)510 == 7){
      |          ~       ^~~
      |                  )
Language: C

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

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

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

#include <iostream>
#include <algorithm>
#include <vector>
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

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 s;
  cin>>s;
  if(s[0]=="7"||s[1]=="7"||s[2]=="7") cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

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

#include <cmath>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <vector>

using namespace std;
#define repp(i, a, b) for (int i = (int)(a); i < (int)(b); ++i)
#define reppe(i, a, b) for (int i = (int)(a); i <= (int)(b); ++i)
#define repm(i, a, b) for (int i = (int)(a); i > (int)(b); --i)
#define repme(i, a, b) for (int i = (int)(a); i >= (int)(b); --i)

typedef long long ll;

long long GCD(long long a, long long b) {
    if (b == 0) return a;
    return GCD(b, a % b);
}

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

#include <iostream>
#include <cctype>
#include <algorithm>
#include <vector>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <utility>
#include <string>
#include <functional>
#include <cctype>
#include <cstring>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iomanip>
#include <bitset>
#define pb push_back
#define YES cout<<"YES"<<endl
#define Yes cout<<"Yes"<<endl
#define NO cout<<"NO"<<endl
#define No cout<<"No"<<endl
#define INF (1<<10)
#define MOD 1000000007
typedef long long ll;
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:32:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7")Yes;
a.cc:32:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7")Yes;
a.cc:32:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   32 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7")Yes;
Language: C

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

const string YES = "Yes";
const string NO = "No";

void solve(long long N){

}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    string S;
    cin >> S;
    bool flg = false;
    for(auto x: S){
        if(x == '7'){
            flg = true;
            break;
        }
    }
    cout << (flg ? "Yes" : "No") << endl;
}


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

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

int main() {
  string a;
  cin>>a;
  if(a.at(0)=='7'||a.at(1)=='7'||a.at(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

import java.util.*;

public class Main{
    public static void main(String[]args){
        Scanner sc = new Scanner(System.in);
        int n=0;
        n=sc.nextInt();
        String str = String.valueOf(n);
        String[] str2 = str.split("");
        int count=0;
        int []number = new int[3];
        

        for(int i=0;i<3;i++){
            number[i]=Integer.parseInt(str2[i]);
        }
        for(int i=0;i<3;i++){
            if(number[i]==7)
            count+=1;
        }
        if(count!=0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

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

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

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

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

int main(){
    string s;
    cin >> s;
    rep(i,3){
        if(s[i] == '7'){
            cout << "Yes" << endl; 
            return 0;
        }
    }
    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

N = input()
a = "No"
for n in N:
	if n == "7":
		a = "Yes"
print (a)

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 'a'
    2 | a = "No"
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 's' was not declared in this scope
   10 |         if (s[i]=='7') ans="Yes";
      |             ^
Language: C

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

using ll=long long;

int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  string s;
  cin >> s;
  string ans = "No";
  rep(i,3){
    if(s[i]=='7') ans = "Yes";
  }
  cout << ans << endl;
}

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

N = input()
N1 = str(N)
output = []
for i in N1 :
    if i == "7" :
        print("Yes")
        break
    output.append(i)
if len(output) == 3 :
    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 'N1'
    2 | N1 = str(N)
      | ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int s = 0;
char f = '7';
cin >> s;
string a = to_string(s);
if( a.find(f) == string::npos ) cout << "No";
else cout << "Yes";

Compiler output:
a.cc:5:1: error: 'cin' does not name a type
    5 | cin >> s;
      | ^~~
a.cc:7:1: error: expected unqualified-id before 'if'
    7 | if( a.find(f) == string::npos ) cout << "No";
      | ^~
a.cc:8:1: error: expected unqualified-id before 'else'
    8 | else cout << "Yes";
      | ^~~~
Language: C

#include <stdio.h>

int main()
{
	int N = 0;
	scanf("%d", &N);

    int a = N/100;              //百の位
    int b = N/10 - a*10;        //十の位
    int c = N - a*100 - b*10;   //一の位

    if((7 == a) || (7 == b) || (7 == c)){
        printf("Yes\n");
    }else{
        printf("No\n");
    }

	return 0;
}a

Compiler output:
main.c:19:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   19 | }a
      | ^
Language: C

#include<iostream>
using namespace std;
typedef long long ll;
typedef long double ld;
const int mod=1000000007;
#define pb  push_back
#define FOR(i,n) for(int i=0;i<(n);i++)
#define FORA(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)

int main()
{


int n,m,v=0,x=3;

cin>>n;
while(x--)
{
   m=n%10;
	if(m==7)
	{
		cout<<"Yes\n";
		v++;
		break;
	}
	n=n/10;
}
if(v==0)
{
	cout<<"No\n";
}
return  0;
}




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

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

int main() {
  cout << 9 << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: expected '}' at end of input
    5 |   cout << 9 << endl;
      |                     ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

int main()
{
  string s;
  cin >> s;
  bool y = false;
  if(s[0]=="7"||s[1]=="7"||s[2]=="7") y=true;
  
  if(y) 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>
int main(void)
{
	char arr[3];
	
	{
		scanf("%s", arr);

	}
	int flag;
	if(arr[0] == '7' || arr[1] == '7' || arr[2] == '7')
		printf("Yes\n");
	else
		printf("No\n");
	return 0;
	
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(N[0] == 7)A++;
      |       ^
a.cc:9:10: error: invalid types 'int[int]' for array subscript
    9 |      if(N[1] == 7)A++;
      |          ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |         if(N[2] == 7)A++;
      |             ^
a.cc:12:22: error: expected primary-expression before '<<' token
   12 |     cout << "Yes" << << endl;
      |                      ^~
Language: C++

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

const string YES = "Yes";
const string NO = "No";

void solve(long long N){
    string a = to_string(N);
    rep(i,a.length){
        if(a[i] == '7') {cout << YES << endl;}
        return;
    }
    cout << NO << endl;

}

int main(){
    long long N;
    scanf("%lld",&N);
    solve(N);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:10:13: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   10 |     rep(i,a.length){
      |             ^
a.cc:2:34: note: in definition of macro 'rep'
    2 | #define rep(i,n) for(int i=0; i<(n); ++i)
      |                                  ^
Language: C

#include <iostream>
#include <string>

using namespace std;

int main(){
    int N; cin >> N;
    int n = 0;
    
    for (int i = 0; i < 3; i++)
    {
      n = N%10;
      if (n == 7)
      {
        cout << "Yes" << endl;
        return 0;
      }
      n /= 10;      
    }
    
    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<cmath>
#include<cstring>
#include<iostream>
#include<stack>
#include<algorithm>
using namespace std;
int main()
{
	char s[20];
	cin >> s;
	for (int i = 0; s[i] != '\0'; i++) {
		if (s[i] == '7')
		{
			cout << "Yes" << endl;
			return 0;
		}
	}
	cout << "No" << endl;
}

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

#include <bits/stdc++.h>

using namespace std;
int main () {
  int n;
  cin>>n;
  ostringstream str1; 
  str1<<n;
  string n1=str1.str();
  int a=n1.size();int flag=0;
  int i;
  for(i=0;i<a;i++)
  {
  	if(n1[i]=='7')
  	{
  		flag=1;
  		break;
	  }
  }
  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;
int main(){
  string N;
  bool ans = false;
  cin >> N;
  for (int i=0; i<3; i++){
    if (N.at(i) == '7'){
      cout << "Yes"s;
      goto N;
    }
  }
  cout << "No"s;
N:
  cout << 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()

if N[0] == "7":
    print("Yes")
elif N[1] == "7":
    print("Yes")
elif N[2] == "7":
    print("Yes")
else:
    print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1: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 N[0] == "7":
      | ^~
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n,c,l=0;
  cin>>n;
  while(n>0)
  {
    c=n%10;
    if(c==7)
    {
      l=1;
      break;
    }
    else
      continue;
  }
  if(l==1)
    cout<<"YES";
  if(L==0)
    cout<<"NO";	
  return 0;
}
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:20:6: error: 'L' was not declared in this scope
   20 |   if(L==0)
      |      ^
Language: C

#include <iostream>
#include <algorithm>
#include <vector>
#include <queue>
#include <string>
#include <cstring>
#include <utility>
#include <set>
#include <stack>
#include <climits>
#include <cmath>

#define rep(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define reps(i,s,n) for(int i=s, i##_len=(n); i<i##_len; ++i)
#define all(x) (x).begin(),(x).end()
#define MEMSET(v, h) memset((v), h, sizeof(v))
typedef long long ll;
const char sp = ' ';


using namespace std;

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

int main(){
  srting s; cin >> s;
  char a, b, c;
  a = s[0]; b = s[1]; c = s[2];
  if(a=='7') cout << "Yes" << endl;
  else if(b == '7') cout << "Yes" << endl;
  else if(c == '7') cout << "Yes" << endl;
  else cout << "No" << endl;
}


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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    string N;
  cin >> N;
  int c = 0;
  if(N[0] == '7'){c++ ;};
  if(N[1] == '7'){c++ ;};
  if(N[2] == '7'){c++ ;};
  if(c == 0){
  cout << "No" << endl;
  }else{
  cout << "Yes" << 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;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ll long long

int main() {
  int N;
  cin >> N;
  string s = to_string(N);
  bool a = false;
  rep(i,3){
    if(s.at(i)=='7') a =true;
  }
  if(a) 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>
#include <string>
using namespace std;
 
int main(){
    string s;
    cin>>s;
    cout<<(s.find("7")==string::npos?"No":"Yes")<<endl;
}

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


import java.util.Scanner;

public class Solution {

	public static void main(String[] args) {
		Scanner sc= new Scanner(System.in);
		int n = sc.nextInt();
		String s = n+"";
		System.out.println(s.contains("7")?"Yes":"No");

	}

}


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

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

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

 if (n.substr(1, 1) == 7 || n.substr(2, 1) == 7 || n.substr(3, 1) == 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

import sys
import numpy as np

n=sys.stdin.readline()


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


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:2:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'import'
    2 | import numpy as np
      | ^~~~~~
main.c:2:1: error: unknown type name 'import'
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: Java

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

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

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main()
{
    int N;
    cin >> N;
    
    if(N /100 == 7 || N /10%10 == 7 || N%10==7)
    {
        cout << "Yes" << endl;
    }
    else
    {
        cout << "No" << endl;
    }
    
    return 0;
    /*
    vector<int> a(N);
    for(int i= 0;i<N;i++)
    {
        cin >> a[i];
    }
    */
    
}

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;
int main(){
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	string s;
    cin>>s;
    for (int i=0;i<s.size();i++){
        if (s[i]=='7'){
            cout<<"Yes\n";
            return 0;
        }
    }
    cout<<"No\n";

Compiler output:
a.cc: In function 'int main()':
a.cc:15:18: error: expected '}' at end of input
   15 |     cout<<"No\n";
      |                  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

N = int(input())
M = str(N)
List = []
for i in M:
    if i == '7':
        List.append(i)
    else:
        pass
if len(List) != 0:
    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())
      |     ^~~
main.c:10:11: warning: multi-character character constant [-Wmultichar]
   10 |     print('Yes')
      |           ^~~~~
main.c:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('No')
      |           ^~~~
Language: C

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

int main() {
  int C;
  string Num;
  cin >> Num;
  C = 0;
  
  for (int i = 0; i < 3; i++) {
    if (Num.at(i) == '7') {
      C = C + 1;
    }
  }
  
  if (C > 0) {
    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>
#include <string>
using namespace std;
int main() {
  string s;
  cin >> s;
  if (s.at(0) == '7' || s.at(1) == '7' || s.at(2) == '7') {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
main.c:1:10: fatal error: 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;
	int flag = false;
	while(n>0){
		t = n%10;
		if(t == 7){
			flag = true;
			cout<<"Yes";
          break;
		}
		n= n/10;
	}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: 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;
  if(N.at(0)=='7'||N.at(1)=='7'||N.at(2)=='7')return cout<<"Yes"<<endl,0;
  else return cout<<"No"<<endl,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 ll;

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


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

#include<iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <queue>
#include <algorithm>
#include <utility>
#include <unordered_map>
#include <cmath>
using namespace std;

typedef unsigned int uint;
typedef long long llong;
typedef unsigned long long ullong;
// -2.1e-9 <= int <= 2.1e9
// -9.2e-18 <= long long <= 9.2e18
// 0 <= unsigned int <= 4.2e9
// 0 <= unsigned long long <= 18.4e18

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


Compiler output:
main.c:1: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;
  if(N/100==7 | (N/10)%10==7 | N%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;
	for(int i=0;i<3;i++){
	    char ch = s[i];
	    if(ch=='7'){
	        cout << "Yes" << endl;
	        break;
	    }
	    else if(i==2){
	        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()
{
  char a[3];
  gets(a[1]);
  gets(a[2]);
  gets(a[3]);
  if(a[1]=='7'||a[2]||'7'||a[3]=='7')
    cout<<"Yes";
  else
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |   gets(a[1]);
      |   ^~~~
      |   getw
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'usimg' does not name a type
    2 | usimg namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     cout << "Yes" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     cout << "Yes" << endl;
      |                      ^~~~
      |                      std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout << "No" << endl;
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |     cout << "No" << endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <iostream>
#include <algorithm>
#include <string>
#define endl '\n'
#define ll unsigned long long
using namespace std;

string N;

string Solution(string N) {

	for (auto x : N) if (x == '7') return "Yes";
	return "No";
}

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

	cin >> N;
	string s = Solution(N);
	cout << s << endl;
	
	system("pause");
	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>
#include <vector>

#define MAX 3

using namespace std;

int main(void){
  int num;
  
  cin >> num;
  
  for(i = 0;i < MAX-1;i++){
   if(num % 10 == 7){
   	cout << "Yes";
   } 
   num = num / 10;
  }
  
  cout << "No";
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i = 0;i < MAX-1;i++){
      |       ^
Language: C

#include <bits/stdc++.h>

#define repo(i,n) for (int i = 0; i < n; i++)
using namespace std;
using ll = long long;

int main(){

    int N;
    cin >> N;

    std::ostringstream oss;

    oss << N;
    string str = oss.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: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() {
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
  int N;
  cin>>N;
  int a,b,c;
    a=N%10;
    b=((N-a)/10)%10;
    c=(N-10*b-a)/100;
  //cout<<a<<b<<c;
  if(a!=7&&b!=7&&c!=7)
    cout<<"No";
  else
    cout<<"Yes";
}

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 = N/100;
    N -= a*100;
    int b = N/10;
    N -= b*10;
    int c = N;
    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>
#include <vector>
#include <map>
#include <set>
#include <string>
#include <utility>
#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <queue>
#include <deque>
#include <stack>
#include <fstream>
#include <cmath>
#include <random>
#include <complex>
#include <functional>

#define ll int64_t
#define Rep(i, n) for (ll i = 0; i < n; i++)
using namespace std;
typedef vector<ll> vec;
typedef vector<vec> mat;

const ll inf = 1LL << 60;

template<class T> inline void chmin(T& a, T b) {
    if (a > b) {
        a = b;
    }
}
template<class T> inline void chmax(T& a, T b) {
    if (a < b) {
        a = b;
    }
}

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

    string S;
    cin >> S;
    for (char c : S) {
        if (c == '7') {
            cout << "Yes\n";
            return 0;
        }
    }
    cout << "No\n";
}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int m=0
for(int i = 0;i<2;i++){
if((N%10)=!7){
N = (N-(N%10))/10;
m++;
}
else{
System.out.println("Yes");
break;
if(m==3){
System.out.println("No)
}
}
}
}
}

Compiler output:
Main.java:6: error: ';' expected
int m=0
       ^
Main.java:16: error: unclosed string literal
System.out.println("No)
                   ^
2 errors
Language: C

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

/* 大文字を小文字に変換 */
char tolower(char c) {return (c + 0x20);}
/* 小文字を大文字に変換 */
char toupr(char c) {return (c - 0x20);}

// if('A'<=s[i] && s[i]<='Z') s[i] += 'a'-'A';

/*
string s = "abcdefg"
s.substr(4) "efg"
s.substr(0,3) "abc"
s.substr(2,4) "cdef"
*/

int main()
{
    int N;
    cin >> N;
    bool yes = false;
    for(int i=0; i<3; i++){
        if(N % 10 == 7) yes = true;
        else N /= 10;
    }
    if(yes) 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

using System;
					
public class Program
{
	public static void Main()
	{
		String str = Console.ReadLine();
		String A = str.Substring(0,1);
		String B = str.Substring(1,1);
		String C = str.Substring(2);

		if(A=="7" || B=="7"|| C=="7")
		{
			Console.WriteLine("Yes");
		}else{
			Console.WriteLine("No");
		}		
	}
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using System;
      | ^~~~~
main.c:3:1: error: unknown type name 'public'
    3 | public class Program
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Program'
    3 | public class Program
      |              ^~~~~~~
Language: C

#include <bits/stdc++.h>
#define ll long long
#define pb push_back
#define vi vector<int>
#define vii vector<int, int>
#define po pop_back
#define hell 1000000007
using namespace std;

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

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

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

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

import sys

N =  str(input())

if '7'in N:
    print("Yes")
else:
    print("No")


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'N'
    3 | N =  str(input())
      | ^
Language: C

import java.util.Scanner;

/**
 * Main
 */
public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);

        String N = sc.next();

        if(N.contains("7")){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }

    }
}

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

#include<iostream>
using namespace std;
 
int main(int, char**)
{
    string s;
 
    cin >> s;
 
    bool result = false;
    for (int i = 0; i < s.length(); i++)
        if (s[i] == '7') result = true;
 
    if (result) cout << "Yes" << endl;
    else cout << "No" << endl;
 
    return 0;
}

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

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

int main() {
	int n;

	cin >> n;

	if (n -n%100 ==700) {
		cout << "Yes";
			return 0;
	}

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

	cout << "No";


}

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

N=list(map(int,input()))
if N[0] == 7 or N[1] == 7 or N[2] == 7:
    print('Yes')
else:
    print('No')


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N=list(map(int,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 'list' [-Wimplicit-function-declaration]
    1 | N=list(map(int,input()))
      |   ^~~~
main.c:1:8: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | N=list(map(int,input()))
      |        ^~~
main.c:1:12: error: expected expression before 'int'
    1 | N=list(map(int,input()))
      |            ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if N[0] == 7 or N[1] == 7 or N[2] == 7:
      | ^~
main.c:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
Language: C

#include <iostream>
#include <vector>

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

#include<bits/stdc++.h>
using namespace std;
  int main(){
     int a,b,c;
     int a = a % 10;
     a /= 10;
     int b = a % 10;
     a /= 10;
     int c = a;

     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 <bits/stdc++.h>
using namespace std;

int main(){
  int n;cin>>n;bool f=0;
  if(n/100==7) f=1;
  if((n/10)%10==7) f=1;
  if(n%10==7) f=1;

  cout<<(f?"Yes":"No");
}


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

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

Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'No' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:4:11: error: 'x' was not declared in this scope
    4 |   cin >>  x;
      |           ^
a.cc:5:3: error: 'a' was not declared in this scope
    5 |   a = x//100;
      |   ^
a.cc:8:16: error: 'b' was not declared in this scope
    8 |   if(a == 7 or b == 7 or c == 7){
      |                ^
a.cc:8:26: error: 'c' was not declared in this scope
    8 |   if(a == 7 or b == 7 or c == 7){
      |                          ^
Language: C

#include <bits/stdc++.h>

using namespace std;

int main()
{
    string S;
    cin >> S;
    bool po = false;
    for (int i = 0; i < S.length(); i++){
        if (S.at(i) == '7'){
            po =true; 
        }
    }
    if(po == true){
        cout << "Yes";
    }else{
        cout << "No";
    }    
}

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

#include <bits/stdc++.h>
#define FAST ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define ll long long

using namespace std;


int main()
{
    FAST;
    
    int n;
    cin>>n;
    
    bool flag=false;
    
    if(n%10==7)
    {
        flag=true;    
    }
    
    n/=10;
    
    if(n%10==7)
    {
        flag=true;    
    }
    
    n/=10;
    
    if(n%10==7)
    {
        flag=true;    
    }
    
    if(flag)
    {
        cout<<"Yes\n";
    }
    else
    {
        cout<<"No\n";
    }
}

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

#include<iostream>
#define rep(i,n) for(int i=0;i<(int) (n);i++)
using namespace std;
int main(){
  int n,f=0;
  cin>>n;
  rep(i,3){
    if(n%10==7)f=1;
    n%=10;
  }

  if(f==1)cout<<"Yes";
  else cout<<"No";
  return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s,ans("No");
  cin >> s;
  
  if(s.at(0) == "7" || s.at(1) == "7" ||s.at(2) == "7" ||)ans = "Yes";
  
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(0) == "7" || s.at(1) == "7" ||s.at(2) == "7" ||)ans = "Yes";
      |      ~~~~~~~~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(0) == "7" || s.at(1) == "7" ||s.at(2) == "7" ||)ans = "Yes";
      |                        ~~~~~~~~^~~~~~
a.cc:7:49: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(s.at(0) == "7" || s.at(1) == "7" ||s.at(2) == "7" ||)ans = "Yes";
      |                                         ~~~~~~~~^~~~~~
a.cc:7:58: error: expected primary-expression before ')' token
    7 |   if(s.at(0) == "7" || s.at(1) == "7" ||s.at(2) == "7" ||)ans = "Yes";
      |                                                          ^
Language: C

A = int(input())
flag = False
if A%10==7:
  flag = True
elif (A//10)%10==7:
  flag = True
elif (A//100)%10==7:
  flag = True
  
if flag:
  print("Yes")
else:
  print("No")

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

#include<bits/stdc++.h>
#define rep(i, n) for(int i=0; i<n; i++)
#define REP(i, n) for (int i=1; i<n; i++)
using namespace std;
using f=float; using ll=long long; using ld=long double;
using ull=unsigned long long; using vi=vector<int>; using pii=pair<int, int>;

int main() {
    int n, flag_n = 0;
    cin >> n;
    string s = to_string(n);
    rep(i, s.size()) {
        if ( s.at(i) == '7') {
            flag_n = 1;
        }
    }
    if (flag_n) cout << "Yes" << endl;
    else cout << "No" << endl;
//    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.