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

//omajinai c++ atcoder
#include <bits/stdc++.h>
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
#define itn int
typedef long long ll;
constexpr auto mod = 1000000007;
using namespace std;
int main() {
 string s;
  cin>>s;
  int f=0;
  for(int i=0;i<s.length();i++){
    if(s[i]=='7'){
      f=1;
      break;
    }
  }
  
  if(f==0){
    cout<<"No";
  }
  else{
    cout<<"Yes";
  }
}

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

#include <bits/stdc++.h>
#define ll long long
#define intm INT_MAX
#define llm LLONG_MAX

using namespace std;
int MOD = 998244353;

int main(){
	ios_base::sync_with_stdio(false); cin.tie(0);
    int N;
    cin >> N;
    while( N/10 ){
        if( N%10 == 7 ) { cout << "Yes"; return 0; }
        N /= 10;
    }
    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 <cmath>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <queue>
using namespace std;
typedef long long ll;

int main() {
	int n, o, t, h;
	cin >> n;
	o = n % 10;
	t = (n % 100 - o) / 10;
	h = n / 100;
	if (o == 7 || t == 7 || h == 7) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}
	return 0;
}

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

#include<bits/stdc++.h>

using namespace std;

int main()
{
    string s;
    cin>>s;
    int j=0,i;
    for(i=0;i<=2;i++)
    {
        if(s[i]=='7')
            j++;
    }
    if(j==0)
        cout<<"NO";
    else
        cout<<"YES";
    return 0;
}




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

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


int compare_int(const void *a, const void *b)
{
    return *(int*)a - *(int*)b;
//    return *(long long*)a - *(long long*)b;
}
//  qsort(A, b, sizeof(int), compare_int);

//long long  factorial(long long n) {
//    if (n > 0) {
//        return n * factorial(n - 1);
//    } else {
//        return 1;
//    }
//}
long long  factorial(long long n, long long depth) {
    if (n > 1) {
        depth++;
        return factorial(n / 2, depth);
    } else {
        return depth;
    }
}

int min(int a, int b) {
    if (a > b)
        return b;
    else
        return a;
}

int distance(int a, int b) {
  return abs(a-b)*abs(a-b);
}



//int ()
/*
int triangle(int a, int b, int c){
  if(a<b+c){
    if(b<c+a){
      if(c<a+b){
        printf("1\n");
        return 1;
      }
    }
  }
  printf("1\n");
  return 0;
}
*/

