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

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

ll N, K, T, W, H, M, C;

const int MAX = 5100000;
const int MOD = 1e9 + 7;

const double PI=3.14159265358979323846;


long long fac[MAX], finv[MAX], inv[MAX];

vector<double> cx, cy, c;
 ll MM = 1e12;

void COMinit() {
    fac[0] = fac[1] = 1;
    finv[0] = finv[1] = 1;
    inv[1] = 1;
    for (int i = 2; i < MAX; i++){
        fac[i] = fac[i - 1] * i % MOD;
        inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
        finv[i] = finv[i - 1] * inv[i] % MOD;
    }
}

long long COM(int n, int k){
    if (n < k) return 0;
    if (n < 0 || k < 0) return 0;
    return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}

std::vector<int> Eratosthenes(int n ){
    std::vector<bool> is_prime( n + 1 );
    for( int i = 0; i <= n; i++ ) is_prime[ i ] = true;
    std::vector<int> P;
    for( int i = 2; i <= n; i++ ){
        if( is_prime[ i ] ){
            for( int j = 2 * i; j <= n; j += i ){
                is_prime[ j ] = false;
            }
            P.emplace_back( i );
        }
    }
    return P;
}

ll gcd(ll a, ll b) {
  if(a < b) return gcd(b, a);
  ll r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

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



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

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); i++)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define pb push_back
using namespace std;
typedef long long ll;
typedef pair<ll,ll> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef tuple<int,int,int> T;
typedef vector<P> vp;
typedef vector<T> vt;

  int main(void) {
    string N;
    cin >> N;
    rep(i,n){
      if(s[i]=='7'){
        cout << "Yes" << endl;
      }
      else{
        cout << "No" << endl;
      }
    }
  }
}


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

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

    return 0;
}


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

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

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

#include <iostream>
 
using namespace std;
 
int N;
 
 
int main()
{
 
	cin >> N;
 
	bool ans = false;
 
	int n = N;
	for (int i = 0; i < 3 && !ans; i++) {
		int a = n % 10;
		if (a == 7) { ans = true; }
		n /= 10;
	}
 
 
 
	cout << (ans?"Yes":"No") << endl;
 
	return 0;
}

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

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

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

#include<iostream>

