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

#include <bits/stdc++.h>

using namespace std;
typedef long long ll;
const int INF = 0x3f3f3f3f;
const int maxn = 110000;
int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout << setiosflags(ios::fixed) << setprecision(12);
    string str;
    cin >> str;
    int len = str.size();
    int flag = 0;
    for (int i = 0; i < len; i++)
    {
        if (str[i] == '7')
        {
            flag = 1;
            break;
        }
    }
    if (flag)
        cout << "Yes\n";
    else
        cout << "No\n";
    return 0;
}

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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: expected '}' at end of input
   16 |   return 0;
      |            ^
a.cc:5:11: note: to match this '{'
    5 | int main(){
      |           ^
Language: C

#include<iostream>
using namespace std;
int main(){
	int n;
	cin>>n;
	if(n/100==7){
	    cout<<"Yes";
	    return 0;
    }
    if(n%100/10==7){
    	cout<<"Yes";
    	return 0;
	}
	if(n%10==7){
		cout<<"Yes";
		return 0;
	}
	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(){
	int n;
	cin>>n;
	if(n/100==7){
	    cout<<"Yes";
	    return 0;
    }
    if(n%100/10==7){
    	cout<<"Yes";
    	return 0;
	}
	if(n%10==7){
		cout<<"Yes";
		return 0;
	}
	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: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Lucky7 {

    public static void main(String[] args) throws IOException {
        // write your code here

        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(reader.readLine());

        int flag=0;
        while (n>0)
        {
            int r = n%10;

            if(r==7)
            {
                flag=1;
                break;
            }

            n=n/10;
        }

        if(flag==1)
            System.out.println("YES");
        else
            System.out.println("NO");

    }

}


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

import java.util.Scanner;
public class LuckySeven{
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		boolean check = false;
		while (N != 0) {
			int a = N % 10;
			if (a == 7) {
				System.out.println("YES");
				check = true;
				break;
			}
			N /= 10;
		}
		if (check == false) {
			System.out.println("NO");
		}
	}
}

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

import java.util.Scanner;
public class main {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		boolean check = false;
		while (N != 0) {
			int a = N % 10;
			if (a == 7) {
				System.out.println("YES");
				check = true;
				break;
			}
			N /= 10;
		}
		if (check == false) {
			System.out.println("NO");
		}
	}
}

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

import java.util.Scanner;
public class LuckySeven {
	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		boolean check = false;
		while (N != 0) {
			int a = N % 10;
			if (a == 7) {
				System.out.println("YES");
				check = true;
				break;
			}
			N /= 10;
		}
		if (check == false) {
			System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:2: error: class LuckySeven is public, should be declared in a file named LuckySeven.java
public class LuckySeven {
       ^
1 error
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: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 '7' in n:
      | ^~
main.c:4:11: warning: multi-character character constant [-Wmultichar]
    4 |     print('Yes')
      |           ^~~~~
main.c:6:11: warning: multi-character character constant [-Wmultichar]
    6 |     print('No')
      |           ^~~~
Language: C

#pragma GCC optimize ("Ofast")
#include<bits/stdc++.h>
using namespace std;
inline int my_getchar_unlocked(){
  static char buf[1048576];
  static int s = 1048576;
  static int e = 1048576;
  if(s == e && e == 1048576){
    e = fread_unlocked(buf, 1, 1048576, stdin);
    s = 0;
  }
  if(s == e){
    return EOF;
  }
  return buf[s++];
}
inline void rd(char &c){
  int i;
  for(;;){
    i = my_getchar_unlocked();
    if(i!=' '&&i!='\n'&&i!='\r'&&i!='\t'&&i!=EOF){
      break;
    }
  }
  c = i;
}
inline int rd(char c[]){
  int i;
  int sz = 0;
  for(;;){
    i = my_getchar_unlocked();
    if(i!=' '&&i!='\n'&&i!='\r'&&i!='\t'&&i!=EOF){
      break;
    }
  }
  c[sz++] = i;
  for(;;){
    i = my_getchar_unlocked();
    if(i==' '||i=='\n'||i=='\r'||i=='\t'||i==EOF){
      break;
    }
    c[sz++] = i;
  }
  c[sz]='\0';
  return sz;
}
struct MY_WRITER{
  char buf[1048576];
  int s;
  int e;
  MY_WRITER(){
    s = 0;
    e = 1048576;
  }
  ~MY_WRITER(){
    if(s){
      fwrite_unlocked(buf, 1, s, stdout);
    }
  }
}
;
MY_WRITER MY_WRITER_VAR;
void my_putchar_unlocked(int a){
  if(MY_WRITER_VAR.s == MY_WRITER_VAR.e){
    fwrite_unlocked(MY_WRITER_VAR.buf, 1, MY_WRITER_VAR.s, stdout);
    MY_WRITER_VAR.s = 0;
  }
  MY_WRITER_VAR.buf[MY_WRITER_VAR.s++] = a;
}
inline void wt_L(char a){
  my_putchar_unlocked(a);
}
inline void wt_L(const char c[]){
  int i=0;
  for(i=0;c[i]!='\0';i++){
    my_putchar_unlocked(c[i]);
  }
}
template<class T, class S> int arrCountVal(int N, T A[], S val){
  int i;
  int res = 0;
  for(i=(0);i<(N);i++){
    if(A[i]==val){
      res++;
    }
  }
  return res;
}
int main(){
  char S[5];
  rd(S);
  if(arrCountVal(3,S,'7')){
    wt_L("Yes");
    wt_L('\n');
  }
  else{
    wt_L("No");
    wt_L('\n');
  }
  return 0;
}
// cLay varsion 20200418-1

// --- original code ---
// {
//   char S[5];
//   rd(S);
//   wt(if[arrCountVal(3,S,'7'), "Yes", "No"]);
// }


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>
using namespace std;
int main(){
    int a;
    cin >> a;
    while(a>0){
        if(a%10==7){
            cout << "Yes\n";
            return 0;
        }else{
            a = a/10;
        }
    }
    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

n = input()
s_flg = 0
for i in range(len(n)):
    if n[i] == '7':
        s_flg = 1
if s_flg:
    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 's_flg'
    2 | s_flg = 0
      | ^~~~~
main.c:7:11: warning: multi-character character constant [-Wmultichar]
    7 |     print('Yes')
      |           ^~~~~
main.c:9:11: warning: multi-character character constant [-Wmultichar]
    9 |     print('No')
      |           ^~~~
Language: C

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


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

#include<bits/stdc++.h>
using namespace std;
int main(){
    string s;
    cin >> s;
    if(s[0]=='7' || s[1]=='7' || s[2]=='7'){
        cout << "Yes\n";
    }else{
        cout << "No\n";
    }
}


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 <cmath>
using namespace std;
int main(){
  int N,x=1;
  string S;
  S=to_string(N);
  for(int i=0;i<3;i++){
    if(S[i]=='7'){
      x*=0;
    }
  }
  if(x==0){
    cout<<"Yes";
  }
  else{
    cout<<"No";
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(){
  int N,x=1;
  string S;
  S=to_string(N);
  for(int i=0;i<3;i++){
    if(S[i]=='7'){
      x*=0;
    }
  }
  if(x==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 <bits/stdc++.h>
#include <cmath>
using namespace std;
int main(){
  int N,x=1;
  string S;
  S=to_string(N);
  for(int i=0;i<3;i++){
    if(S[i]=='7'){
      x*=0;
    }
  }
  if(x==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<bits/stdc++.h>
#include<string>
#include<set>
#include<vector>
#include<algorithm>
#include<array>

using namespace std;

int main(){
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

    string n;
    cin>>n;
    for(int i = 0; i < n.size(); i++){
        if(n[i] - '0' == 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 <bits/stdc++.h>
using namespace std;

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


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

#include <algorithm>
#include <cmath>
#include <cstdio>
#include <deque>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <vector>

using namespace std;

typedef long long ll;

#define MOD 1000000007

int main() {
  string s;
  cin >> s;
  bool ok = false;
  if (s[0] == '7') ok = true;
  if (s[1] == '7') ok = true;
  if (s[2] == '7') ok = true;
  cout << (ok ? "Yes" : "No") << endl;
  return 0;
}

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

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

int main(){
  bool ans=false;
  int N;
  cin >> N;
  for(int  i=0; i<3; i++){
    if((N/(int)pow(10,i))%10 ==7) ans = true;
  }
  if(ans) 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,r;
  cin>>n;
  
  while(n>0)
  {
    r=n%10;
    if(r==7)
    {  cout<<"Yes\n";
      break;
    }
    n=n/10;
  }
  if(r!=7)
    cout<<"No\n";
  return 0;
}

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

#include <bits/stdc++.h>
#define rep(i,n) for(ll i=0;i<n;i++)
#define rep1(i,n) for(ll i=1;i<=n;i++)
#define repk(i,m,n) for(ll i=m;i<n;i++)
#define IOS ios::sync_with_stdio(false);cin.tie(0);
#define F first
#define S second
typedef long long ll;
typedef long double ld;
using namespace std;
const int MOD1=1e9+7;
const int MOD2=998244353;
const int INF=2*1e9;
int main()
{
    string s;
    cin>>s;
    rep(i,s.size())
    {
        if(s[i]=='7')
        {
            cout<<"Yes";
            return 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 <cstdio>
#include <string>
 
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: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C

#include <iostream>
 
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: 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 <iostream.h>
#include <string>
using namespace std;

int main()
{
    string s;
    cin >> s;
    if(s.find("7")!=NULL)
        cout << "Yes";
    else
        cout << "No";

    return 0;
}


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

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

int main()
{
    string s;
    cin >> s;
    if(s.find("7")!=NULL)
        cout << "Yes";
    else
        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>
using namespace std;
using Graph = vector<vector<int>>;
using ll = long long;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(), v.end()

int main(){
  ll n;
  cin >> n;
  ll number1 = n % 10;
  ll number100 = n / 100;
  ll number10 = n / 10 % 10;
  if(number1==7||number10==7||number100==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>
typedef long long ll;
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	string s;
	cin>>s;
	for(int i=0;i<s.length();i++){
		if(s.substr(i,1)=="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 <vector>
#include <map>
#include <algorithm>
#include <string>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;

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

    rep(i, 3) {
        if (S.at(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>
#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 N;
  cin >> N;
  int flag = 0;
  rep(i,3){
    if(N.at(i)=='7') flag = 1; 
  }
  if(flag) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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

#include<stdio.h>
#include<string.h>
int main(void){
  char str[2000];
  char *adr1,*adr2;
  scanf("%s",str);
  adr1 = strchr(str,(int)'7');
  if(adr1 == null){
printf("No");
  }else{
    printf("Yes");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:14: error: 'null' undeclared (first use in this function)
    8 |   if(adr1 == null){
      |              ^~~~
main.c:8:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char str[2000];
  char *adr1,*adr2;
  scanf("%s",str);
  adr1 = strchr(str,(int)'7');
  if(adr1 == 7){
    printf("Yes");
  }else if(adr1 == null){
printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:11: warning: comparison between pointer and integer
    8 |   if(adr1 == 7){
      |           ^~
main.c:10:20: error: 'null' undeclared (first use in this function)
   10 |   }else if(adr1 == null){
      |                    ^~~~
main.c:10:20: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i = 0; i < (n); i++)
#define INF 2 << 29
#define MOD 1000000007
#define Yes(f) puts((f)? "Yes" : "No")
#define YES(f) puts((f)? "YES" : "NO")
int gcd(int a, int b) {
	if (b != 0)return gcd(b, a % b);
	return a;
}
int lcm(int a, int b) {
	return a / gcd(a, b) * b;
}

using Graph = vector<vector<int>>;

int main(){
	int n; cin >> n;
	Yes(n / 100 == 7 || n % 10 == 7 || n % 100 / 10 == 7);
}

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 input;
  	cin>>input;
  	for(int i=0; i<input.length(); i++){
    	if(input[i]=='7') {
          cout<<"Yes";
          break;
        }
      	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>
#define endl '\n'

using namespace std;

string s;

int main() {
    ios_base::sync_with_stdio(0);

    cin >> s;

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

    cout << "No" << endl;

    return 0;
}


Compiler output:
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 S ;
  cin >> S;

  if(S.find("7") != string::npos)
    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.find("7") != string::npos)
    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.find("7") != string::npos)
    cout << "yes" << endl;
  else cout"no" << endl;
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: expected ';' before string constant
   12 |   else cout"no" << endl;
      |            ^~~~
      |            ;
Language: C

#include<iostream>
#include<string>
#include<regex>

using namespace std;

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

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

#include<iostream>
#include<string>
#include<regex>

using namespace std;

int main()
{
    string n;
    int a=0;
    cin >> n;
    for(int i = 0;i < n.size();++i){
        if(n[i] == '7'){
            cout << "Yes";
            a=1;
        }
    }
    if(a == 0) cout << "No";
    cout << 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>
using namespace std;
typedef long long       ll;
typedef pair<int,int>   ii;
typedef vector<int>     vi;
typedef vector<ii>      vii;
typedef set<int>        si;
typedef set<ii>         sii;

#define all(x) x.begin(), x.end()
#define clr(x,v) memset(x,v,sizeof x)
#define pb push_back
#define x first
#define y second
#define endl "\n"
#define MOD int(1e9+7)
#define N 200123
int n;
string t;
int main(){
    ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
    cin >> t;
    if(t[0]=='7'||t[1]=='7'||t[2]=='7')cout<<"YES"<<endl;
    else cout << "NO" << endl;
}


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

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

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

#include <iostream>
using namespace std;

int s[1000];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'i' was not declared in this scope
   15 |         if (s[i] == 7)
      |               ^
Language: C++

#include <iostream>
using namespace std;

int s[1000];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:9: error: expected ',' or ';' before 'for'
   11 |         for (int i = 0; i < k; ++i)
      |         ^~~
a.cc:11:25: error: 'i' was not declared in this scope
   11 |         for (int i = 0; i < k; ++i)
      |                         ^
Language: C

1 int main(){
2 char s[4];
3 scanf("%s",s);
4 if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes");
5 else puts("No");
6 }

Compiler output:
main.c:1:1: error: expected identifier or '(' before numeric constant
    1 | 1 int main(){
      | ^
Language: C++

#include <iostream>
using namespace std;

int s[1000];

int main()
{
	string n;
	cin >> n;
	for (int i = 0; i < 3; ++i)
		cin >> s[i];
	for (int i = 0; i < 3; ++i)
	{
		if (s[i] == 7)
			cout << "Yes";
		else
			cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:7:1: note: to match this '{'
    7 | {
      | ^
Language: C

N=int(input())
N1=N//100
N2=(N//10)%10
N3=N%10
if N1==7 or N2==7 or N3==7:
    print("YES")
else:
    print("NO")

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

#include <bits/stdc++.h>

using namespace std;

int main() {

        int N;

        cin >> N;

        int hundred = N / 100;
        int ten = (N - hundred * 100) / 10;
        int one = (N - hundred*100 - ten*10);

        if(hundred == 7 || ten == 7 || one == 7) {
                cout << "Yes" << endl;
        } else {
                cout << "No" << endl;
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:19:10: error: expected '}' at end of input
   19 |         }
      |          ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C

#include <bits/stdc++.h>

using namespace std;

int main() {

        int N;

        cin >> N;

        int hundred = N / 100;
        int ten = (N - hundred * 100) / 10;
        int one = (N - hundred*100 - ten*10);

        if(hundred == 7 || ten == 7 || one == 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;

	int hundred = N / 100;
	int ten = (N - hundred * 100) / 10;
	int one = (N - hundred*100 - ten*10);

	if(hundred == 7 || ten == 7 || one == 7) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
}

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

#include <iostream>

using namespace std;

int main() {

	int N;

	cin >> N;

	int hundred = N / 100;
	int ten = (N - hundred * 100) / 10;
	int one = (N - hundred*100 - ten*10);

	if(hundred == 7 || ten == 7 || one == 7) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
}

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

#include <iostream>
using namespace std;
int main(){
int n;
cin>>n;
if(n%10==7||n%100==7||n%1000==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;
if(n%10==7||n%100==7||n%1000)
    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>

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

Compiler output:
a.cc:8:18: warning: multi-character character constant [-Wmultichar]
    8 |     std::cout << 'Yes' << std::endl;
      |                  ^~~~~
a.cc:10:18: warning: multi-character character constant [-Wmultichar]
   10 |     std::cout << 'No' << std::endl;
      |                  ^~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'string' was not declared in this scope
    5 |   string s;
      |   ^~~~~~
a.cc:5:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:6:13: error: 's' was not declared in this scope
    6 |   std::cin>>s;
      |             ^
Language: C

#include <iostream>

using namespace std;

int main()
{
    int a,b,c,aux;
    cin>>a>>b>>c;

    aux=a;
    a=b;
    b=aux;

    aux=a;
    a=c;
    c=aux;

    cout<<a<<" "<<b<<" "<<c<<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>
#define ll long long
#define fast ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
using namespace std;
 
int main()
{
	int n, j = 0;
    string s;
    cin >> s;
    n = s.length();
    for (int i = 0; i < n; i++)
    {
    	if (s[i] == '7')
    	{
    		cout << "Yes";
    		j = 1;
    		break;
    	}
    }

    if (j == 0)
    {
    	cout << "No";
    }

	return 0;
}

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

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

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

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

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

int binpow(int,int);
void dfs( vector< vector<int> >&, int , vector<int>& );
void bfs( vector< vector<int> >&, int , vector<int>& );

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

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

}

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

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

int binpow(int a, int b) {
    int res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}

void dfs ( vector< vector<int> > &v , int x , vector<int> &vis )
{
    vis[x] = 1;

    rep(i,0,v[x].size())
    {
        if( vis[v[x][i]] == 0 )
        {
            dfs(v,v[x][i],vis);
        }
    }
}

void bfs( vector< vector<int> > &v , int x , vector<int> &vis )
{
    queue<int> q;
    q.push(x);

    while( !q.empty() )
    {
        int p = q.front();
        q.pop();

        rep(i,0,v[p].size())
        {
            if ( vis[v[p][i]] == 0 )
            {
                vis[v[p][i]] = 1;
                q.push(v[p][i]);
            }
        }
    }
}

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 <iomanip>
#include <math.h>
#include <algorithm>
#include <string>

using namespace std;
#define ll long long
#define F first
#define S second
#define PB push_back
#define MP make_pair


int main()
{
    int c=0 , w=0;
  string n ; cin>>n ;

  for(int i =0 ; i<n.length();i++)
   {

       if(n[i]=='7')
            c++;
        else
            w++;

   }cout<<((c==1)?"Yes":"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 <iomanip>
#include <math.h>
#include <algorithm>
#include <string>

using namespace std;
#define ll long long
#define F first
#define S second
#define PB push_back
#define MP make_pair


int main()
{
    int c=0 , w=0;
  string n ; cin>>n ;

  for(int i =0 ; i<n.length();i++)
   {

       if(n[i]=='7')
            c++;
        else
            w++;

   }cout<<((c==1)?"YES":"NO");



}


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;
    bool sw=false;
    while(n!=0){
        if(n%10==7){
            sw=true;
            break;
        }
        n=n/10;
    }
    if(sw)
        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;
#define ll long long int 
#define pb push_back
int main()
{
    ll n;
    cin>>n;
    while(n>0)
    {
        if(n%10==7)
        {
            cout<<"Yes";
            return 0;
        }
        n/=10;
    }
    cout<<"No";
    return 0;
}

Compiler output:
main.c:1: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;
 
void __print(int x) {cout << x;}
void __print(long x) {cout << x;}
void __print(long long x) {cout << x;}
void __print(unsigned x) {cout << x;}
void __print(unsigned long x) {cout << x;}
void __print(unsigned long long x) {cout << x;}
void __print(float x) {cout << x;}
void __print(double x) {cout << x;}
void __print(long double x) {cout << x;}
void __print(char x) {cout << '\'' << x << '\'';}
void __print(const char *x) {cout << '\"' << x << '\"';}
void __print(const string &x) {cout << '\"' << x << '\"';}
void __print(bool x) {cout << (x ? "true" : "false");}

template<typename T, typename V>
void __print(const pair<T, V> &x) {cout << '{'; __print(x.first); cout << ','; __print(x.second); cout << '}';}
template<typename T>
void __print(const T &x) {int f = 0; cout << '{'; for (auto &i: x) cout << (f++ ? "," : ""), __print(i); cout << "}";}
void _print() {cout << "]\n";}
template <typename T, typename... V>
void _print(T t, V... v) {__print(t); if (sizeof...(v)) cout << ", "; _print(v...);}
#ifndef ONLINE_JUDGE
#define debug(x...) cout << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
 
#define fi first
#define se second
#define FIO {ios::sync_with_stdio(0);cin.tie(nullptr);cout.tie(nullptr);}
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define forn(i, n) for (int i = 0; i < (int)(n); ++i)
#define for1(i, n) for (int i = 1; i <= (int)(n); ++i)
#define ford(i, n) for (int i = (int)(n) - 1; i >= 0; --i)
#define all(x) (x).begin(), (x).end()
#define pow10(n) stoll("1"+string(n,'0'))
//fill(all(arr),1)
//if(map.count(key)){}
//bitset<20>(n);
//int mini=min({a,b,c,d,e});
 
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<pii> vpi;
typedef vector<vi> vvi;
typedef long long ll;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef long double ld;

int main(){
    FIO
    string s;
    cin>>s;
    if(s[0]=='7'||s[1]=='7'||s[2]=='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>
#include <random>
#include <chrono>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
#define ll long long int
#define ull unsigned ll
#define pb push_back
#define popb pop_back
#define mt make_tuple
#define eb emplace_back
#define mp make_pair
#define ff first
#define ss second
#define pii pair <int,int>
#define piii pair <pii,int>
#define piiii pair <pii,pii>
#define plll pair <pair <ll, ll>, ll>
#define rep0(i,n) for(ll i=0;i<(ll)n;i++)
#define rep1(i,n) for(ll i=1;i<=(ll)n;i++)
#define rep(i,x,y) for(ll i=(ll)x;i<=(ll)y;i++)
#define reprev(i,n) for(ll i=(ll)n;i>=0;i--)
#define all(c) c.begin(),c.end()
#define print(a) rep0(i,a.size()) cout << a[i] << " "
#define hi() cout << "\nHello, I am error. Can you find me? :):):)\n"
#define Randomize mt19937 rng(chrono::steady_clock::now().time_since_eppoch().count())
 
using namespace __gnu_pbds;
using namespace std;
using ordered_set =  tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update>;

const int mod = 1e9+7;
const long double pi = acos(-1);

ll power(ll x, ll y){
	x %= mod;
	ll ans = 1;
	while(y){
		if(y&1) ans = (ans*x)%mod;
		y /= 2;
		x = (x*x)%mod;
	}
	return ans;
}

void solve(){

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

	return;
}

int main(){

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

	int TC = 1,t = 0;
	// cin >> TC;
	while(t++ < TC){
		// cout << "Case #" << t << ": ";
		solve();
		// cout << "\n";
	}

	cerr << "Time : " << 1000 * ((double)clock()) / (double)CLOCKS_PER_SEC << "ms\n";

	return 0; 
}

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

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

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


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

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

typedef long long ll;
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<pair<int, int> > vpii;
typedef vector<pair<ll, ll> > vpll;

#define pll pair<ll,ll>
#define pii pair<int, int>
#define F first
#define S second
#define rep(i,n) for (int i = 0; i < n; ++i) 
#define REP(i,k,n) for (int i = k; i <= n; ++i) 
#define REPR(i,k,n) for (int i = k; i >= n; --i)
#define INF (int)1e9
#define pb push_back
#define watch(x) cout << (#x) << " is " << (x) << endl
#define sz(a) int((a).size())
#define endl '\n' // remove for interactive

const ll mod = 1e9 + 7;
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}


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

int main()
{
    // clock_t start, end;
    // start = clock();
    ios_base::sync_with_stdio(0); //cant use scanf, printf
    cin.tie(0);cout.tie(0); // no longer auto flush cout before each cin, remove for interactive
    int t = 1;
    // cin>>t;
    while(t-- )
    {
        solve();
        
    }
    // end = clock();
    // double time_taken = double(end - start) / double(CLOCKS_PER_SEC); 
    // watch(time_taken);
    return 0;
    
}



/*before sub
TEST: 0, 1, equal, -ve, bounds(random and ez)
ERR/WA: loop vars, out of bounds, endl, finish taking inputs, large doubles, larger INF, corr mod, t
RE: double dec, integer overflow(ll or 1LL mult)
*/





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 name1space std;
int main()
{
    int n,a,b,c;
    cin>>n;
    a=n%10;
    n=n/10;
    b=n%10;
    n=n/10;
    c=n%10;
    n=n/10;
    if((a==7||b==7)||c==7)
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;

}


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'name1space'
    2 | using name1space std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:5: 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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:14:22: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         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:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         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:16:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   16 |         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>

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

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

#include<iostream>
#include<algorithm>
#include<math.h>
#include<cstring>
#include<vector>

using namespace std;

#define long long long
#define ft(i, a, b) for (int i = (long)a ; i <= (long)b ; i++)
#define fd(i, a, b) for (int i = (long)a ; i >= (long)b ; i--)

const int MAXN = 1e5 + 5;
const long oo = 1e15;

string s;

void Solve() {
    if (s[0] == '7' || s[1] == '7' || s[2] == '7') cout << "YES";
    else cout << "NO";
}

void FastInput() {
    ios_base::sync_with_stdio(NULL);
    cin.tie(NULL);
    cout.tie(NULL);
    //freopen(".inp", "r", stdin);
    //freopen(".out", "w", stdout);
}

void Input() {
    cin >> s;
}

int main() {
    FastInput();
    Input();
    Solve();
}

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(){
char c[4];
  cin >> c;
  if(c[0]=='7' || c[1]=='7' || c[2]=='7')
    cout << "Yes";
  else cout << "No";
}

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

#include <iostream>
#include <cstring>
#include <algorithm>
#include <functional>
#include <bits/stdc++.h>
#include <cmath>
using namespace std;
 
int main () {
  int n;
  cin >> n;
  if (n/100 == 7 || (n%100)/10==7 || n%10==7){
    cout << "Yes";
  }else{
    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

n = input()
if n.count("7") > 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 'if'
    2 | if n.count("7") > 0:
      | ^~
Language: C++

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

int main (void){
    long long a=0;
    long long ans=0;
    cin>>a;
    for(long long i=0;i<a;i++){
        if(i%3==0&&i%5==0){}
        else if(i%3!=0&&i%5!=0){ans+=i}
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:39: error: expected ';' before '}' token
   12 |         else if(i%3!=0&&i%5!=0){ans+=i}
      |                                       ^
      |                                       ;
Language: C

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

int main() {
    // 100要素の配列で初期化
    vector<int> vec(2);

    // 100個の入力を受け取る
    for (int i = 0; i < 1; i++) {
        cin >> vec.at(i);
    }
    
        if (vec.at(0)||vec.at(1)||vec.at(2))
    {
            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.