int main()
{
//  int  a, b, c, d, e, X, Y ,r;
  unsigned long long  a, b, c, d, e, X, Y;
  //  double  c;
// long long  A[200003]={};
  int  A[200003]={};
  int  B[100003]={};
//  int  C[100003][100001]={};
  int  C[100003]={};

  int  flg=0;

//  char s[101][101]={};
  char s[100001]={};
  char t[100001]={};
//  int N, M;
//  int A[1000000001]={};
//  long long  C[101]={};
  int i,j,k;
  long long p=0,q=0;
//  int flag=0;
//  int tmp=0;
//  char tmp[101]={};
//  long long min=10000000000;
//  long long min=100000001;
  int min =100000001;
  int len=0;
  int l=0;
//  int r=1000001;
  int cnt=0;
  int num=0;
  int num1=0;
  int num2=0;
  long long  ans=0;
  int ans_ac=0;
  int ans_wa=0;
  int max=0;
  long long sum=0;
  int addr=0;
  int ptn=0;
  int  tmp=0;
  double per=0; 
//  bool on_off[100]={};
  
//  char alp[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};

  //  a=0;
  scanf("%lld", &a);
  if(a%7==111||a%7==110||a%7==101||a%7==100)  printf("Yes\n");
  else(flg==1)printf("No\n");
  
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:109:15: error: expected ';' before 'printf'
  109 |   else(flg==1)printf("No\n");
      |               ^~~~~~
      |               ;
Language: C++

#include <iostream>
#include <stdio.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> x;
      |   ^~~
      |   std::cin
In file included 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:7:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   if(x%10==7)cout << "Yes";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:8:25: error: expected primary-expression before '%' token
    8 |   else if(((int)(x/10))/%10==7) cout << "Yes";
      |                         ^
a.cc:8:33: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |   else if(((int)(x/10))/%10==7) cout << "Yes";
      |                                 ^~~~
      |                                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:26: error: expected primary-expression before '%' token
    9 |   else if(((int)(x/100))/%10==7) cout << "Yes";
      |                          ^
a.cc:9:34: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   else if(((int)(x/100))/%10==7) cout << "Yes";
      |                                  ^~~~
      |                                  std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout << "No";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

int main()
{
    int n;
    cin >> n;
    int a,b,c;
    a = n % 10;
    n = n / 10;
    b = n % 10;
    n = n / 10;
    c = n % 10;
    if( a == 7 || b == 7 || c == 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>
#define REP(i, m, n) for(int (i) = (m); (i) < (n); ++i)
#define rep(i, n) REP(i, 0, n)
#define all(x) (x).begin(), (x).end()
using namespace std;
using Graph = vector<vector<int>>;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
typedef long long ll;
typedef pair<ll, ll> P;
const int INF = 1e9+7;
const ll LINF = 1LL<<60;

int main()
{
    cin.tie(0);
    ios_base::sync_with_stdio(0);
    int n;
    cin >> n;

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

    return 0;
}

Compiler output:
a.cc:6:15: error: 'vector' does not name a type
    6 | using Graph = vector<vector<int>>;
      |               ^~~~~~
Language: C

/*input
117
*/
#include<bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>
//#include <ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
using namespace std;
#define ll          long long
#define pb          push_back
#define pii         pair<long,long>
#define vi          vector<long long>
#define vii         vector<pii>
#define mi          map<ll,ll>
#define mii         map<pii,ll>
#define all(a)      (a).begin(),(a).end()
#define x           first
#define y           second
#define sz(x)       (int)x.size()
#define endl        '\n'
#define hell        1000000007
#define rep(i,a,b)  for(ll i=a;i<b;i++)
#define repi(i,a,b) for(ll i=a;i>=b;i--)
#define lbnd        lower_bound
#define ubnd        upper_bound
#define bs          binary_search
#define mp          make_pair
#define fIO         ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define tr(it, a)   for(auto it = a.begin(); it != a.end(); it++)
#define clr(x)      memset(x, 0, sizeof(x))
#define deb(x)      cout << #x << "=" << x << endl
#define deb2(x, y)  cout << #x << "=" << x << "," << #y << "=" << y << endl
#define TIME        cerr << "\nTime elapsed: "<<1.0 * clock() / CLOCKS_PER_SEC << " s.\n"; 
//#define ordered_set tree<ll,null_type,less<ll>,rb_tree_tag, tree_order_statistics_node_update>;

ll sub(ll a, ll b){return (a-b+hell)%hell;}
ll add(ll a, ll b){return (a+b)%hell;}
ll mul(ll a, ll b){return (a*b)%hell;}
vector<ll>adj[100005];
bool vis[100005];
ll siz,edges;
void dfs(ll i)
{
    vis[i]=1;
    //siz++;
    for(ll j=0;j<adj[i].size();j++)
    {        
        edges++;
        if(!vis[adj[i][j]])
            dfs(adj[i][j]);
    }
}
const ll mod = 1000000007;
ll mpow(ll base, ll exp) {
  base %= mod;
  ll result = 1;
  while (exp > 0) {
    if (exp & 1) result = ((ll)result * base) % mod;
    base = ((ll)base * base) % mod;
    exp >>= 1;
  }
  return result;
}
vi v;
vector<bool> isprime(1000005,true);
void seive(){
  rep(i,2,1000005){
    if(isprime[i]){
      for(ll j=2*i;j<1000005;j+=i)isprime[j]=false;
    }
  }
  rep(i,2,1000005){if(isprime[i])v.pb(i);}


}
int main()
{
fIO;
ll n,sum=0,t=1,m,ans;
//cin >> t;
while(t--){
  cin>>n;
  while(n){
    if(n%10==7){cout<<"Yes";return 0;}
    n=n/10;
  }
  cout<<"No";















}
TIME;
    
}

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

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

int main(){
    int N;
    cin >> N;
    int A[3];
    int i=0;
    while(N>0){
        A[i] = N%10;
        N /= 10;
        i++;
    }
    int ans =0;
    for(int i=0;i<3;i++){
        if(A[i]==7)  ans++;
    }
    if(ans >0) cout << "Yes"<< endl;
    else cout << "No"<< endl;

}



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

// clang-format off
#pragma GCC optimize("Ofast")
#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll, ll>;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
#define rep1(i,n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
#define rrep(i,n) for(ll i=n-1; i>=0; --i)
#define rrep1(i,n) for(ll i=n; i>0; --i)
#define all(x) (x).begin(),(x).end()
#define SORT(x) sort(all(x))
#define SORT_DESC(x) sort((x).rbegin(),(x).rend())
#define pb push_back
#define mp make_pair
#define coutl cout<<fixed<<setprecision(10)
#define ANS(ans) cout<<ans<<endl;
const ll LINF = (1LL << 62) - 1;
const int INF = (1 << 30) - 1;
template<class T>bool chmax(T &a, const T &b){if (a<b){a=b;return 1;}return 0;}
template<class T>bool chmin(T &a, const T &b){if (b<a){a=b;return 1;}return 0;}
const string YES = "Yes";
const string NO = "No";
// clang-format on

void solve(long long N) {
  if (N / 100 == 7 || (N % 100) / 10 == 7 || (N % 10) == 7) {
    ANS(YES);
  } else {
    ANS(NO);
  }
}

// clang-format off
int main() {
  long long N;
  scanf("%lld",&N);
  solve(N);
  return 0;
}


Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:4:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::__cxx11::basic_string<char>::_Alloc_hider::~_Alloc_hider()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = char]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/string:54:
/usr/include/c++/14/bits/basic_string.h:186:14: note: called from here
  186 |       struct _Alloc_hider : allocator_type // TODO check __is_final
      |              ^~~~~~~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:3: error: 'returm' was not declared in this scope
   14 |   returm 0;
      |   ^~~~~~
Language: C

#include<iostream>
#include <vector>
#include <algorithm>
#include<set>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define INF 1000000;
#include <map>

using ll = long long;
using namespace std;


int main(){
    int n;
    cin >> n;
    int f1, f2, f3;
    f1=0;
    f2=0;
    f3=0;
    if(n%10==7){
        f1=1;
    }
    n/=10;
    if(n%10==7){
        f2=1;
    }
    n/=10;
        if(n%10==7){
        f3=1;
    }
    if(f1==1||f2==1||f3==1) cout << "Yes"<< endl;
    else cout << "No" << endl;
    
}

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

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

int main()
{
  int n,a[10];
  cin>>n;
  for(int i=0;n!=0;i++)
  {
    int r=n%10;
    n=n/10;
    a[i]=r;
  }
   
    if(a[0]==7 || a[1]==7 || a[1]==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;

//#define int long long
#define ll long long
#define all(v) (v).begin(), (v).end()
#define rep(i,n) for(int i=0;i<n;++i)
#define rep1(i,n) for(int i=1;i<n;++i)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define EPS (1e-7)
#define gearup ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef pair<ll, ll> P;
typedef vector<ll> vl;
typedef vector<vector<ll> > vvl;
typedef vector<vector<vector<ll> > > vvvl;
ll MOD = 1000000007;
const long long L_INF = 1LL << 60;
const int INF = 2147483647; // 2^31-1
const double PI = acos(-1);
//cout<<fixed<<setprecision(10);

template<class T> inline bool chmin(T& a, T b) {if (a > b) {a = b;return true;}return false;}
template<class T> inline bool chmax(T& a, T b) {if (a < b) {a = b;return true;}return false;}
template<class T> void debug(T v){rep(i,v.size()) cout<<v[i]<<" ";cout<<endl;}
const ll dx[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll dy[8] = {0, 1, 1, 1, 0, -1, -1, -1};

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if(b%10==7){
      |     ^~~~
a.cc:13:13: error: 'b' was not declared in this scope
   13 |     else if(b%10==7){
      |             ^
a.cc:17:5: error: 'else' without a previous 'if'
   17 |     else if(a%10==7){
      |     ^~~~
a.cc:19:7: error: expected '}' before 'else'
   19 |       else{
      |       ^~~~
a.cc:17:21: note: to match this '{'
   17 |     else if(a%10==7){
      |                     ^
a.cc:23:2: error: expected '}' at end of input
   23 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

main(){
  int s ;
  cin >> s ;
  int check = 0 ;
  int keta = 1 ;
  string ss = to_string(s) ;
  for(int i=0;i<3;i++){
    if(ss[i]=="7") check = 1 ;
  }
  if(check){
    cout << "Yes" ;
    return 0 ;
  }
  cout << "No" ;
  return 0 ;
}


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

n = list(input())
ans = "No"
for i in n:
    if i=="7":
        ans = "Yes"
print(ans)

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

#include <bits/stdc++.h>
using namespace std;
typedef unsigned long long ull;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;
const ll mod = 1e9 + 7;
//const ll mod = 998244353;
#define REP(i,n) for(int i=0;i<(int)n;++i)
//debug
#define dump(x)  cerr << #x << " = " << (x) << endl;
#define debug(x) cerr << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
template<class S, class T> ostream& operator << (ostream& os, const pair<S, T> v){
os << "(" << v.first << ", " << v.second << ")"; return os;
}
template<class T> ostream& operator << (ostream& os, const vector<T> v){
for(int i = 0; i < (int)v.size(); i++){if(i > 0){os << " ";} os << v[i];} return os;
}
template<class T> ostream& operator << (ostream& os, const vector<vector<T>> v){
for(int i = 0; i < (int)v.size(); i++){if(i > 0){os << endl;} os << v[i];} return os;
}
string num2bit(ll num, ll len){
    string bit = "";
    REP(i, len){
    bit += char('0'+(num>>i & 1));
    }
    return bit;
}

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

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

    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
 
int main(){
  ll N;
  cin >> N;
  ll ans=0;
  for(int i=1;i<=N;++i){
    if(i%3==0 | i%5==0) continue;
    ans += i;
  }
  cout << ans << endl;
}

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

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: lvalue required as left operand of assignment
   10 |         if (N % 10 = 7) flag = true;
      |             ~~^~~~
a.cc:12:15: error: lvalue required as left operand of assignment
   12 |         if (N % 10 = 7) flag = true;
      |             ~~^~~~
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |         if (N % 10 = 7) flag = true;
      |             ~~^~~~
Language: C

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
#define rep(i,n) for(ll i=0;i<(ll)(n);i++)
using namespace std;
typedef long long ll;
ll gcd(ll a,ll b){return b!=0?gcd(b,a%b):a;}
ll lcm(ll a,ll b){return a*b/gcd(a,b);}

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

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

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

int main() {

	int X;

	int digit = 0;

	cin >> X;

	int a = 0;
	int b = 0;
	int c = 0;

	a = X / 100;
	b = (X - a * 100) / 10;
	c = X - a * 100 - b * 10;

	if (a == 7 || b == 7 || c == 7) {
		cout << "Yes" << endl;

	}
	else { 
		cout << "No" << endl; 
	}

}


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

#include <bits/stdc++.h>

using namespace std;

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

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

ll gcd(ll a, ll b)
{
	while (b != 0)
	{
		int t = b;
		b = a % b;
		a = t;
	}
	return a;
}
int main()
{
	int n;
	cin >> n;
	int h = 0;
	for(int i = 1; i <= 3; i++)
	{
		if (n % 10 == 7)
		{
			h = 1;
			break;
		}
		else
		{
			n /= 10;
		}
	}
	if (h)
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
	return 0;
}


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

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

using namespace std;
typedef long long ll;

#define cout (cout << setprecision(12))

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

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

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

#include <iostream>
using namespace std;
int main() {
    int n;
    cin >> n;
    if (n % 10 == 7 || (n / 10 % 10) == 7 || n / 100 == 7)
        cout << "Yes\n";
    else cout << "No\n";
    return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
typedef pair<int,int> P;

#define repr(i, n) for(int i = n; i >= 0; i--)
#define reprl(i, n) for(ll i = n; i >= 0; i--)
#define all(v) v.begin(), v.end()
ll gcd(ll a,ll b) {
  return b? gcd(b,a%b): a;  
}
ll lcm(ll a,ll b) {
  return a*b/gcd(a,b);
}
bool isLowerCase(char c){
  return (c>='a'&&c<='z');
}
const string outputYesNo(bool ans){
  return (ans?"Yes":"No");
}
int main() {
  string n;cin>>n;
  cout<<outputYesNo(n.find('7')!=npos)<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:34: error: 'npos' was not declared in this scope
   24 |   cout<<outputYesNo(n.find('7')!=npos)<<endl;
      |                                  ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,flag=0;
  cin>>n;
  while(n>0)
  {
    int r=n%10;
    if(r==7)
    {
      flag=1;
      break;
    }
    n=n/10;
  }
  if(flag)
    cout<<"Yes\n";
  else
    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

N=int(input())

a=N // 100
b=(N-a*100) // 10
c=N-a*100-b*10

if a==7 or b==7 or c==7:
  ans="Yes"
else:
  ans="No"
  
  
print(ans)


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;
   vector <int>v;
   while(n>0){
       v.push_back(n%10);
       n=n/10;
   }
   int flag=0;
   for(auto it=v.begin();it!=v.end();it++){
       if(*it==7){
           flag=1;
           break;
       }
   }
   if(flag==1) cout<<"Yes"<<endl;
   else if(flag==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

#pragma region template
#include "bits/stdc++.h"
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long MOD = 1e9 + 7, MAX = 1e18, larg = 1e5, INF = -1e9;
long long A, B, C, D, E, F, G, H, I, J, K, L, N, M, O, P, Q, R, S, T, U, V, W, x, y, z;
long long max_value = INF, max_index = -1;
long long min_value = MAX, min_index = -1;
typedef long long ll;
typedef pair<ll, ll> Pa;

class UnionFind {
public:
	vector <ll> par; // 各元の親を表す配列
	vector <ll> siz; // 素集合のサイズを表す配列(1 で初期化)

	// Constructor
	UnionFind(ll sz_) : par(sz_), siz(sz_, 1LL) {
		for (ll i = 0; i < sz_; ++i) par[i] = i; // 初期では親は自分自身
	}
	void init(ll sz_) {
		par.resize(sz_);
		siz.assign(sz_, 1LL);  // resize だとなぜか初期化されなかった
		for (ll i = 0; i < sz_; ++i) par[i] = i; // 初期では親は自分自身
	}

	// Member Function
	// Find
	ll root(ll x) { // 根の検索
		while (par[x] != x) {
			x = par[x] = par[par[x]]; // x の親の親を x の親とする
		}
		return x;
	}

	// Union(Unite, Merge)
	bool merge(ll x, ll y) {
		x = root(x);
		y = root(y);
		if (x == y) return false;
		// merge technique（データ構造をマージするテク．小を大にくっつける）
		if (siz[x] < siz[y]) swap(x, y);
		siz[x] += siz[y];
		par[y] = x;
		return true;
	}

	bool issame(ll x, ll y) { // 連結判定
		return root(x) == root(y);
	}

	ll size(ll x) { // 素集合のサイズ
		return siz[root(x)];
	}
};

bool is_prime(int num){
	for(int i = 2;i<=sqrt(num);i++){
		if(num % i == 0) return false;
	}
	return true;
}

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


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

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

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

    if (N/100 == 7) {
        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

#include <bits/stdc++.h>

using namespace std;

using ll = long long;
using P = pair<ll, ll>;
using Graph = vector<vector<ll>>;
#define rep(i, n) for(ll i=0;i<(ll)(n);i++)
#define rep2(i, m, n) for(ll i=m;i<(ll)(n);i++)
#define rrep(i, n, m) for(ll i=n;i>=(ll)(m);i--)
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
const int ddx[8] = {0, 1, 1, 1, 0, -1, -1, -1};
const int ddy[8] = {1, 1, 0, -1, -1, -1, 0, 1};
const ll MOD = 1000000007;
const ll INF = 1000000000000000000L;
#ifdef __DEBUG

/**
 * For DEBUG
 * https://github.com/ta7uw/cpp-pyprint
 */
#include "cpp-pyprint/pyprint.h"

#endif

ll gcd(ll a, ll b) {
    if (b == 0) return a;
    else return gcd(b, a % b);
}

void Main() {
    string S;
    cin >> S;
    bool flag = false;
    rep(i, 3){
        if (S[i] == '7'){flag = true;}
    }
    if (flag){cout << "Yes" << endl;} else {cout << "No" << endl;}
}


int main() {
    cin.tie(nullptr);
    ios::sync_with_stdio(false);
    cout << fixed << setprecision(15);
    Main();
    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    char str[5];
    gets(str);
    
    if(str[0]=='7' || str[1]=='7' || str[2]=='7')
        cout<<"Yes"<<endl;
    else
        cout<<"No"<<endl;
    return 0;

}


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

#include<iostream>
#include<iomanip>
#include<math.h>
using namespace std;

int main(){
    int64_t i;//preparation for
    int n;
    int a[3];

    cin>>n;

    for(i=0;i<3;i++){
        a[i]=n%10;
        n=(n-a[i])/10;
        if(a[i]==7){
            cout<<"Yes";
            break;
        }
        else{}

        if(i=2){
            cout<<"No";
        }
        else{}
    }

    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 <algorithm>
#include <cstdio>
#include <vector>
#include <map>
#include <cstring>
using namespace std;
#define MAXH 101
#define MAXW 101
#define INF 1000
#define MAXN 100001

int N, M;

bool check(int N){
    bool f = false;
    if(N % 10 == 7) return true;
    N /= 10;
    if(N % 10 == 7) return true;
    N /= 10;
    if(N % 10 == 7) return true;
    return false;
}


int main(){
    cin >> N;
    if(check(N)) printf("Yes\n");
    else printf("No\n");
    
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int K,N,C;
bool flag=false;
int main()
{
  cin>>N;
  for(int i=0;i<3;i++){
    if(N%10==7){
      flag=true;
      break;
    }
  }
  if(flag){
    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

/**
 * Title:
 * Url:
 */
#include<iostream>
#include<string>

using namespace std;

#define ll long long

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long int 
//#define m 998244353 
int m[1001][1001]={0};
int main(){
	
	ios_base::sync_with_stdio(false);
    cout.tie(NULL);
    cin.tie(NULL);
    int t;
	int temp=0;

	while(t!=0){
		temp=t%10;
		t=t/10;
		if(temp==7) {
			cout<<"Yes";
			break;
		}
		if(remp!=7)cout<<"No";
	}
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:20: error: 'remp' was not declared in this scope; did you mean 'temp'?
   21 |                 if(remp!=7)cout<<"No";
      |                    ^~~~
      |                    temp
Language: C

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


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

#include <iostrea>
using namespace std;
int main()
{
  int n[3], is=0;
  for(int i = 0; i<3; i++)
  {
    cin>>n[i];
    if (n[i] == 7)
    {
      is = 1;
    }
  }
  if (is == 1)
  {
    cout << "Yes"<<"\n";
  }
  else
  {
    cout << "No" << "\n";
  }
}

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

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


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

	bool svn=false;
	for (int i=0; i<3; i++) {
		if (s[i]=='7') svn=true;
	}
	if (svn) 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

s=str(input())

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

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

#include <bits/stdc++.h>

using namespace std;

#define FAST_IO ios_base::sync_with_stdio(0); cin.tie(nullptr)
#define FOR(i, a, b) for(int i = (a); i <= (b); i++)
#define REP(n) FOR(O, 1, (n))
#define pb push_back
#define f first
#define s second
typedef long double ld;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<int, pii> piii;
typedef vector<int> vi;
typedef vector<pii> vii;
typedef vector<ll> vl;
typedef vector<piii> viii;

const int MAXN = 500100, MAXK = 30;
const ll MOD = 998244353;
const int INF = 1e8;
const ld PI = asin(1) * 2;

void setIO () {
    FAST_IO;
}

void setIO (string s) {
    setIO();
 	freopen((s+".in").c_str(),"r",stdin);
	freopen((s+".out").c_str(),"w",stdout);
}



int main() {
	setIO();

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

	return 0;
}




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

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

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

Compiler output:
a.cc:8:25: error: stray '\' in program
    8 |         if(N/100==7 || N\10%10==7 || N%10==7) cout<<"Yes"<<endl;
      |                         ^
a.cc: In function 'int main()':
a.cc:8:25: error: expected ')' before numeric constant
    8 |         if(N/100==7 || N\10%10==7 || N%10==7) cout<<"Yes"<<endl;
      |           ~             ^~~
      |                         )
Language: C

#include<bits/stdc++.h>
using namespace std;
string c;
int main(){
	cin>>c;
	if(c[0]=='7'){cout<<"Yes";return 0;}
	if(c[1]=='7'){cout<<"Yes";return 0;}
	if(c[2]=='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

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

int main() {
  int N;
  cin >> N;
  
  if (N.at(0) == '7' || N.at(1) == '7' || N.at(2) == '7') {
    cout << "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<stdio.h>
#include<math.h>
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main() {
	int N;
	cin >> N;
	int a;
	int b;
	int c;
	0 <= a <= 9;
	0 <= b <= 9;
	0 <= c <= 9;
	N = 100 * a + 10 * b + c;
	if (a = 7 || b = 7 || c = 7) {
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
}

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

#include <stdio.h>
int main(void){
  int n,a,b,c;
  scanf("%d",&n);
  
  a = n%10;
  b = n%100;
  c = n;
  if(a==7)printf("Yes");
  else if(80>b && b<=70)print("Yes");
  else if(800>c && c>=700)printf("Yes");
  else printf("No");
  
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:10:25: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   10 |   else if(80>b && b<=70)print("Yes");
      |                         ^~~~~
      |                         printf
Language: C

#include <iostream>
using namespace std;

int main() {
    int x, dig;
    cin >> x;
    for(int i =0; i<3; i++){
        dig = x % 10;
        if (dig == 7){
            cout << "Yes";
            return 0;
        }
        x = x / 10;
    }
    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 <iomanip>
#include <algorithm>
#include <vector>
#define rep(i,n) for (int i=0; i<(n); ++i)
using namespace std;
using ll = long long;
using P = pair<int, int>;

const int INF = 1001001001;

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

    if (n % 10 == 7) {
        isSeven = true;
    }

    while (isSeven == false) {
        if (n % 10 == 7) {
            isSeven = true;
            break;
        }

        if (n > 10) {
            n /= 10;
        }
        else {
            break;
        }
    }

    cout << ((isSeven) ? "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=str(input())
if N.count("7")>=1:
   print("Yes")
else :
   print("No")

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

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

int main(){
int n;
int a,b,c,d;
cin>>n;
a=n/100;
c=n%10;
d=(n-c)-a*100;
b=d/10;
if(a==7)cout<<"Yes"<<endl;
else if(b==7)cout<<"Yes"<<endl;
else if(c==7)cout<<"Yes"<<endl;
else cout<<"No"<<endl;

}


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

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

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

    rep(i,3) {
        tmp = pow(10,i);
        val = N/tmp;
        if(val==7) {
            cout << "Yes" << endl;
            break;
        } else if(i!=2) {
            continue;
        } else {
            cout << "No" << endl;
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   10 |         tmp = pow(10,i);
      |         ^~~
      |         tm
a.cc:11:9: error: 'val' was not declared in this scope
   11 |         val = N/tmp;
      |         ^~~
Language: C

#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<algorithm>
#include<map>
#include<cstdlib>
#include<cmath>
using namespace std;
using ll =long long;
int main() {/*
	ll N;
	ll sum=0;
	cin >> N;
	for (int i = 1; i <= N; i++) {
		if (i % 5 != 0&& i % 3 != 0) {


			sum += i;
		}
	}
	cout << sum;
}*/
	
	int N;
	cin >> N;
	if (N / 100 == 7 || N % 100 / 10 == 7 || N % 10 == 7) {


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

}

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

#include<stdio.h>

char[] main(int argc, char *argv[]){
  char ret[];
  if(argv[0] == 7 || argv[1] == 7 ||argv[2] == 7){
  	return sprintf(&ret[0],"Yes);
  }else{
    return sprintf(&ret[0],"No);
  }
}
  
  
  

Compiler output:
main.c:3:5: error: expected identifier or '(' before '[' token
    3 | char[] main(int argc, char *argv[]){
      |     ^
main.c:6:32: warning: missing terminating " character
    6 |         return sprintf(&ret[0],"Yes);
      |                                ^
main.c:6:32: error: missing terminating " character
    6 |         return sprintf(&ret[0],"Yes);
      |                                ^~~~~~
main.c:8:28: warning: missing terminating " character
    8 |     return sprintf(&ret[0],"No);
      |                            ^
main.c:8:28: error: missing terminating " character
    8 |     return sprintf(&ret[0],"No);
      |                            ^~~~~
Language: C

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

int main(){
    int n;
    int i,g;
    i = g = 0;
    string s;

    cin >> n;
    s = to_string(n);

    while(i<=2){
        if(s[i]=='7'){
            g++;
        }
        i++;
    }

    if(g != 0){
        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>
using namespace std;

int main(){

  int N;
  cin >> N;
  int a = N/100;
  int b = N%100;
  b = N / 10;
  int c = N % 10;
  if (a == 7 || b == 7 || c == 7)
    printf("Yes");
  else
    printf("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;
  cin >> n;
  string ans="No",s=to_string(n);
  
  for(int i=0;i<3;i++){
    if(s[i]=='7')ans="Yes";
  }
  cout << ans << 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 x;
  cin >> x;
  bool ba = false;
  int a = x/100;
  int b = x % 10;
  int c = (x - a*100)/10;
  if(a == 7 || b == 7 || c == 7) ba = true;
  if(ba) 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>
using namespace std;
 
int main() {
  char num[3];
  cin >> num;
  if(num[0] == '7' || num[1] == '7' || num[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

//==========//============================================================================
// Name        : Hello5.cpp
// Author      :
// Version     :
// Copyright   : Your copyright notice
// Description : Hello World in C++, Ansi-style
//============================================================================

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


int main() {
int x,y,z;
int n=100*x+10*y+z;
cin>>n;
if(x || y|| z==7)
	cout<<"Yes"<<endl;
	else cout<<"No"<<endl;

return 0;
}







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

#define  _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include<iostream>
#include <algorithm>
#include <utility>
#include <functional>
#include <cstring>
#include <queue>
#include <stack>
#include <math.h>
#include <iterator>
#include <vector>
#include <string>
#include <set>
#include <math.h>
#include <random>
#include<map>
#include <iomanip>
#include <time.h>
#include <stdlib.h>
#include <list>
#include <typeinfo>
#include <list>
#include <set>
#include <cassert>
#include<fstream>
#include <unordered_map>
#include <cstdlib>
#include <complex>
using namespace std;
using ll = long long;
#define Ma_PI 3.141592653589793
#define eps 0.00000001
#define LONG_INF 3000000000000000000
#define rep(i,n) for(long long i = 0;i < n;++i)    
#define seg_size 524288

int main(){
    int n;
    cin>>n;
    bool ok=false;
    rep(i,3){
        int num;
        num=n%10;
        if(num==7){
            ok=true;
            break;
        }
        
    }
    if(ok)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
        
    return 0;
}

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

#include <iostream>
#include <algorithm>
#include <string>
#include <string.h>
#include <math.h>
#include <cmath>
#include <tuple>
#include <vector>
#include <bitset>
#include <stack>
#include <iomanip>
#include <set>
#include <queue>
#include <map>


typedef long long ll;
typedef unsigned long long ull;
#define mk make_pair
#define mkt make_tuple

using namespace std;
int const N = 200005;
int main()
{
	string s;
	cin >> s;
	cout << (s.find('7') == string::npos ? "NO" : "YES");
}

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