using namespace std;
int main()
{
    int N;
    int t1,t2;
    bool seven;
    seven = false;
    
    

    cin >> N;
    t1 = N/10;
    t2 = N/100;
    
    if((N % 10) == 7){
        seven = true;
    }else if((t1 % 10) == 7){
        seven = true;
    }else if((t2 % 10) == 7){
        seven = true;
    }

    if(seven == true){
        printf("Yes\n");
    }else{
        printf("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 "stdc++.h"
using namespace std;

#define get(a) scanf("%lld", &a);
#define print(a) printf("%lld",a)
#define println(a) printf("%lld\n",a)

#define do(a) for(long long i = 0; i < a; i++)
#define loop() for(;;) 
#define done return 0
string s;
long long n;

int main() {
    cin >> s;
    n = s.length();
    do(n) {
        if (s[i]=='7') {
            printf("Yes\n");
            done;
        }
    }
    printf("No\n");
    done;
}

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

#include <iostream>
#include <string>

using namespace std;

int main(){
  int N;
  cin >> N;
  int a, b, c;
  int a1, b1, c1;

  a = N/10;
  a1 = N%10;
  b = a/10;
  b1 = a%10;
  c = b/10;
  c1 = b%10;

  string ans = "No";

  if(a1==7 || b1 == 7 || c1 == 7) ans = "Yes";

  cout << ans << endl;
    
}

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

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility> // pair, make_pair
#include <tuple> // tuple, make_tuple
#include <cstdint> // int64_t, int*_t
#include <cstdio> // printf
#include <map> // map
#include <queue> // queue, priority_queue
#include <set> // set
#include <stack> // stack
#include <deque> // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset> // bitset
#include <cctype> // isupper, islower, isdigit, toupper, tolower

using namespace std;

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

  bool state = false;
  if(N%10 == 7) state = true;
  if((N%100)/10 == 7) state = true;
  if(N/100 = 7) state = true;

  if(state){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:7: error: lvalue required as left operand of assignment
   28 |   if(N/100 = 7) state = true;
      |      ~^~~~
Language: C

#include <iostream>
#include <string>
#define rep(i,n) for(int i=0;i<n;i++)
#define FOR(i,start,end) for(int i=start;i<=end;i++)
const int INF = 1001001001;
using namespace std;
typedef long long ll;

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

  rep(i,3){
    if(s[i]=='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() {
  vector<char> a(3);
  int f=0;
  for(int i=0;i<3;i++){
    cin >> a.at(i);
    if(a.at(i)=='7')
      f=1;
  }
  if(f=0){
    cout << "No" << endl;
  }else{
    cout << "Yes" << endl;
  }
  
}


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

n = list(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(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 'list' [-Wimplicit-function-declaration]
    1 | n = list(input())
      |     ^~~~
main.c:1:10: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | n = list(input())
      |          ^~~~~
main.c:1:5: error: initializer element is not constant
    1 | n = list(input())
      |     ^~~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if n[0] == "7" or n[1] == "7" or n[2] == "7":
      | ^~
Language: C

#include <iostream>
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
    int x;
	cin >> x;
	if(x % 10 == 7 || x / 100 == 7 || x / 10 % 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++

#include <iostream>
#include <string>
#include <stdio.h>
using namespace std;
 
 
int main(){
    string n;
	cin >> n;
	if (s.find("7") != std::string::npos) {
          cout << "Yes" << endl;  
	}else{
 
        cout << "No" << 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.find("7") != std::string::npos) {
      |             ^
Language: C++

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

int main() {
  string s;
  int count=0;
  rep(i,3){
  if(s.at(i)=='7'){count++;}
  }
  if(count>=1){cout<<"Yes"<<endl;}
  else{cout<<"No"<<endl;}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   rep(i,3){
      |       ^
a.cc:7:3: error: 'rep' was not declared in this scope
    7 |   rep(i,3){
      |   ^~~
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') cout << "No" << endl;
  else cout << "Yes" << endl;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main(){
  string n,ans;
  cin >> n;
  ans="No";
  for(int i=0;i<3;i++){
    if(n[i]=="7"){
      ans="Yes";
    }
  }
  cout << ans;
}

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

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

Compiler output:
a.cc:1:25: warning: extra tokens at end of #include directive
    1 | #include<<bits/stdc++.h>>
      |                         ^
a.cc: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;
  long long sum = 0;
  for(int i = 0; i < N; i++) {
    if(i % 3 == 0||i % 5 == 0) {
      continue;
    }
    sum += i;
  }
  cout << sum << 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 <stdio.h>

int main();

{

  int N[2];

  scanf("%d",&N);

  

  if(N[0]==7||N[1]==7||N[2]==7){

    printf("Yes");

  }

  else{

    printf("No");

  }

  return 0;

}

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

#include <iostream>
#include <vector>
#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:
a.cc: In function 'int main()':
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7") y=true;
a.cc:12:21: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7") y=true;
a.cc:12:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(s[0]=="7"||s[1]=="7"||s[2]=="7") y=true;
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
  string s;
  cin>>s;
  string sr="(.*)7(.*)";
  if(regex_match(s, regex(sr)))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>
#define rep(i, n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;
 
int main() {
  string s;
  cin >> s;
  if(s[0] == '7' || s[1] == '7' || s[2] == '7'){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
 
  return 0;
}

Compiler output:
main.c:1: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;
 while(n>0)
 {
   if(n%10==7)
   {
     cout<<"Yes"<<endl;
     break;}
   else
   {
     n/=10;
 }
   cout<<"No"<<endl;
  return 0;
}

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

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

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

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

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

int main() {
  int n;
  cin >> n;
  
  int tmp = 0;
  if (n / 100 == 7) tmp = 1;
  n %= 100;
  if (n / 10 == 7) tmp = 1;
  n %= 10;
  if (n == 7) tmp = 1;
  
  if (tmp == 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++

//shara's here
//SPEEEEEEEEEED IS KEEEEEEEEEEY
//REEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEEAD
#include <bits/stdc++.h>
using namespace std;
typedef string s;
typedef long long ll;
typedef long double ld;
#if !defined(ONLINE_JUDGE)
#include "C:\debug.hpp"
#define debug(x...) cerr << "[" << #x << "] = ["; _print(x)
#else
#define debug(x...)
#endif
#define pb push_back
#define ins insert
#define vl vector<ll>
#define speed ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0)
int main(){
    s ss;
    cin >> ss;
    if(ss[0]=='7'||ss[1]=='7'||ss[2]=='7'{
        cout << "Yes" << endl;
    }
    else cout << "No" << endl;

































return 0;}
/*
███████████████████████████████████████████████████
███████████████████████████████████████████████████
██████████████████████████████████▀████████████████
██████████████████████████████████░▀███████████████
██████████████████████████████▌███░░░▀▀████████████
██▀████████████████████▐██████░▐██░░░░░░▀▀█████████
██░████████████████████▐█████▌░██▌▄░░░░▄▄░▄████▀███
█▌░███████████████████▀░█████░░░█░░░▄████░░███▀▐███
█▌░▐██████████████████░░████▌░░░▀░░▀███▀▀░▐███▄████
██░▀██████████████▌▐█▐▄▄████▌░░░░░░░░░░░░░▌████████
███░███████████████▀░▄▄██▀█▐░░░░░░░░░░░░░░▐████████
███▄░██████████████▄░░░░░░▀▀▀░░░░░░░░░░░░░█▐███████
████▄░██████████████████▄▄▄▄▄▄▐▄░░░░░░░░░░░████████
█████▄█████████████████▀▀▀▀▀▀░░░░░░░░░░░░░░████████
████████████████████████▄░░░░░░░░░░░░░░░▄░░████████
██████████████████████████▄▄▄░░░░░░░░░▄█░▄█████████
████████████████████████████████▄░░░░██▄███▀░░▀████
█████████████████████████████▀█████▄███▀▀▀░░▄▄░████
████████████████████████████▀░░▀░░▀▀░░░░▄▄▄██▀░░▀▀█
███████████████████████████▌░░░░░░░░░░░███████░░░▄█
███████████████▄░▀████████▀░░░░░░▀░░░░███████▌░░░██
███▄▄████████████▄░▀██████▄░░░░░█░░░░████████░░░▀▀
░▀█████████████████▄░▀█████░░░░██░░░░▀██████░░░░░▄█
▐█▄▀█████████████████▄░▀████░░░██▌░░░▐████▀░░░░▄███
▐███▄▀▀█████████████████▄░▀▀░░░░▀██▌▄█▀▀░░░▄▄██████
▀▀▀▀▀░░░▀▀▀▀▀░░░▀▀▀▀▀▀▀▀▀▀▀░░░░░░░▀▀░░░░░░▀▀▀▀▀▀▀▀▀
*/


Compiler output:
a.cc:10:10: fatal error: C:\debug.hpp: No such file or directory
   10 | #include "C:\debug.hpp"
      |          ^~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
	int n;
  	int isSeven = 0;
  	cin >> n;
  	
  	if (n / 100 % 7 == 0) isSeven = 1;
  	if (n - (n / 100 * 100) / 10) == 7) isSeven  = 1;
  	if (n / 100 == 7) isSeven = 1;
  
    if (isSeven == 1)  cout << "Yes" << endl;
  	else cout << "Yes" endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:39: error: expected primary-expression before '==' token
   10 |         if (n - (n / 100 * 100) / 10) == 7) isSeven  = 1;
      |                                       ^~
a.cc:14:27: error: expected ';' before 'endl'
   14 |         else cout << "Yes" endl;
      |                           ^~~~~
      |                           ;
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;
  }
}

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;
	for (int i=0;i<s.size();i++)
		if (s[i]=='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: C

n = eval(input("enter a number: "))
sum = 0
for i in range(n):
    rem = n%10
    sum +=rem
    n = n//10
print(sum)

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

#include <iostream>
using namespace std;

int main () {

    int N;
    cin>>N;

    int A=N/100;
    int O=N%100;
    int B=O/10;
    int P=O%10;

    if (A==7||B==7||O==7||P==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>
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep1(i, n) for (int i = 1; i < (n); i++)
#define erep(i, n) for (int i = 0; i <= (n); i++)
#define erep1(i, n) for (int i = 1; i <= (n); i++)
using namespace std;
using ll = long long;


int main() {
    int N;
    int a[3] = {0};
    cin >> N;
    a[0] = N / 100;
    a[1] = (N - a[0] * 100) / 10;
    a[2] = (N - a[0] * 100 - a[1] * 10);
    rep(i,3){
        if(a[i]==7){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

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

#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (n); ++i)
#define all(x) (x).begin(), (x).end()
using namespace std;
using VI = vector<int>;
using VB = vector<bool>;
using Graph = vector<vector<int>>;
using ll = long long;
using P = pair<int, int>;

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

  int n;
  cin >> n;

  vector<int> a;
  int value = n;

  int first = value % 10;
  value /= 10;

  int second = value % 10;
  value /= 10;
  int third = value % 10;

  if (first == 7 || second == 7 || third == 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 <cmath>

using namespace std;

int digit_length(int num){
    int count = 0;
    while(num){
        num = num / 10;
        ++count;
    }
    return count;
}

int main(){
    int n;
    cin >> n;
    bool flag = false;
    for(int i = 0;i < digit_length(n);i++){
        if((n / int(pow(10, i)) % 10) == 7){
            flag = true;
        }
    }
    if(flag == true){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>
#include <vector>
#include <algorithm>
#include <cfenv>
#include <cmath>
#include <cstdlib>
using namespace std;
#define rep(i,n) for(int i = 0;i < n;i++)
#define INF 0x3f //plus infinite

typedef struct item{
  string name;
  int number;
  int money;
}item;

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

/*文字列の辞書順について
 *C++の順序では'0'～'9'→'A'～'Z'→'a'～'z'の順に
 *                       なっていることに注意しましょう。
 */

/*行単位での入力
 * getline(cin,文字列変数);
 */


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

#include<stdio.h>
#include <math.h>
#include <stdlib.h>


main(void)
{
  int N,a,b,c;
  scanf("%d",&N);
  
  a=N/100;
  
  b=N/10-a*10;
  
  c=N-a*100-b*10;
  
  if(a==7 || b==7 || c==7)
  {
    printf("Yes")
  }
  
  else
  {
    print("No")
  }
  

  
  return 0;
}


Compiler output:
main.c:6:1: error: return type defaults to 'int' [-Wimplicit-int]
    6 | main(void)
      | ^~~~
main.c: In function 'main':
main.c:19:18: error: expected ';' before '}' token
   19 |     printf("Yes")
      |                  ^
      |                  ;
   20 |   }
      |   ~               
main.c:24:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   24 |     print("No")
      |     ^~~~~
      |     lrint
main.c:24:16: error: expected ';' before '}' token
   24 |     print("No")
      |                ^
      |                ;
   25 |   }
      |   ~
Language: C

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    int N;
    cin>>N;
    string s = to_string(N);
    for(int i=0;i<3;i++){
        if(s[i]=='7'){
            cout<<"Yes"<<endl;
            break;
        }
        if(i==3-1){
            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 N;
  cin >> N;

  if (N.at(0) == 7) {
    cout << "Yes" << endl;
  }
  else if (N.at(1) == 7) {
    cout << "Yes" << endl;
  }
  else if (N.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++

#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:
a.cc: In function 'int main()':
a.cc:5:10: error: redeclaration of 'int a'
    5 |      int a = a % 10;
      |          ^
a.cc:4:10: note: 'int a' previously declared here
    4 |      int a,b,c;
      |          ^
a.cc:7:10: error: redeclaration of 'int b'
    7 |      int b = a % 10;
      |          ^
a.cc:4:12: note: 'int b' previously declared here
    4 |      int a,b,c;
      |            ^
a.cc:9:10: error: redeclaration of 'int c'
    9 |      int c = a;
      |          ^
a.cc:4:14: note: 'int c' previously declared here
    4 |      int a,b,c;
      |              ^
Language: C

#include<bits/stdc++.h>

using namespace std;

using ll = long long;

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

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


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

#include <stdio.h>

int main(void)
{
	int N;

	scanf("%d", &N);

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

	return 0;
}

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

#include<stdio.h>
int main()
{
  int i,n;
  scanf("%d",&n);
while(n!=0)
{ i=n%10;
 if(i==7)
 {c=1;
  break;
 }
}
  if(c==1)
    printf("Yes");
  else
    printf("No");
return 0;
}
   
    
     

Compiler output:
main.c: In function 'main':
main.c:9:3: error: 'c' undeclared (first use in this function)
    9 |  {c=1;
      |   ^
main.c:9:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <map>
#include <cmath>
#include <bitset>
#include <iomanip>

using namespace std;

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

    bool contanins7 = false;
    for (int i = 0; i < 3; ++i) {
        if (N[i] == '7') {
            contanins7 = true;
            break;
        }
    }
    cout << (contanins7 ? "Yes" : "No") << endl;
    //cout << setprecision(15) << 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>
#include<algorithm>
#include<map>
using namespace std;
int main()
{
	int n; 
	bool fl = false;
	cin >>n;
	char str[3];
	itoa(n,str,10);
	for(int i=0;i<3;i++) if(str[i]=='7') fl = true;
	if(fl)cout<<"Yes"<<endl;
	else cout<<"No"<<endl ;
	return 0;
} 

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

import java.util.*;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
      	if(sc.contains("7")){
          System.out.println("Yes");
        }else{
          System.out.println("No");
        }
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
      	if(sc.contains("7")){
      	     ^
  symbol:   method contains(String)
  location: variable sc of type Scanner
1 error
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;
    if (n[0] == '7' || n[1] == '7' || n[2] == '7')
    {
        cout << "Yes" << endl;
        return 0;
    }
    else
    {
        cout << "No" << endl;
        return 0;
    }
}

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

#include <iostream>

using namespace std;

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

    int check =0;

    for(int i=0;i<3;i++){
        int a =N[i];
        if(a==55){check=1;}
    }

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

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

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

int main(){
    int B=0;
    string A;
    cin >> A;
    if(A[1]=='7'){
        B=1;
    }else if(A[2]=='7'){
        B=1;
    }else if(A[0]=='7'){
        B=1;
    }
    if(B==1){
        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() {
  string S,a="No";cin>>S;
  if(S[0]=='7'||S[1]=='7'||S[2]=='7')a="Yes";
  cout<<a<<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;


/// File input & output /////
#define fRead(x)        freopen("x.txt","r",stdin)
#define fWrite(x)       freopen ("x.txt","w",stdout)

#define mt              make_tuple
#define ld              long double
#define ll              long long
#define ull             unsigned long long
#define ff              first
#define ss              second
#define pb              push_back
#define INF             2e16
#define PI              acos(-1.0)
#define mp              make_pair
#define pii             pair<int,int>
#define pll             pair<LL,LL>


#define min3(a,b,c)     min(a,min(b,c))
#define max3(a,b,c)     max(a,max(b,c))
#define min4(a,b,c,d)   min(a,min(b,min(c,d)))
#define max4(a,b,c,d)   max(a,max(b,max(c,d)))
#define SQR(a)          ((a)*(a))
#define FOR(i,a,b)      for(int i=a;i<=b;i++)
#define ROF(i,a,b)      for(int i=a;i>=b;i--)
#define REP(i,b)        for(int i=0;i<b;i++)
#define MEM(a,x)        memset(a,x,sizeof(a))
#define ABS(x)          ((x)<0?-(x):(x))

#define SORT(v)         sort(v.begin(),v.end())
#define REV(v)          reverse(v.begin(),v.end())


#define FASTIO        ios_base::sync_with_stdio(0);cin.tie(nullptr);




///..................Sort by second element in a pair in decending order............. ///
bool SortbySecDesc(const pair<long long,long long > &a, const pair<long long,long long > &b)
{
    return a.second>b.second;
}

///.........................first element of pair in descending order..........................//////
bool sortinrev(const pair<int,int> &a,
               const pair<int,int> &b)
{
       return (a.first > b.first);
}



///.............................................................TEMPLATE................................................./////

int main()
{
    FASTIO;

    string st;

    cin >> st;

    for(int i=0; i<st.size(); i++)
    {
        if(st[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.at(0)==7||S.at(1)==7||S.at(2)==7)
    cout << "Yes";
  else
    cout << "No";
}


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

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

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


Compiler output:
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(void){
   string s;
   
   cin >> s;
   
   for(int i = 0; i < s.length(); i++){
       if(s[i] == '7'){
           cout << "Yes" << endl;
           return 0;
       }
   }
 
    cout << "No" << endl;
    return 0;
}

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

import java.util.Scanner;

public class A {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    while (N > 0) {
      if (N % 10 == 7) {
        System.out.println("Yes");
        return;
      }
      N /= 10;
    }
    System.out.println("No");
  }
}


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

#include<iostream>
using namespace std;

int main()
{
	int n,flag=0;
	cin>>n;
	while(n != 0)
	{
		if(n%10 != 7)
		{
			n /= 10;
		}
		else
		{
			flag = 1;
			cout<<"Yes";
			break;
		}
	}
	if(flag == 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<stdio.h>
int main()
{
	speed;
	int n;
	scanf("%d", &n);
	bool flag = false;
	while(n)
	{
		if(n%10==7)
		{
			flag = true;
			break;
		}
		n/=10;
	}
if(flag)
	printf("Yes");
else
	printf("No");
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:9: error: 'speed' undeclared (first use in this function)
    5 |         speed;
      |         ^~~~~
main.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: unknown type name 'bool'
    8 |         bool flag = false;
      |         ^~~~
main.c:3:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    2 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    3 | int main()
main.c:8:21: error: 'false' undeclared (first use in this function)
    8 |         bool flag = false;
      |                     ^~~~~
main.c:8:21: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:13:32: error: 'true' undeclared (first use in this function)
   13 |                         flag = true;
      |                                ^~~~
main.c:13:32: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
Language: C

#include <iostream>
using namespace std;
typedef long long ll;
typedef double dl;
const int iNF = 1e9 + 100;
//const ll INF = 1e18 + 100;
typedef pair<int, int> pii;
 
#define EPS (1e-9)
#define inf 1e19
#define PI acos(-1.0)

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

int main()
{
    int n;
    bool judge = false;
    cin >>n;
    if(n%10 == 7)
    {
        judge = true;
    }
    else{
        if((n%100) >= 70 && (n%100) < 80){
            judge = true;
        }
        else{
            if(n >= 700 && n < 800){
                judge = true;
            }
        }
    }
    if(judge){
        cout <<"Yes" <<endl;
        return;
    }
    else{
        cout <<"No" <<endl;
        return;
    }
}

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

Compiler output:
main.c:1:10: fatal error: 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" << endl;
    } else if ((N%100)/10 == 7) {
        cout << "Yes" << endl;
    } else if (((N%100)%10) == 7) {
        cout << "Yes" << endl; 
    } else {
        cout << "No" << endl;
    }
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> N;
      |         ^~~
a.cc:15:17: error: 'cout' was not declared in this scope
   15 |                 cout << "Yes";
      |                 ^~~~
a.cc:18:17: error: 'cout' was not declared in this scope
   18 |                 cout << "No";
      |                 ^~~~
Language: C

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

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

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

a=int(input())
if a%10==7 or (a//10)%10==7 or (a//100)==7:
	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:3: error: expected expression before 'int'
    1 | a=int(input())
      |   ^~~
Language: C++

#include "iostream"
using namespace std;
 
int main(){
  char n[3];
  cin >> n[0] >> n[1] >> n[2];
  if(n[0]='7' || n[1]='7' || n[2]='7')cout << "Yes";
  else cout <<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: lvalue required as left operand of assignment
    7 |   if(n[0]='7' || n[1]='7' || n[2]='7')cout << "Yes";
      |                       ~~~~^~~~~~~
Language: C

a = list(int(input()))

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

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | a = list(int(input()))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'a' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'list' [-Wimplicit-function-declaration]
    1 | a = list(int(input()))
      |     ^~~~
main.c:1:10: error: expected expression before 'int'
    1 | a = list(int(input()))
      |          ^~~
main.c:3:1: error: expected ',' or ';' before 'if'
    3 | if a[0] == 7 or a[1] == 7 or a[2] == 7:
      | ^~
Language: C

using namespace std;
#include<cstdlib>


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

  string ans = "No";

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

  cout << N << endl;
   
}

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

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


#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;

int main() {
  string s ;
  cin >> s ;
  string ans = "No";
  rep(i,3){
    if(s.at(i) == '7')
      ans = "Yes";
  }
  
  cout << ans ;


}


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 fi first
#define se second
#define mp make_pair
#define sz(v) (int) v.size()
#define all(v) v.begin(), v.end()

using namespace std;

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

mt19937 rnd(chrono::steady_clock::now().time_since_epoch().count());

signed main() {
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	int n;
	cin >> n;
	while (n) {
		if (n % 10 == 7) return cout << "Yes\n", 0;
		n /= 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(){
  int N;
  cin >> N;
  int a,b;
  a = N/100;
  N %= 100;
  b = N/10;
  N %= 10;
  if(a==7||b==7||N==7){
    cout << Yes << endl;
  }else{
    cout << No << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'Yes' was not declared in this scope
   13 |     cout << Yes << endl;
      |             ^~~
a.cc:15:13: error: 'No' was not declared in this scope; did you mean 'N'?
   15 |     cout << No << endl;
      |             ^~
      |             N
Language: C

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp> // Common file  
#include <ext/pb_ds/tree_policy.hpp>
#include <functional> // for less  
using namespace         std;
#define                 int long long
#define                 double long double
#define                 pb push_back
#define                 mp make_pair
#define st(arr,a)       memset(arr,a,sizeof arr)
#define                 nl cout<<'\n'
#define bitcount(x)     __builtin_popcountll(x)
const int MOD = 1000000007ll;
#define forn(i,a,b)     for(int i=a;i<=b;i++)
#define rfor(i,a,b)     for(int i=a;i>=b;i--)
#define all(x)          x.begin() , x.end()
#define pi pair<int,int>
#define X first
#define Y second
#define N 1014159
#define  vi vector<int>
#define  v  vector
#define die exit(0)
#define alln(arr) arr+1 , arr+1+n
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag,
        tree_order_statistics_node_update> oset;

int n, m, k, arr[N];

void solve()
{
    string s;
    cin >> s;
    bool ok = 0;
    for (auto i : s)if (i == '7')ok = 1;
    if (ok)cout << "Yes";
    else cout << "No";
}


signed main()
{
    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    int t = 1;
    //cin>>t;
    forn(i, 1, t)
    {
        solve();
        nl;
    }



    return 0;

}

//       clang++ c.cpp ; ./a.out < a.txt ;

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