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

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

char a[5];

int main()
{
    for(int i=1;i<=3;i++)
    {
        scanf("%c",&a[i]);
        if(a[i]=='7')
        {
            printf("Yes\n");
            return 0;
        }
    }
    printf("No\n");
    return 0;
}

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

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

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

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

const double PI=3.14159265358979323846;


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

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

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

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

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

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

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



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

Compiler output:
a.cc: In function 'int main()':
a.cc:76:5: error: 'retu' was not declared in this scope
   76 |     retu
      |     ^~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before '}' token
    6 |     printf("Yes")
      |                  ^
      |                  ;
    7 |   }
      |   ~               
main.c:9:18: error: expected ';' before '}' token
    9 |     printf("Yes")
      |                  ^
      |                  ;
   10 |   }
      |   ~               
main.c:12:18: error: expected ';' before '}' token
   12 |     printf("Yes")
      |                  ^
      |                  ;
   13 |   }
      |   ~               
main.c:15:17: error: expected ';' before '}' token
   15 |     printf("No")
      |                 ^
      |                 ;
   16 |   }
      |   ~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: 'n' was not declared in this scope
   20 |   rep(i,n){
      |         ^
a.cc:2:39: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0; i < (n); i++)
      |                                       ^
a.cc:21:8: error: 's' was not declared in this scope
   21 |     if(s[i]=='7'){
      |        ^
Language: C

#include <cstring>
#include <map>
#include <unordered_map>
#include <string>
#include <list>
#include <vector>
#include <algorithm>
#include <queue>
#include <stack>
#include <cstdio>
#include <iostream>
#include <set>
#include <unordered_set>
using namespace std;

#define MAX(a,b) (a>b?a:b)
#define MIN(a,b) (a<b?a:b)
typedef long long ll;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<int, int> pii;

int gi() {
    int a;
    scanf("%d", &a);
    return a;
}

ll gli() {
    ll a;
    scanf("%lld", &a);
    return a;
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n = gi();
    int f = 0;
    while (n) {
        if (n%10 == 7)
            f = 1;
        n/=10;
    }
    printf(f ? "Yes\n": "No\n");

    return 0;
}


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

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

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



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

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

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>
using namespace std;

int main(void) {
	string num;
	cin >> num;
	for (char a : num)
		if (a == '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++

using namespace std;

void solve(long long N){
    
	bool ans = false;
    
    if(N/100 == 7){
        ans = true;
    }
    if((N%100)/10 == 7){
        ans = true;
    }
    if((N%10) == 7){
        ans = true;
    }

  	if( ans == true){
    	cout << "Yes" << endl;
    }else{
       	cout << "No" << endl;
    }

}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long N;
    scanf("%lld",&N);
    solve(N);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int)':
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:18:26: error: 'endl' was not declared in this scope
   18 |         cout << "Yes" << endl;
      |                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:20:9: error: 'cout' was not declared in this scope
   20 |         cout << "No" << endl;
      |         ^~~~
a.cc:20:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:20:25: error: 'endl' was not declared in this scope
   20 |         cout << "No" << endl;
      |                         ^~~~
a.cc:20:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc: In function 'int main()':
a.cc:28:5: error: 'scanf' was not declared in this scope
   28 |     scanf("%lld",&N);
      |     ^~~~~
Language: C

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

string s;

int main()
{
    cin >> s;
    for(auto x : s)
    {
        if(x == '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>

void main()
{
   int n,i;
 	cin>>n;
  	for(i=0;i<3;i++)
    {
      if(n%10 == 7)
      {
        cout<<"Yes";
        return;
      }
      n/=10;
    }
  	cout<<"No";
  return;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin>>n;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:12:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |         return;
      |         ^~~~~~
a.cc:16:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |         cout<<"No";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:17:3: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |   return;
      |   ^~~~~~
Language: C

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

int main(){
  int N;
  cin >> N;
  int sum = 0;
  for (int i = 1; i < N + 1; i++){
    if (i % 3 != 0 && i % 5 != 0){
      sum += i;
    }
  }
  cout << sum << 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() { //a
    int n;
    cin >> n;
    string s = to_string(n);
    for(int i = 0; i < 3; i++) {
        if(s.at(i) == '7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}

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

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

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

  else if (find("7")) {
    cout << "yes" << endl;
  }
  else {
    cout << "no" << endl;
  }
}
     
    

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

#include<iostream>
using namespace std;
int main()
{
  string n;
  char t;
  int j=0;
  cin >> n;
  for(int i=0;i < 3;i++)
  {
    t=n.at(i);
    if(t=='7')
    {
      cout << "Yes";
      j=1;
      break;
    }
  }
  if(j==0)
  {
    cout << "No";
  }
  return 0;
}

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

N = int(input())
if '7' in str(N): print ("yes")
else: print ("No")

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

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


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'ios_base' has not been declared
    6 |   ios_base::sync_with_stdio(0);
      |   ^~~~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin.tie(0);
      |   ^~~
a.cc:8:3: error: 'string' was not declared in this scope
    8 |   string s;
      |   ^~~~~~
a.cc:9:10: error: 's' was not declared in this scope
    9 |   cin >> s;
      |          ^
a.cc:12:7: error: 'cout' was not declared in this scope
   12 |       cout << "Yes";
      |       ^~~~
a.cc:15:4: error: expected '}' at end of input
   15 |   }
      |    ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C

#include<bits/stdc++.h>

using namespace std;

typedef long long ll;

void solve(){
string s;
cin>> s;
for(auto c: s)
  if(c=='7'){
    cout << "Yes";
    return;
  }
cout << "No";
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);
    ll t = 1, i = 1;
    //cin >> t;
    while(t--){
        solve();
        ++i;
    }
    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;
using ll = long long;
#define debug(a) cout << #a << ": " << a << endl
#define sz(a) int(a.size())
#define rep(i,n) for(int i=0;i<n;i++)
#define forr(i, st, en) for(int i = st; i < en; i++)
#define all(v) (v).begin(),(v).end()
#define fast cin.tie(0); ios::sync_with_stdio(false)

int32_t main(){ fast;
	
	string s; cin>>s;
	cout<<(s[0] == '7' || s[1] == '7' || s[2] == '7' ? "Yes" : "No")<<endl;
}


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

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

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

Compiler output:
main.c: In function 'main':
main.c:6:18: error: expected ';' before '}' token
    6 |     printf("Yes")
      |                  ^
      |                  ;
    7 |   }
      |   ~               
main.c:9:18: error: expected ';' before '}' token
    9 |     printf("Yes")
      |                  ^
      |                  ;
   10 |   }
      |   ~               
main.c:12:18: error: expected ';' before '}' token
   12 |     printf("Yes")
      |                  ^
      |                  ;
   13 |   }
      |   ~               
main.c:15:17: error: expected ';' before '}' token
   15 |     printf("No")
      |                 ^
      |                 ;
   16 |   }
      |   ~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:33: error: lvalue required as left operand of assignment
    7 |     if (n[2] == '7' or n[1]='7' or n[0]='7')
Language: C

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

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

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

    return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |     if (s.at(i) == "7"){
      |         ~~~~~~~~^~~~~~
Language: C

#include<stdio.h>
int main()
{
int x;
  
  int a,flag=0;
  scanf("%d",&x);
  for(int i=0;x!=0;i++)
    {
    a=x%10;
  if(a==7)
    {
  break;
    flag=1;
  }
    x=x/10:
  }
  if(flag==1)
    printf("Yes");
  else
    printf("No");
      
}


Compiler output:
main.c: In function 'main':
main.c:16:11: error: expected ';' before ':' token
   16 |     x=x/10:
      |           ^
      |           ;
Language: C++

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

int main() {
  int A;
  cin>>A;
  if(A.at(0)==7||A.at(1)==7||A.(2)==7){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 'A', which is of non-class type 'int'
    7 |   if(A.at(0)==7||A.at(1)==7||A.(2)==7){
      |        ^~
a.cc:7:20: error: request for member 'at' in 'A', which is of non-class type 'int'
    7 |   if(A.at(0)==7||A.at(1)==7||A.(2)==7){
      |                    ^~
a.cc:7:32: error: expected unqualified-id before '(' token
    7 |   if(A.at(0)==7||A.at(1)==7||A.(2)==7){
      |                                ^
Language: C

#include <iostream>
 
using namespace std;
 
int main()
{
	long int N,i,sum=0;
	cin >> N;
	for (i = 1;i <= N;++i)
	{
		if (i % 15 == 0)
			continue;
		else if (i % 3 == 0)
			continue;
		else if (i % 5 == 0)
			continue;
		else 
		{
			sum += i;
		}
	}
	cout << sum;
	return 0;
}

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

#A

n = input()

l = set(list(n))
if "7" in l:
    print("Yes")
else:
    print("No")

Compiler output:
main.c:1:2: error: invalid preprocessing directive #A
    1 | #A
      |  ^
main.c:3:1: warning: data definition has no type or storage class
    3 | n = input()
      | ^
main.c:3:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:3:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    3 | n = input()
      |     ^~~~~
main.c:3:5: error: initializer element is not constant
main.c:5:1: error: expected ',' or ';' before 'l'
    5 | l = set(list(n))
      | ^
Language: C

#include <iostream>
using namespace std;
int main() {
    int N;
    cin>>N;
    int d1;
    int d2;
    int d3;
  
    d1=N/100;
    d2=(N-(d1*100))/10;
    d3=(N-(d1*100)-(d2*10));

    if((d1==7)||(d2==7)||(d3==7))
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
 
    return 0;
}

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

#include <bits/stdc++.h>


using namespace std;

int main() {

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

#include <stdio.h>
int main(void){
int n[3];
for(int i = 0; i < 3; i++)
scanf("%d",&n[i]);

for( i = 0; i < 3; i++){
if(n[i] == 7)printf("Yes");
else printf("No");
}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: 'i' undeclared (first use in this function)
    7 | for( i = 0; i < 3; i++){
      |      ^
main.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

/* package codechef; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
public class Main
{
	public static void main (String[] args) throws java.lang.Exception
	{
	    boolean found = false;
		Scanner input = new Scanner(System.in);
		String s = input.next();
		for(long i=0;i<s.length();i++){
		    if(s.charAt(i)=='7'){
		        System.out.println("Yes");
		        found = true;
		    }
		}
		if(!found){
		    System.out.println("No");
		}
	}
}


Compiler output:
Main.java:16: error: incompatible types: possible lossy conversion from long to int
		    if(s.charAt(i)=='7'){
		                ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: C

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

string n;
int main() {
    cin >> n;
    if(n[0] - '0' == 7 || n[1] - '0' == 7 || n[2] - '0' == 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<stdio.h>
using namespace std;
int main(){
  string S;
  cin >> S;
  if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
  else cout <<"No";

}


Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:4:3: error: unknown type name 'string'; did you mean 'stdin'?
    4 |   string S;
      |   ^~~~~~
      |   stdin
main.c:5:3: error: 'cin' undeclared (first use in this function)
    5 |   cin >> S;
      |   ^~~
main.c:5:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:7: error: subscripted value is neither array nor pointer nor vector
    6 |   if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
      |       ^
main.c:6:13: error: subscripted value is neither array nor pointer nor vector
    6 |   if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
      |             ^
main.c:6:19: error: subscripted value is neither array nor pointer nor vector
    6 |   if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
      |                   ^
main.c:6:25: error: subscripted value is neither array nor pointer nor vector
    6 |   if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
      |                         ^
main.c:6:29: error: 'cout' undeclared (first use in this function)
    6 |   if(S[2]==S[3]&&S[4]==S[5])cout << "Yes";
      |                             ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,n) for (int i=a;i<n;i++)
#define pb push_back
#define fi first
#define se second
#define sz(A) (int)(A.size())
#define all(x) (x).begin(),(x).end()
#define caset int ___T; cin>>___T; for(int cs=1;cs<=___T;cs++)
#define get(c,x) (lower_bound(c.begin(),c.end(),x)-c.begin())
typedef long long ll;
typedef pair<int,int> PII;
typedef vector<int> VI;
const ll mod=1e9+7;
const int Max = 1e6+10;
ll powmod(ll a,ll b) {ll res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
void solve(){
	string s;
	cin>>s;
	if(s[0]=='7'||s[1]=='7'||s[2]=='7'){
		cout<<"Yes";
	} else{
		cout<<"No";
	}
}
int main() {
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0);
	//caset{
		solve();
	//}
  	return 0;
}






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

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

int main() {
  string test;
  int count;
  cin >> test;
  if(test[0]=='7') count++;
  if(test[1]=='7') count++;
  if(test[2]=='7') count++;
  
  if(count > 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

#include <bits/stdc++.h>

using namespace std;

int main(){
    int a,b,c,n;
    cin >> n;
    a = n/100;
    b = (n%100)/10;
    c = (n%10);

    if(a==7||b==7||c==7){
        cout << "Yes" <<endl;
    }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

// Lucky 7

#include <iostream>
#include <vector>
#include <math.h>
#include <string>
#include <map>
#include <stdio.h>
#include <string.h>
#include <initializer_list>
#include <algorithm>
#include <numeric>
#include <iomanip>
#include <queue>
#include <set>
using namespace std;
const int INF = 1 << 29;
int main ()
{
    string N;
    cin >> N;
    if (N.find('7')!=string::npos) {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
    
    

    return 0;
}

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

n = input()
sum = 0
for i in range(n):
    rem = n%10
    sum +=rem
    n = n//10
if sum >= 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 'sum'
    2 | sum = 0
      | ^~~
Language: C

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

int main(){

    int N;
    cin >> N;

    std::ostringstream oss;

    oss << N;
    string str = oss.str();
    for(int i = 0; i < 3; i++){
        if(str[i]== '7'){
            cout << "Yes" << endl;        
            return 0;
        }

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



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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{ int n,found=0;
  cin>>n;

 string s=to_string(n);
 for(int i=0;i<3;i++)
 { if(s[i]=='7')
     {found=1;break;}
 }

 if(found==1)
 {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

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

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

#include<iostream>
#include<string>

using namespace std;

string N;

int main() {
	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 main() {
    char N;
    // string N_str;
    // cin >> N;
    for (int i = 0; i < 3; i++) {
        cin >> N;
        if (N == '7') {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
}


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

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

int main(void) {
	string num;
	cin >> num;
	for (char a : num)
		if (a == '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>
//#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:4:10: fatal error: iostream: No such file or directory
    4 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

clude <bits/stdc++.h>
using namespace std;
void fast(){
cin.tie(0);
cin.sync_with_stdio(0);
}
int main()
{
    fast();
    string n;
    cin>>n;
    if(n.find("7")!=string::npos){cout<<"Yes";}
    else cout<<"No";
return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <bits/stdc++.h>
      | ^~~~~
a.cc: In function 'void fast()':
a.cc:4:1: error: 'cin' was not declared in this scope
    4 | cin.tie(0);
      | ^~~
a.cc: In function 'int main()':
a.cc:10:5: error: 'string' was not declared in this scope
   10 |     string n;
      |     ^~~~~~
a.cc:11:5: error: 'cin' was not declared in this scope
   11 |     cin>>n;
      |     ^~~
a.cc:11:10: error: 'n' was not declared in this scope
   11 |     cin>>n;
      |          ^
a.cc:12:21: error: 'string' is not a class, namespace, or enumeration
   12 |     if(n.find("7")!=string::npos){cout<<"Yes";}
      |                     ^~~~~~
a.cc:12:35: error: 'cout' was not declared in this scope
   12 |     if(n.find("7")!=string::npos){cout<<"Yes";}
      |                                   ^~~~
a.cc:13:10: error: 'cout' was not declared in this scope
   13 |     else cout<<"No";
      |          ^~~~
Language: C

#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
typedef long long  ll;
typedef long double lb;
using namespace std;
int main() {
    int a;
    cin >> a;
    if (a % 10 == 7)cout << "Yes";
    else if ((a / 10) % 10 ==7)cout<< "Yes";
    else if (a / 100 == 7)cout<< "Yes";
    else cout << "No";
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected ')' before '{' token
    9 |   if ((d1 == 7) {
      |      ~         ^~
      |                )
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C

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


 
int main() {
int N;
cin>>N;
if(N%10==7){
cout<<"Yes"<<endl;
}
  else if((N/10)%10==7){
cout<<"Yes"<<endl;
  }
  else if(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 <iostream>
   
    using namespace std;
    int main(void){
        // Your code here!
        int a;
        cin >> a;
        int b = a % 100;
        
        if(a%10 == 7||(b>69 && b<80)||(a>699 && a<800)){
            cout << "Yes" <<endl;
        }else{
            cout << "No" << endl;
        }
        

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

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

int main(){
    string s,ans;
    cin>>s;
    if((s[0]=='7')||(s[1]=='7')||(s[2]=='7')) ans="Yes";
    else ans="No";
    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
using namespace std;

	int main(){
    int n,k,l,o;
      cin>>n;
      n/100==k;
        (n-k*100)/10==l;
        (n-k*100-l*10)==o;
      if(k==7||l==7||o==7){
      cout<<"Yes"<<endl;
      }
      else{cout<<"No"<<endl;}
    }

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int main()':
a.cc:6:7: error: 'cin' was not declared in this scope
    6 |       cin>>n;
      |       ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #include
a.cc:11:7: error: 'cout' was not declared in this scope
   11 |       cout<<"Yes"<<endl;
      |       ^~~~
a.cc:11:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:20: error: 'endl' was not declared in this scope
   11 |       cout<<"Yes"<<endl;
      |                    ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include
a.cc:13:12: error: 'cout' was not declared in this scope
   13 |       else{cout<<"No"<<endl;}
      |            ^~~~
a.cc:13:12: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:24: error: 'endl' was not declared in this scope
   13 |       else{cout<<"No"<<endl;}
      |                        ^~~~
a.cc:13:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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


int main (){
	int a;
	cin >> a ;
	int j = a%100;
	int k = j%10;
	if (k == 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

using namespace std;
 
int main() {
	int n;
	bool ret = false;
	cin >> n;
	while (1) {
		if ((n) % 10 == 7) {
			ret = true;
			break;
		}
		if (n / 10 < 1) n /= 10;
		else {
			ret = false;
			break;
		}
	}
	if (ret) printf("Yes\n");
	else printf("No");
	return 0;
}

Compiler output:
main.c:1:1: error: unknown type name 'using'
    1 | using namespace std;
      | ^~~~~
main.c:1:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    1 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool ret = false;
      |         ^~~~
main.c:1:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | using namespace std;
main.c:5:20: error: 'false' undeclared (first use in this function)
    5 |         bool ret = false;
      |                    ^~~~~
main.c:5:20: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: 'cin' undeclared (first use in this function)
    6 |         cin >> n;
      |         ^~~
main.c:9:31: error: 'true' undeclared (first use in this function)
    9 |                         ret = true;
      |                               ^~~~
main.c:9:31: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:18:18: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   18 |         if (ret) printf("Yes\n");
      |                  ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | using namespace std;
main.c:18:18: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   18 |         if (ret) printf("Yes\n");
      |                  ^~~~~~
main.c:18:18: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:14: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   19 |         else printf("No");
      |              ^~~~~~
main.c:19:14: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include <iostream>
using namespace std;

int check(string s){
    for (int i = 0; i < s.length(); i++){
        if (s[i] == '7') return 1;
    }
    return 0;
}


int main()
{
    string s;
    cin >> s;
    if (check(s)) 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;
 
 
void main(){
	int t=0;
	cin>>t;
	while(t!=0){
		int a=t%10;
		if(a==7){
			cout<<"Yes";
          		break;
		}
		t/=10;
    }
	cout<<"No";
}

Compiler output:
a.cc:5:1: error: '::main' must return 'int'
    5 | void main(){
      | ^~~~
Language: C

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

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

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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#define ARB ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define ll long long
#define bp  __builtin_popcount
using namespace std;
using namespace __gnu_pbds;
typedef tree<int,null_type,less<int>,rb_tree_tag, tree_order_statistics_node_update> indexed_set;
const int maxn=1e5+5;
const  double EPS = 1e-14;

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


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

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

#include  <iostream>
#include  <algorithm>
#include  <cstddef>
#include  <string>

using namespace std;

#define rep(i, n) for(int i = 0; i < n; i++)
#define lrep(i, n, m) for(int i = n; i < m; i++)

const int MAX = INT_MAX;

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


Compiler output:
a.cc:11:17: error: 'INT_MAX' was not declared in this scope
   11 | const int MAX = INT_MAX;
      |                 ^~~~~~~
a.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; this is probably fixable by adding '#include <climits>'
    2 | #include  <algorithm>
  +++ |+#include <climits>
    3 | #include  <cstddef>
Language: C

#include <iostream>
#include <fstream>
#include <stdio.h>
#include <algorithm>
#include <string>
#include <cmath>
#define REP(i, n) for(int i = 0; i < n; i++)
using namespace std;
 
int main() {
	cin.tie(0);
    ios::sync_with_stdio(false);
 
    int n, tmp1, tmp2;
    cin >> n;
    string ans="No";
    tmp1 = n % 10;
    tmp2 = n % 100;

    if (n / 100 == 7){
      ans = "Yes";
    }

    if (tmp2 / 10 == 7){
      ans = "Yes";
    }

    if (tmp1 / 10 == 7){
      ans = "Yes";
    }

    cout << ans;    

}

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

#include<iostream>
using namespace std;

int main() {
	int n;
	cin >> n;
	bool flag = false;
	for (int i = 0; i < 3; i++) {
		if (n % 10 == 7) {
			flag = true;
			break;
		}
		n /= 10;
	}
	if (flag)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;

	return 0;
}

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

#include<iostream>
using namespace std;


int main () {

    int N;
    cin>>N;

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

    if (A==7||B==7||O==7||P==7){

        cout<<"Yes"<<endl;
    }

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

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

#include<bits/stdc++.h>
using namespace std;
void main()
{
  int N;
  cout<<"enter no. between 100 and 999";
  cin>>N;
  
  while(N>0)
  {
    if (N%10==7)
      cout<<"yes";
    N/=10;
  }
  
  cout<<"no";
  getch();
}


Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:17:3: error: 'getch' was not declared in this scope; did you mean 'getc'?
   17 |   getch();
      |   ^~~~~
      |   getc
Language: C

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

#define int long long
#define pii pair<int, int>
#define pb push_back

signed main(){

    ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
    string s;
    cin >> s;
    bool found = 0;
    for(auto x: s){
        found |= (x == '7');
    }
    if(found){
        cout << "YES\n";
    }
    else{
        cout << "NO\n";
    }
    

    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main() {
    int N;
    cin >> N;

    int hP = N / 100;
    int tP = (N - (hP * 100)) / 10;
    int oP = N - (hP * 100 + tP * 10);

    if (hP == 7 || tP == 7 || oP == 7) {
        cout << "Yes" << endl;
    } else {
        cout << "No" << endl;
    }
}


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

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

int main() {
  int x,a,b,c,d;
  cin >> x;
  
  a = x / 100;
  b = x / 10;
  c = b % 10;
  d = x % 10;
  
  if (a = 7 || c = 7 || d = 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.