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

#include<stdio.h>
int main(void){
  char a[3];
  scanf_s ("%s",a,3);
  if(a[0]==7||a[2]==7||a[1]==7)printf("YES");
  else printf("NO");
}


Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |   scanf_s ("%s",a,3);
      |   ^~~~~~~
      |   scanf
Language: C

#include<studio.h>
int main(void){
  char a[3];
  scanf("%s",a,3);
  if(a[0]==7||a[2]==7||a[1]==7)printf("YES");
  else printf("NO");
}


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

#include<studio.h>
int main(void){
  char a[3];
  scanf_s ("%s",a,3);
  if(a[0]==7||a[2]==7||a[1]==7)printf("YES");
  else printf("NO");
}

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

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<vector>
#include<cstring>
#include<string>
using namespace std;
bool solve(int n){
	while(n){
		if(n%10==7){
			return true;
		}
		n=n/10;
	}
	return false;
}
int main(){
	int n;
	cin>>n;
	if(solve(n)){
		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: Java

public class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String N = input.next();

        System.out.println(N.indexOf('7'));
        if (N.indexOf('7') >= 0) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner input = new Scanner(System.in);
                            ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C

// Nguyen Anh Tu
#include <bits/stdc++.h>
#define FOR(x,a,b) for(int x=a;x<=b;x++)
#define FORD(x,a,b) for(int x=a;x>=b;x--)
#define maxn 100005
#define maxc 1000000007
#define MOD 1000000007
#define reset(x, y) memset(x,y,sizeof(x))
#define task ""
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define pii pair<int,int>
#define ll long long
#define bit(p,x) ((x>>p) & 1)
#define remain(a,b) (a+b >= MOD) ? (a+b - MOD) : (a+b)
using namespace std;
string s;
int main()
{
    ios_base::sync_with_stdio(NULL); cin.tie(NULL); cout.tie(NULL);
    if(fopen(task".inp", "r"))
    {
        freopen(task".inp","r",stdin);
        freopen(task".out","w",stdout);
    }
    cin >> s;
    for(auto x : s) if(x == '7') return cout << "YES", 0;
    cout << "NO";
    return 0;
}


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

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

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

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

void solver() {
  string s;
  cin >> s;

  string ans = "No";
  for (int i = 0; i < s.size(); i++) {
    if (s[i] == '7') ans = "Yes";
  }
  cout << ans << "\n";
}

int main() {
  solver();
  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

// using no_way as a way
// using no_limitation as a limitation

// #pragma comment(linker, "/stack:200000000")
// #pragma GCC optimize("Ofast")
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,mmx,avx,tune=native")
#define _CRT_SECURE_NO_WARNINGS
#include<bits/stdc++.h>
#include<stdio.h>
using namespace std;
const double PI = acos(-1.0);
const double EPS = (1e-9);
typedef long long ll;
typedef unsigned long long ull;
#define flush fflush(stdout), cout.flush()
#define all(v) ((v).begin()),((v).end())
#define rall(v) ((v).rbegin()),((v).rend())
#define clr(v,line) memset(v,line,sizeof(v))
#define rep(i,n) for(int(i)=0;(i)<(int)(n);(i)++)
#define vi vector<int>
#define vll vector<ll>
#define pii pair<int,int>
#define pll pair<ll,ll>
#define RT(x) return cout<<x, 0;
//#define lcm(a,b) (a*(b/__gcd(a,b)))
#define P 1000000007
#define endl '\n'
// const int dx[] = {1,-1,0,0,1,-1,1,-1};
// const int dy[] = {0,0,1,-1,1,-1,-1,1};
// const int dxhorse[] = {-2,-2,-1,-1,1,1,2,2};
// const int dyhorse[] = {1,-1,2,-2,2,-2,1,-1};
 
void file() {
#ifndef ONLINE_JUDGE
    freopen("input.txt", "r", stdin);
    freopen("output.txt", "w", stdout);
#endif
}
void fast()
{
    std::ios_base::sync_with_stdio(0);
    cin.tie(NULL); cout.tie(NULL);
}


int main(int argc, char const *argv[])
{
    // file();
    fast();
    
    string s; cin>>s;
    cout<<(count(all(s), '7')?"Yes":"No");
}

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

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

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    string s;
    cin >> s;
    for (auto &c : s) {
        if (c == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;

    return 0;
}

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

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

typedef long long ll;
typedef long double ld; 
typedef double db; 
typedef string str; 

typedef pair<int, int> pi;
typedef pair<ll,ll> pl; 
typedef pair<ld,ld> pd; 

typedef vector<int> vi; 
typedef vector<ll> vl;
typedef vector<ld> vd; 
typedef vector<str> vs; 
typedef vector<pi> vpi;
typedef vector<pl> vpl; 

#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i,a) ROF(i,0,a)
#define trav(a,x) for (auto& a: x)

#define sz(x) (int)x.size()
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)

#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound 
#define ub upper_bound 

const int MOD = 998244353;
const ll INF = 1e18;
const int MX = 1000001;

int main() {
	cin.sync_with_stdio(0); cin.tie(0);
    char[3] a;
    F0R(i, 3) cin >> a[i];
    F0R(i, 3) {
        if (a[i] == '7') cout << "Yes";
        return;
    }
    cout << "No";
    
    return 0;
    // You should actually read the stuff at the bottom
}

/* Stuff to Look For
 * -----------------
 * Int overflow, array bounds
 * Initializing all variables, avoid weird behavior
 * Edge cases(n = 0, n = 1)
 * Just return 0 after result
 */


Compiler output:
a.cc: In function 'int main()':
a.cc:43:10: error: expected identifier before numeric constant
   43 |     char[3] a;
      |          ^
a.cc:43:10: error: expected ']' before numeric constant
   43 |     char[3] a;
      |          ^
      |          ]
a.cc:43:9: error: structured binding declaration cannot have type 'char'
   43 |     char[3] a;
      |         ^
a.cc:43:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:43:9: error: empty structured binding declaration
a.cc:43:13: error: expected initializer before 'a'
   43 |     char[3] a;
      |             ^
a.cc:44:22: error: 'a' was not declared in this scope
   44 |     F0R(i, 3) cin >> a[i];
      |                      ^
a.cc:46:13: error: 'a' was not declared in this scope
   46 |         if (a[i] == '7') cout << "Yes";
      |             ^
a.cc:47:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   47 |         return;
      |         ^~~~~~
Language: C

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

typedef long long ll;
typedef long double ld; 
typedef double db; 
typedef string str; 

typedef pair<int, int> pi;
typedef pair<ll,ll> pl; 
typedef pair<ld,ld> pd; 

typedef vector<int> vi; 
typedef vector<ll> vl;
typedef vector<ld> vd; 
typedef vector<str> vs; 
typedef vector<pi> vpi;
typedef vector<pl> vpl; 

#define FOR(i,a,b) for (int i = (a); i < (b); ++i)
#define F0R(i,a) FOR(i,0,a)
#define ROF(i,a,b) for (int i = (b)-1; i >= (a); --i)
#define R0F(i,a) ROF(i,0,a)
#define trav(a,x) for (auto& a: x)

#define sz(x) (int)x.size()
#define all(x) begin(x), end(x)
#define rall(x) rbegin(x), rend(x)

#define mp make_pair
#define pb push_back
#define f first
#define s second
#define lb lower_bound 
#define ub upper_bound 

const int MOD = 998244353;
const ll INF = 1e18;
const int MX = 1000001;

int main() {
	cin.sync_with_stdio(0); cin.tie(0);
    char[3] a;
    F0R(i, 3) cin >> a[i];
    F0R(i, 3) {
        if (a[i] == '7') cout << "Yes";
        return;
    }
    cout << "No";
    
    return 0;
    // You should actually read the stuff at the bottom
}

/* Stuff to Look For
 * -----------------
 * Int overflow, array bounds
 * Initializing all variables, avoid weird behavior
 * Edge cases(n = 0, n = 1)
 * Just return 0 after result
 */


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

/*A - Lucky 7*/

#include <bits/stdc++.h>

using namespace std;

int main(){

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

	bool can = false;
	string cad;


	cin >> cad;

	for (int i = 0; i < cad.size(); ++i)
	{
		if(cad[i] == '7'){
			can = true;
			break;
		}
	}

	if(can)
		cout << "Yes";
	else
		cout << "No";


	return 0;
}

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

#include <bits/stdc++.h>
#define ll long long int
#define F(i,j,k,in) for(int i=j;i<k;i+=in)
#define DF(i,j,k,in) for(int i=j;i>=k;i-=in)
#define foreach(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define PB push_back
#define ub upper_bound
#define lb lower_bound
#define ins insert
#define PI 3.1415926535897932384626433832795
#define MOD 1000000007
using namespace std;
int main()
{
    ll a,flag=0;
    cin>>a;
    while(a!=0)
    {
        ll r=a%10;
        if(r==7)
        {
            cout<<"Yes";
            flag=1;
            break;
        }
        a/=10;
    }
    if(flag==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

#include <iostream>
#include <string>

using namespace std;

int main()
{
    string a;
    cin >> a;
    for (int i = 0; i < 3; i++) {
        if (a[i] == '7') {
            cout << "Yes";
            break;
        }
    }
    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 t=0;

int f(int d)
{if (d==0)
  return 0;
 
  t=d%10;
 if(t==7)
 { cout<<"Yes";
   return 0;}
 else
 {d=d/10;
   f(d);}}

int main()
{int n;
 cin>>n;
 f(n);}

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

#include <iostream>
using namespace std;
int t=0;

int f(int d)
{if (d==0)
  return 0;
 
  t=d%10;
 if(t==7)
 { cout<<"Yes";
   return 0;}
 else
 {d=d/10;
   f(d);}}

int main()
{int n;
 cin>>n;
 f(n);}

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

//#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#define DEBUG(x) std::cout << '>' << #x << ':' << x << '\n';
#define PRINTVEC(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i] << ' '; std::cout << '\n';
#define PRINTPAIR(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i].first << ' ' << x[i].second << '\n'; std::cout << '\n';
#define PRINTSET(x) for (auto it = x.begin(); it != x.end(); it++) { std::cout << *it << ' '; } std::cout << '\n';
#define io std::ios_base::sync_with_stdio(false);std::cin.tie(NULL);   
const int INF = 1<<29;
typedef long long ll;
using namespace std;


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

    int n;
    cin >> n;
    bool ok = false;
    while (n > 0) {
        if (n % 10 == 7)
            ok = true;
        n /= 10;
    }
    cout << (ok ? "Yes" : "No");

    #ifndef ONLINE_JUDGE   
    std::cout << '\n' << "Time elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
    #endif
    return 0;
}


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

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#define DEBUG(x) std::cout << '>' << #x << ':' << x << '\n';
#define PRINTVEC(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i] << ' '; std::cout << '\n';
#define PRINTPAIR(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i].first << ' ' << x[i].second << '\n'; std::cout << '\n';
#define PRINTSET(x) for (auto it = x.begin(); it != x.end(); it++) { std::cout << *it << ' '; } std::cout << '\n';
#define io std::ios_base::sync_with_stdio(false);std::cin.tie(NULL);   
const int INF = 1<<29;
typedef long long ll;
using namespace std;


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

    int n;
    cin >> n;
    bool ok = false;
    while (n > 0) {
        if (n % 10 == 7)
            ok = true;
        n /= 10;
    }
    cout << (ok ? "Yes" : "No");

    #ifndef ONLINE_JUDGE   
    //std::cout << '\n' << "Time elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
    #endif
    return 0;
}


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

#include <algorithm>
#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#define DEBUG(x) std::cout << '>' << #x << ':' << x << '\n';
#define PRINTVEC(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i] << ' '; std::cout << '\n';
#define PRINTPAIR(x) for (int i = 0; i < (int)x.size(); i++) std::cout << x[i].first << ' ' << x[i].second << '\n'; std::cout << '\n';
#define PRINTSET(x) for (auto it = x.begin(); it != x.end(); it++) { std::cout << *it << ' '; } std::cout << '\n';
#define io std::ios_base::sync_with_stdio(false);std::cin.tie(NULL);   
const int INF = 1<<29;
typedef long long ll;
using namespace std;


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

    int n;
    cin >> n;
    bool ok = false;
    while (n > 0) {
        if (n % 10 == 7)
            ok = true;
        n /= 10;
    }
    cout << (ok ? "Yes" : "No");

    #ifndef ONLINE_JUDGE   
    std::cout << '\n' << "Time elapsed : " << 1.0 * clock() / CLOCKS_PER_SEC << " sec \n";
    #endif
    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

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

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
typedef pair<ll,ll> pii;
#define fi first
#define se second
#define mod 1000000007
#define ios ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define endl "\n"
int main()
{
	ios;
	ll n,d;
	cin>>n;
	while(n!=0)
	{
		d=n%10;
		if(d==7)
		{
			cout<<"Yes"<<endl;
			exit(0);
		}
		n=n/10;
	}
	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

// g++ -std=c++11 a.cpp
#include<iostream>
#include<vector>
#include<string>
#include<algorithm>
#include<map>
#include<set>
#include<unordered_map>
#include<utility>
#include<cmath>
#include<random>
#include<cstring>
#include<queue>
#include<stack>
#include<bitset>
#include<cstdio>
#include<sstream>
#include<iomanip>
#include<assert.h>
#include<typeinfo>
#define loop(i,a,b) for(long long i=a;i<b;i++)
#define rep(i,a) loop(i,0,a)
#define FOR(i,a) for(auto i:a)
#define pb push_back
#define all(in) in.begin(),in.end()
#define shosu(x) fixed<<setprecision(x)
#define show1d(v) {rep(_,v.size())cout<<" "<<v[_];cout<<endl;}
#define show2d(v) {rep(__,v.size())show1d(v[__]);}
using namespace std;
//kaewasuretyuui
typedef long long ll;
#define int ll
typedef int Def;
typedef pair<Def,Def> pii;
typedef vector<Def> vi;
typedef vector<vi> vvi;
typedef vector<pii> vp;
typedef vector<vp> vvp;
typedef vector<string> vs;
typedef vector<double> vd;
typedef vector<vd> vvd;
typedef pair<Def,pii> pip;
typedef vector<pip>vip;
#define mt make_tuple
typedef tuple<int,int,int,int> tp;
typedef vector<tp> vt;
template<typename A,typename B>bool cmin(A &a,const B &b){return a>b?(a=b,true):false;}
template<typename A,typename B>bool cmax(A &a,const B &b){return a<b?(a=b,true):false;}
const double PI=acos(-1);
const double EPS=1e-9;
Def inf = sizeof(Def) == sizeof(long long) ? 2e18 : 1e9+10;
int dx[]={-1,0,1,0};
int dy[]={0,1,0,-1};
#define yes cout<<"Yes\n"
#define no cout<<"No\n"

signed main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	
	string s;
	cin>>s;
	if(s[0]=='7'||s[1]=='7'||s[2]=='7')yes;
	else no;
}












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

#include <bits/stdc++.h>

using namespace std;

int main(){
	string s;
	cin >> s;
	bool ok = false;
	for(int i=0;i<s.size();++i){
		if(s[i] == '7') ok = true;
	}

	cout << (ok ? "Yes" : "No") << '\n';
	return 0;
}

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

/*-----------Author: Araz Jabrayilov---------*/
/*------------@araz17----(~~)#5371-----------*/

#include <bits/stdc++.h>

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

using namespace std;

int a[4];

int main()
{
    ios_base :: sync_with_stdio(0);
    cin.tie(0), cout.tie(0);

    int flag = 0;
    for(int i = 0; i < 3; i++){
      cin >> a[i];
      if(a[i] == 7){
        flag++;
      }
    }

    if(flag > 0){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }


    return 0;
}


Compiler output:
main.c:4:10: 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;
#define ll long long
#define pb push_back
#define F first
#define S second
const int mod = 1e9+7, A = 1e2+5;

int main()
{
	ios_base::sync_with_stdio(0),cin.tie(0),cout.tie(0);
	string s;
	cin >> s;
	for (auto i : s)
		if (i == '7')
			return cout << "Yes", 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

#pragma GCC optimize ("O3")
#include <bits/stdc++.h>
#define abdelrahman010 ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
typedef long long ll;
using namespace std;
const int N = 1e3 + 5;
int main() {
    abdelrahman010
    char c;
    for(int i = 0;i < 3;i++) {
        cin >> c;
        if(c == '7')
            return cout << "Yes" , 0;
    }
    cout << "No";
    return 0;
}

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<iostream>
using namespace std;
#define int long long
int32_t main(){
	
	int n;
	cin>>n;
	int a[n+1];
	for(int i=0;i<n;i++) cin>>a[i];
	int dp[n+1];
	dp[n-1] = a[n-1];
	for(int i=n-3;i>=0;i=i-2){
		dp[i] = dp[i+2] + a[i];
	}
	if(n>=2)dp[n-2] = a[n-2];
	for(int i=n-4;i>=0;i=i-2) dp[i] = dp[i+2] + a[i];
	if(n%2==0) cout<<max(dp[0],dp[1]);
else{
	int ans = dp[2];
	for(int i=1;i<n-2;i++){
		ans = max(ans,dp[i+2] + dp[i-1] - dp[i+1]);
	}
	cout<<ans;
}
	return 0;
}

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

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d,e,f,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z;
    int ar[100005],br[100005];

    cin>>n;
    f=0;
    while(n>=10)
    {
        a=n%10;
        //cout<<a;
        if(a==7){cout<<"Yes"<<endl;f=1;}
        n=n/10;

    }
    if(n==7){cout<<"Yes"<<endl;f=1;}
    if(f==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 n;
  cin>>n;
  auto it = find(n.begin(),n.end().'7');
  if(it!=n.end()){
    cout<<"YES\n";
  }
   else{
     cout<<"NO\n";
   }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:36: error: expected unqualified-id before '7'
    7 |   auto it = find(n.begin(),n.end().'7');
      |                                    ^~~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define fastio ios_base::sync_with_stdio(false);cin.tie(NULL);
#define MEM(a, b) memset(a, (b), sizeof(a))
#define FOR(i, j, k, in) for (int i=j ; i<k ; i+=in)
#define RFOR(i, j, k, in) for (int i=j ; i>=k ; i-=in)
#define REP(i, j) FOR(i, 0, j, 1)
#define RREP(i, j) RFOR(i, j, 0, 1)
#define all(cont) cont.begin(), cont.end()
#define rall(cont) cont.rbegin(), cont.rend()
#define FOREACH(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define MP make_pair
#define pb push_back
#define PI 3.1415926535897932384626433832795
typedef long long ll;
#define MOD 1000000007
ll gcd(ll a,ll b){if (b == 0)return a;return gcd(b, a % b);} 
#define cases int t;cin>>t;while(t--) 

int main(){
    char c;
    cin>>c;
    if(c == '7'){
        cout<<"Yes\n";
        return 0;
    }
    cin>>c;
    if(c == '7'){
        cout<<"Yes\n";
        return 0;
    }
    cin>>c;
    if(c == '7'){
        cout<<"Yes\n";
        return 0;
    }
    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>
#include<vector>
#include<math.h>
#include<algorithm>
#include<memory>
#include<string>

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

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

#include<iostream>
#include<vector>
#include<math.h>
#include<algorithm>
#include<memory>
#include<string>

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

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

#include<iostream>
#include<vector>
#include<math.h>
#include<algorithm>
#include<memory>
#include<string>

int main() {
	char N[4];
	std::cin >> N;
	if (N[0] == '7' || N[1] == '7' || N[2] == '7') {
		std::cout << "Yes" << std::endl;
	}
	else {
		std::cout << "No" << std::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 main(){
	int a;
	cin>>a;
	if((700<=a&&a<800)||(70<=(a%100)&&(a%100)<80)||(a%10==7)) cout<<"Yes";
	else cout<<"No";
	return 0;
}

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

import java.util.Scanner;

public class Lucky7 {
	public static void main(String[] args){
    	Scanner sc = new Scanner(System.in);
    	int N = sc.nextInt();
      	boolean res = false;
      	while(N>0){
          	int x = N%10;
          	if(x==7){
            	res = true;
              	break;
            }
          	N/=10;
        }
      	if(res) System.out.print("Yes");
      	else System.out.print("No");
    }
}

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

#include<bits/stdc++.h>
using namespace std;
main(){
int i,j,k,l,m,n;
while(cin>>n){
   i=0;
   while(n>0){
    if(n%10==7) i++;
        n/=10;
   }
   if(i>0)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>
using namespace std;

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


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

class Main{
	public static void main(String[] args){
    	int N = Integer.parseInt(args[0]);
      	boolean res = false;
      	while(N){
          	int x = N%10;
          	if(x==7){
            	res = true;
              	break;
            }
          	N/=10;
        }
      	if(res) System.out.print("Yes");
      	else System.out.print("No");
    }
}

Compiler output:
Main.java:5: error: incompatible types: int cannot be converted to boolean
      	while(N){
      	      ^
1 error
Language: Java

class Main{
	public static void main(String[] args){
    	int N = Integer.parseInt(args[0]);
      	boolean res = false;
      	while(N>0){
          	int x = N%10;
          	if(x==7){
            	res = true;
              	break;
            }
          	N/=10;
        }
      	if(res) System.out.print("Yes");
      	else System.out.print("No");
    }

Compiler output:
Main.java:15: error: reached end of file while parsing
    }
     ^
1 error
Language: C

#include <bits/stdc++.h>

using namespace std;


int main() {

    int n;

    cin >> n;

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

    return 0;
}


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

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

int main(){
    string number;
    cin >> number;
    int numberF = number.find("7");
    if (numberF == string::npos){
        cout << "NO" << endl;
    }else{
        cout << "YES" << endl;
    }
   return 0;

} /

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

import java.util.Scanner;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int N = in.nextInt();
      int hundreds = N / 100;
      int tens = (N / 10) % 10; // (n % 100) / 10
      int ones = N % 10;
       if ((hundreds == 7) || (tens == 7) || (ones == 7))
            System.out.println("Yes");
       else
            System.out.println("No");
        
  
    }
}

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

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

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

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

#include<bits/stdc++.h>
#define watch(x) cout << (#x) << " is " << (x) << endl
typedef long long ll;
using namespace std;
int static fast = [](){
  ios::sync_with_stdio(false);
  cin.tie(0); cout.tie(0); return 0;
}();
// freopen("input.txt", "r", stdin);

int main() {
	string s;
  	cin >> s;
  	for(char c: s) {
    	if ( c == '7') {
        	cout << "Yes" << endl;
          	return 0;
        }
    }
  	cout << "No" << endl;
    return 0;
}



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

/**
 * code generated by JHelper
 * More info: https://github.com/AlexeyDmitriev/JHelper
 * @author zjsdut
 */

#include "utils.hpp"
using namespace std;

class ALucky7 {
  static void SOLVE() {
    string s;
    scan(s);
    FOR (x, s) {
      if (x == '7') {
        println("Yes");
        return;
      }
    }
    println("No");
  }

public:
  static void solve(std::istream &in, std::ostream &out) {
    auto cin_buff = std::cin.rdbuf(in.rdbuf());
    auto cerr_buff = std::cerr.rdbuf(std::cout.rdbuf(out.rdbuf()));
    SOLVE();
    std::cout.rdbuf(std::cerr.rdbuf(cerr_buff));
    std::cin.rdbuf(cin_buff);
  }
};


int main() {
  ALucky7 solver;
  std::istream& in(std::cin);
  std::ostream& out(std::cout);
  solver.solve(in, out);
  return 0;
}


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

#include <iostream>
#include <string>
#include <vector>
#include <cmath>
#include <deque>
#include <queue>//for queue and priority_queue
#include <fstream>
#include <iomanip>
#include <stack>
#include <algorithm>
#define endl "\n"
typedef long long ll;

using namespace std;
void Lancer() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); }

int  frq[200];
int main(){
	Lancer();
	//cout << fixed << setprecision(12);

	ll n;
	bool ch = false;
	cin >> n;
	while (n)
	{
		if (n % 10 == 7)
			ch = true;
		n /= 10;
	}
	cout << (ch == true ? "Yes" : "No");
	cout << endl;
	return 0;
}


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

/******************************************************************************

                              Online C++ Compiler.
               Code, Compile, Run and Debug C++ program online.
Write your code in this editor and press "Run" button to compile and execute it.

*******************************************************************************/

#include <bits/stdc++.h>

using namespace std;

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


    

    return 0;
}


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

#include <bits/stdc++.h>
#define ll long long
#define ld long double
#define endl "\n"
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.precision(10);

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

N=input()
for i in range(len(N)):
    if N[i]=="7":
        print("Yes")
        exit()
print("No")

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

#include "bits/stdc++.h"
using namespace std;
#define test int t; cin >> t; while (t--)
#define fast ios::sync_with_stdio(NULL); cin.tie(NULL)
#define mod 1000000007
#define endl "\n"
#define gcd(m,n) __gcd(m,n)
#define lcm(m,n) m*(n/GCD(m,n))
#define all(v) v.begin(),v.end()
#define ll long long
typedef vector<ll> vecll;
typedef vector<int> veci;
typedef vector<char> vecc;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<int> vi;
#define pb push_back
#define mp make_pair
#define time 1.0 * clock() / CLOCKS_PER_SEC


int main(){
    fast;
    // test{
    //     ll n,s=0;cin>>n;
    //     vecll a(n);
    //     set <ll> se;
    //     for(auto &x:a){cin>>x;s+=x;se.insert(x);}
    //     vecll pra,prb;
    //     pra.pb(a[0]),prb.pb(s);
    //     for(int i=1;i<n;i++){
    //         pra.pb(a[i]+pra[i-1]);
    //         prb.pb(prb[i-1]-a[i-1]);
    //     }
    //     ll c=0,z=1;
    //     for(auto x:se){
    //         if(x!=z){c=1;break;}
    //         z++;
    //     }
    //     if(c)cout<<0<<endl;
    //     else{
    //         vecll ans;
    //         for(int i=0;i<n-1;i++){
    //             if(s-pra[i] == ((n-i)*(n-i-1))/2 and pra[i]==((i+1)*(i+2))/2){ans.pb(i+1);}
    //         }   
    //         for(int i=n-1;i>=0;i--){
    //             if(s-prb[i] == ((n-i)*(n-i-1))/2 and prb[i]==((i+1)*(i+2))/2){ans.pb(i+1);}
    //         }
    //         cout<<ans.size()<<endl;
    //         for(auto x:ans)cout<<x<<" "<<n-x<<endl;
    //     }


    // }
    string s;
    cin>>s;
    if(s[1]=='7'or s[0]=='7' or s[2]=='7')cout<<"Yes";
    else cout<<"No";
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:57:14: error: unable to find character literal operator 'operator""or' with 'char' argument
   57 |     if(s[1]=='7'or s[0]=='7' or s[2]=='7')cout<<"Yes";
      |              ^~~~~
a.cc:57:19: error: expected ')' before 's'
   57 |     if(s[1]=='7'or s[0]=='7' or s[2]=='7')cout<<"Yes";
      |       ~           ^~
      |                   )
Language: C

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

int main() {

    string in;
    cin >> in;


    string ans = "No";
    if(in.at(0) == '7') ans = "Yes";
    if(in.at(1) == '7') ans = "Yes";
    if(in.at(2) == '7') ans = "Yes";

    cout << ans << endl;

}   

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

#include <bits/stdc++.h>
using namespace std;
#define rep(i,m,n) for(int (i)=(int)(m);i<(int)(n);i++)
#define REP(i,n) rep(i,0,n)
#define ll long long
#define ull unsigned long long
int main()
{
  ll N;
  cin >> N;
  if((N % 10 == 7) || (N / 100 == 7) || ((N / 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() {
  bool flg = false;
  string s;
  cin >> s;

  for (int i = 0; i < 3; i++) if (s[i] == '7') flg = true;
  if (flg) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }

  return 0;
}


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

#include <bits/stdc++.h>

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

    if (N[0] == '7' || N[1] == '7' || N[2] == '7') {
        std::cout << "Yes\n";
    } else {
        std::cout << "No\n";
    }

    return 0;
}


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

#include <cstdio>
#include <string>
#include <iostream>
using namespace std;
int main(){
	string s;
	cin >> s;
	if (s[0] == '7' || s[1] == '7' || s[2] == '7'){
		printf("Yes\n");
	}else{
		printf("No\n");
	}
}

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

N = input()
n = list(N)

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

#include <bits/stdc++.h> 
#define ll long long
#define F first
#define S second
#define FF first.first
#define FS first.second
#define pb push_back
using namespace std;
const ll N=1000006, INF=1e10, MOD=998244353;
     
ll n, q=1, a[N], b[N], c[N], f[N], m, x, y, z, o=3, h, w, mx, mn, ans=INF, Ans;
string s, S;
vector <ll> v[N];
pair<ll, ll> p[N];


main(){ios_base::sync_with_stdio(false), cin.tie(0);
                    
    cin>>n;
    if(n%10==7 || n%100=7 || n%1000==7){
    	cout<<"YES";
	}else{
		cout<<"NO";
	}
}

Compiler output:
a.cc:17:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   17 | main(){ios_base::sync_with_stdio(false), cin.tie(0);
      | ^~~~
a.cc: In function 'int main()':
a.cc:20:16: error: lvalue required as left operand of assignment
   20 |     if(n%10==7 || n%100=7 || n%1000==7){
      |        ~~~~~~~~^~~~~~~~
Language: C

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

int n;

int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	cin >> n;
	if(n % 10 == 7 || n / 10 % 10 == 7 || n / 100 == 7) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
	return 0;
}


Compiler output:
main.c:1: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 <complex>
#include <climits>

using namespace std;

using ll = long long;

int main() {
    string n;

    cin >> n;

    if(n.at(0) == '7' || n.at(1) == '7' || n.at(2) == '7')
        cout << "Yes";
    else
        cout << "No";
}


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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int i,p=0,s=0;
	string w;
	cin>>w;
	for(i=0;i<w.size();i++) if(w[i]!=7)s+=w[i];
    for(i=0;i<w.size();i++) p+=w[i];
    int detail=p-s;
    if(detail!=0&&detail%7==0) cout<<"Yes";
    else cout<<"No";
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
	int i;
	string w;
	cin>>w;
	for(i=0;i<w.size();i++){
		int k=w.size()-1;
	    if(w[i]==7) cout<<"Yes";
		else if(i==k&&w[i]!=7){
			 cout<<"No";
			 return 0;
		}
		else continue;
	}
	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 <string>
#include <cmath>
#include <vector>


using namespace std;



int main()
{
	string in;

	cin >> in;

	if (string::npos != in.find('7'))
	{
		cout << "Yes";
	}
	else
	{
		cout << "No";
	}
}

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

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

template<typename T, typename U> bool chmin(T &a, const U &b) {
	return (a > b ? a = b, true : false);
}
template<typename T, typename U> bool chmax(T &a, const U &b) {
	return (a < b ? a = b, true : false);
}
const long long INF = 1000000000;

typedef long long ll;

#define writeln(n) cout<<n<<"\n";

typedef pair<int, int> P;
typedef pair<string, int> Psi;



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

	int n;
	cin>>n;

	if(n/100 ==7){
		writeln("Yes");
		return 0;
	}
	n%=100;
	if(n /10 ==7){
		writeln("Yes");
				return 0;
	}
	n%=10;
	if(n == 7){
		writeln("Yes");
						return 0;

	}

	writeln("No");
}


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

#include<bits/stdc++.h>
using namespace std;
#define FASTIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define ll long long
#define pii pair<int,int>
#define pll pair<ll,ll>
#define pil pair<int,ll>
#define pli pair<ll,int>
#define mod 1000000007
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
ll power(ll a,int n){
	if(n==0)
	  return 1;
	if((n%2)==0)
	  return power(a*a,n/2);
	else
	  return a*power(a*a,n/2);    
}
int main(){
FASTIO
int n;
cin>>n;
vector<int> v;
while(n){
   v.pb(n%10);
   n=n/10;
}
bool is=false;
for(int i=0;i<3;i++){
	if(v[i]==7)
		is=true;
}
if(is)
   cout<<"Yes";
else
	cout<<"No";
return 0;
}


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

#include <bits/stdc++.h>
#define endl '\n'
// using namespace std;

std::string hasSeven(int N) {
    int tmp = 0;
    while(N>0){
        tmp = tmp*10 + N%10; 
        N = N/10;
        if (tmp == 7) {
            return "Yes";
        }
    }
    return "No";
}
int main() {
    int N;
    std::cin >> N;
    std::cout << hasSeven(N) << 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

number = int(input())
flag = False
for i in range(len(number)):
	if int(number[i])==7:
		flag = True
		break
if(flag):
	print("Yes")
else:
	print("No")
























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

#include<iostream>
using namespace std;

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

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

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

int N;

int main(){
	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:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C


// Problem : A - Lucky 7
// Contest : AtCoder Beginner Contest 162
// URL : https://atcoder.jp/contests/abc162/tasks/abc162_a
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include "bits/stdc++.h"
using namespace std;
using ll = long long;
#define cerr if(1)cerr
#define size(x) (int)x.size()

const int N = 1e6 + 1;

string s;

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

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


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