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

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

bool check(int a){
    int b=a/100;
    if(b==7){
        b=a/10;
        return true;
    }
    else if(b==7){
        b=a;
        return true;
    }
    else if(b==7){
        return true;
    }
    return false;
}

int main (void){
    int a=0;
    string s;
    bool ans=false;
    scanf(a);
    ans=check(a);
    if(ans){
        s ="yes";
    }
    else{
        s="no"
    }
    printf(s);
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: 'string' was not declared in this scope; did you mean 'stdin'?
   22 |     string s;
      |     ^~~~~~
      |     stdin
a.cc:24:11: error: invalid conversion from 'int' to 'const char*' [-fpermissive]
   24 |     scanf(a);
      |           ^
      |           |
      |           int
In file included from a.cc:1:
/usr/include/stdio.h:428:42: note:   initializing argument 1 of 'int scanf(const char*, ...)'
  428 | extern int scanf (const char *__restrict __format, ...) __wur;
      |                   ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
a.cc:27:9: error: 's' was not declared in this scope
   27 |         s ="yes";
      |         ^
a.cc:30:9: error: 's' was not declared in this scope
   30 |         s="no"
      |         ^
a.cc:32:12: error: 's' was not declared in this scope
   32 |     printf(s);
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N, C100, C10, C1;
  cin >> N;
  
  C100 = F / 100;
  F = F % 100;
  
  C10 = F / 10;
  C1 = F % 10;
  
  if(C100 % 7 == 0 || C10 % 7 == 0 || C1 % 7 == 0) cout << "Yes" << endl;
  else cout << "No" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'F' was not declared in this scope
    7 |   C100 = F / 100;
      |          ^
Language: C++

#include <iostream>
#include <string.h>
bool check(int a){
    int b=a/100;
    if(b==7){
        b=a/10;
        return true;
    }
    else if(b==7){
        b=a;
        return true;
    }
    else if(b==7){
        return true;
    }
    return false;
}

int main (void){
    int a=0;
    string s="no";
    bool ans=false;
    cin<<a;
    ans=check(a);
    if(ans){
        cout<< s <<"yes";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:5: error: 'string' was not declared in this scope
   21 |     string s="no";
      |     ^~~~~~
a.cc:21:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:23:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   23 |     cin<<a;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout<< s <<"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:26:16: error: 's' was not declared in this scope
   26 |         cout<< s <<"yes";
      |                ^
Language: C++

#include <iostream>
#include <string.h>
bool check(int a){
    int b=a/100;
    if(b==7){
        return true;
    }
    b=a/10;
    else if(b==7){
        return true;
    }
    b=a;
    else if(b==7){
        return true;
    }
    return false;
}

int main (void){
    int a=0;
    string s="no";
    bool ans=false;
    cin<<a;
    ans=check(a);
    if(ans){
        cout<< s <<"yes";
    }
    return 0;
}

Compiler output:
a.cc: In function 'bool check(int)':
a.cc:9:5: error: 'else' without a previous 'if'
    9 |     else if(b==7){
      |     ^~~~
a.cc:13:5: error: 'else' without a previous 'if'
   13 |     else if(b==7){
      |     ^~~~
a.cc: In function 'int main()':
a.cc:21:5: error: 'string' was not declared in this scope
   21 |     string s="no";
      |     ^~~~~~
a.cc:21:5: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:23:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   23 |     cin<<a;
      |     ^~~
      |     std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:26:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |         cout<< s <<"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:26:16: error: 's' was not declared in this scope
   26 |         cout<< s <<"yes";
      |                ^
Language: C

#include <stdio.h>

int main(){
    char a[4];
    scanf("%s",a);
    for(i=0;;i++){
        if(a[i]=='7'){
            printf("yes\n");
            break;
        }
        if(a[i]='\0'){
            printf("no\n");
            break;
        }
    }


}

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

N=tostring(io.read())
if N:sub(1,1) == "7" or N:sub(2,2) == "7" or N:sub(3,3) == "7" then print("Yes") else print("No") end

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N=tostring(io.read())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:3: error: implicit declaration of function 'tostring' [-Wimplicit-function-declaration]
    1 | N=tostring(io.read())
      |   ^~~~~~~~
main.c:1:12: error: 'io' undeclared here (not in a function)
    1 | N=tostring(io.read())
      |            ^~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if N:sub(1,1) == "7" or N:sub(2,2) == "7" or N:sub(3,3) == "7" then print("Yes") else print("No") end
      | ^~
Language: C

/*Made by Shivam Solanki*/
#include<bits/stdc++.h>
#pragma GCC optimize ("Ofast")
using namespace std;
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define ll long long int
#define endl '\n'
typedef vector<int> vi;
typedef vector<ll> vll;
typedef vector<vll> vvl;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<vi> vvi;
typedef vector<bool> vb;
typedef vector<pii> vp;
typedef vector<pll> vpll;
typedef map<int,int> mii;
typedef map<ll,ll> mll;
typedef set<int> sii;
typedef set<ll> sll;
typedef queue<int> qii;
typedef priority_queue<int> pq;
typedef unordered_map<int,int> umii;
typedef unordered_map<ll,ll> umll;
#define all(x) x.begin(),x.end()
#define rep(i,k,n) for (int i = k; i < n; ++i) 
#define repr(i,k,n) for (int i = n; i>=k; --i)
#define repll(i,k,n) for (ll i = k; i < n; ++i) 
#define pb push_back
#define mp make_pair
#define gcd __gcd
#define F first
#define S second
#define fastio ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
const int INF = 1e9+5;
const int MOD = 1e9+7;

void solve(){
    int n;
    cin>>n;
    bool f=0;
    while(n){
        if(n%10==7){
            f=1;
            break;
        }
        n/=10;
    }
    cout<<(f?"Yes":"No");
}

int main(){ 
    // #ifndef ONLINE_JUDGE  
        // freopen("input.txt", "r", stdin); 
        // freopen("output.txt", "w", stdout); 
    // #endif 
    fastio;
    int t=1;
    // cin>>t;
    while(t--)
        solve();
    return 0;
}


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

n=input()
if i%7==0 or i%10==7 or i/10==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: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 i%7==0 or i%10==7 or i/10==7:
      | ^~
Language: C

n=input()
X=[]
for i in range(1,101):
  if i%7==0 or i%10==7 or i/10==7:
      X.append(i)
print X

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 'X'
    2 | X=[]
      | ^
Language: C

/*  In the name of ALLAH */

#include<bits/stdc++.h>
using namespace std;
/*******  All Required define Pre-Processors and Constants    *******/

#define ll long long
#define ull unsigned long long 
#define ld long double
#define mem(a, b) memset(a, (b), sizeof(a))
#define rep(i, j, k) for (int i = j ; i < k ; ++i)
#define rrep(i, j, k) for (int i = j; i > k; --i)
#define all(cont) cont.begin(), cont.end()
#define rall(cont) cont.end(), cont.begin()
#define foreach(i, a) for(auto i: a)
#define forEach(it, l) for (auto it = l.begin(); it != l.end(); it++)
#define in(A, B, C) assert( B <= A && A <= C)
#define debug(a) cout << #a << ": " << a << endl
#define Flag(n) cout << "here " << n << endl
#define mp make_pair
#define pb push_back

#define endl '\n';
#define io ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
const ll POSITIVE_INFINITY = 9223372036854775807;
const ll NEGATIVE_INFINITY = -9223372036854775807;
const ll MOD = 1000000007;
const ld PI = acos(-1.0);
 

#define TRACE
#ifdef TRACE
#define see(...) __f(#__VA_ARGS__,__VA_ARGS__)
template <typename Arg1>
void __f(const char* name, Arg1&& arg1){
    cerr<<name<<" : "<<arg1<<endl;
}
template <typename Arg1, typename... Args>
void __f(const char* names, Arg1&& arg1, Args&&... args){
    const char* comma=strchr(names+1,',');cerr.write(names,comma-names)<<" : "<<arg1<<" | ";__f(comma+1, args...);
}
#else
#endif



int main() {
    io;
    // freopen("input.txt","r",stdin); 
    // freopen("output.txt","w",stdout);
  
    string s;
    cin>>s;
    for(int i = 0 ; i < s.length();i++){
        if(s[i]=='7'){
            cout<<"Yes";
            return 0;
        }
    }
    cout<<"No";
 
 
 
    
 
    return 0;
}


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

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

#define rep(i,x) for(int i=0;i<x;i++)
#define repn(i,x) for(int i=1;i<=x;i++)

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

#include<stdio.h>
main(){
int n,m;
scanf("%d",&n);\n
int flag=0;
if(((n-7)%10)==0) flag=1;else if
((((n/10)-7)%10)==0) flag=1;else if
((((n/100)-7)%10)==0) flag=1;
if(flag==0) printf("no");

if(flag==1) printf("yes");
}


Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main(){
      | ^~~~
main.c: In function 'main':
main.c:4:16: error: stray '\' in program
    4 | scanf("%d",&n);\n
      |                ^
main.c:4:18: error: expected ';' before 'int'
    4 | scanf("%d",&n);\n
      |                  ^
      |                  ;
    5 | int flag=0;
      | ~~~               
main.c:6:19: error: 'flag' undeclared (first use in this function)
    6 | if(((n-7)%10)==0) flag=1;else if
      |                   ^~~~
main.c:6:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

import sys

N=list(input())

for i in range(len(N)):
    if N[i] == '7':
        print('Yes')
        sys.exit()
print('No')

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import sys
      | ^~~~~~
main.c:3:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'N'
    3 | N=list(input())
      | ^
main.c:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('Yes')
      |               ^~~~~
main.c:9:7: warning: multi-character character constant [-Wmultichar]
    9 | print('No')
      |       ^~~~
Language: C

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

int main()
{

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



}


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

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

Compiler output:
main.c:1:26: warning: extra tokens at end of #include directive
    1 | #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0]=='7' || s[1]=='7' || s[2]=='7') cout << "Yes"; else cout << "No"; }
      |                          ^~~~~
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; if (s[0]=='7' || s[1]=='7' || s[2]=='7') cout << "Yes"; else cout << "No"; }
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  	String num = input.nextLine();
    if (num.charAt(0) == '7') || num.charAt(1) == '7' || num.charAt(2) == '7') {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:7: error: illegal start of expression
    if (num.charAt(0) == '7') || num.charAt(1) == '7' || num.charAt(2) == '7') {
                              ^
Main.java:7: error: not a statement
    if (num.charAt(0) == '7') || num.charAt(1) == '7' || num.charAt(2) == '7') {
                                                      ^
Main.java:7: error: ';' expected
    if (num.charAt(0) == '7') || num.charAt(1) == '7' || num.charAt(2) == '7') {
                                                                             ^
Main.java:10: error: 'else' without 'if'
    else {
    ^
4 errors
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  	String num = input.nextLine();
    if (num.charAt(0) == "7" || num.charAt(1) == "7" || num.charAt(2) == "7") {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:7: error: bad operand types for binary operator '=='
    if (num.charAt(0) == "7" || num.charAt(1) == "7" || num.charAt(2) == "7") {
                      ^
  first type:  char
  second type: String
Main.java:7: error: bad operand types for binary operator '=='
    if (num.charAt(0) == "7" || num.charAt(1) == "7" || num.charAt(2) == "7") {
                                              ^
  first type:  char
  second type: String
Main.java:7: error: bad operand types for binary operator '=='
    if (num.charAt(0) == "7" || num.charAt(1) == "7" || num.charAt(2) == "7") {
                                                                      ^
  first type:  char
  second type: String
3 errors
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";
  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: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  	String num = input.nextLine();
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
           ^
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
                          ^
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
                                         ^
3 errors
Language: Java

import java.util.Scanner;

public class Lucky7 {
  public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
  	String num = input.nextLine();
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
      System.out.println("Yes");
    }
    else {
      System.out.println("No");
    }
  }
}

Compiler output:
Main.java:3: error: class Lucky7 is public, should be declared in a file named Lucky7.java
public class Lucky7 {
       ^
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
           ^
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
                          ^
Main.java:7: error: array required, but String found
    if (num[0] == 7 || num[1] == 7 || num[2] == 7) {
                                         ^
4 errors
Language: C

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define int long long
#define ll long long
#define mod ((ll)1e9+7)
#define inf 0x3f3f3f3f
#define infl 0x3f3f3f3f3f3f3f3f
#define Ninf -0x3e3e3e3f
#define Ninfl -0x3e3e3e3e3e3e3e3f
#define maxx ((ll)1e5+5)
#define endl "\n"
#define time(i) cout<<"\nTime Elapsed "<<i<<" : " << 1.0*clock() / CLOCKS_PER_SEC << " sec\n";
#define usefile freopen("input.txt","r",stdin); freopen("output.txt","w",stdout);
#define fast ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#define test ll t; cin>>t; while(t--)
ll exp(ll x,ll y,ll p){ ll res=1; while(y) {if(y%2) res=(res*x%p)%p; x=(x*x)%p; y/=2; } return res;}
ll expm(ll x,ll y){ ll res=1; while(y) {if(y%2) res=(res*x%mod)%mod; x=(x*x)%mod; y/=2; } return res;}
ll add(ll x, ll y) { x += y; if (x >= mod) return x-mod; return x;}
ll sub(ll x, ll y) { x -= y; if (x < 0) return x + mod; return x;}
ll mult(ll x, ll y) { return (x * y) % mod;}
ll rev(ll x) { return expm(x, mod - 2);}
/*
bool sv[maxx]={0};    // returns 0 if a num is prime
int sp[maxx]={0};     // gives smallest prime factor of the number
void Sieve() {for(int i= 2; i< maxx; i+= 2) sv[i]=1,sp[i] = 2;sv[2]=0;for(ll i = 3; i < maxx; i += 2){if (!sv[i]){sp[i] = i;for (ll j = i; (j*i) < maxx; j += 2){if (!sv[j*i])sv[j*i] = true, sp[j*i] = i;}}}}
ll fact[maxx]={0}; // returns factorial of that number
void facto() {fact[0]=1;fact[1]=1;for(int i=2;i<maxx;i++)fact[i]=(fact[i-1]*i)%mod;}
ll ncrm(ll n,ll r) {ll res=1; res=fact[n]; res=(res*(expm(fact[r],mod-2)))%mod; res=(res*(expm(fact[n-r],mod-2)))%mod; return res;}
ll inv[maxx];   // returns the modular inverse of number
void inversify( ll m){inv[1]=1;for(int i=2;i<maxx;i++){inv[i]= m- m/i*inv[m%i]%m;}}
ll ncr(ll n,ll r,ll m){int ans=1;for (int i = 0; i < r; i++){ans=ans*(n-i)%m*inv[i+1]%m;}return ans;}
*/
signed main(){
  fast;
  test
  {
    
  }
  return 0;
}

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

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

int main() {
  int N;
  
  if (N.at(1)==7 || N.at(2)==7 || N.at(3)) {
    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

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:
      | ^~
Language: C

n = int(input())
for i in str(n):
    if int(i) == 7:
        print("Yes")
        exit(0)
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;

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

  for(char c:s)if(c=='7')x=false;

  if(x)cout<<"No"<<endl;
  else cout<<"Yes"<<endl;

}

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

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

public class First {
	public static void main(String[] arg){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = 0;
		int flag = 0;
		try {
			num = Integer.parseInt(br.readLine());
		} catch (NumberFormatException e) {
			e.printStackTrace();
		} catch (IOException e) {
			e.printStackTrace();
		}
		for(int i = 1; i <= 3; i++){
			if(num % 10 == 7){
				flag = 1;
				break;
			} else {
				num = num / 10;
			}
		}
		if(flag == 1){
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
		}
}

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

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


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

#include<iostream>
using namespace std;
#define pb push_back
#define l long long
void frooty()
{
	l n;
	cin>>n;
	while(n!=0)
	{
		l div=n%10;
		if(n==7)
		{
			cout<<"YES"<<endl;
			return ;
		}
		n/=10;
	}
	cout<<"NO"<<endl;
	return ;
}
int main()
{
	l t=1;
	cin>>t;
	while(t--)
	{
		frooty();
	}
}

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;
#define pb push_back
#define l long long
void frooty()
{
	l n;
	cin>>n;
	while(n!=0)
	{
		l div=n%10;
		if(n==7)
		{
			cout<<"Yes"<<endl;
			return ;
		}
		n/=10;
	}
	cout<<"No"<<endl;
	return ;
}
int main()
{
	l t=1;
	cin>>t;
	while(t--)
	{
		frooty();
	}
}

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 sum=0;
  for(int i=1;i<=n;i++){
    if(i%3!=0&&i%5!=0){
      sum =sum+i;
    }
  }
  cout << sum;
  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;
	int f = 0;
	cin >> n;
	while (n != 0) {
		if (n % 10 == 7) {
			cout << "YES\n";
			f = 1;
			break;
		}
		n /= 10;
	}
	if (f == 0) {
		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

// In the name of GOD
#include<bits/stdc++.h>
using namespace std;

#define debug(x) cout<<#x<<" :: "<<x<<"\n";
#define debug2(x,y) cout<<#x<<" :: "<<x<<"\t"<<#y<<" :: "<<y<<"\n";
#define debug3(x,y,z) cout<<#x<<" :: "<<x<<"\t"<<#y<<" :: "<<y<<"\t"<<#z<<" :: "<<z<<"\n";

#define     IOS         ios::sync_with_stdio(false);cin.tie(0);cout.tie(0)
#define 	setprecn(x) cout<<fixed<<setprecision(x);
#define 	ll          long long int
#define 	pb          push_back
#define 	pll         pair<ll,ll>
#define 	vll         vector<ll>
#define 	ff          first
#define 	ss          second
#define 	all(a)      (a).begin(),(a).end()
#define 	sz(x)       (ll)x.size()
#define 	mod         1000000007
#define 	inf         10000000000000007
#define 	rep(i,n)    for(ll i=0;i<n;i++)
#define 	repe(i,a,b) for(ll i=a;i<b;i++)
#define 	lbnd        lower_bound
#define 	ubnd        upper_bound
#define 	bs          binary_search

ll power(ll a,ll b,ll m=mod)
{
	if(b==0)
		return 1;
	if(b==1)
		return a;
	ll c=power(a,b/2,m);
	if(b%2==0)
		return((c%m)*(c%m))%m;
	return ((((c%m)*(c%m))%m)*(a%m))%m;
}
/********************************************************/
//	d.erase(unique(all(d)), d.end());



int main()
{
	IOS;
	ll n,k,m,i,j,c=0,cs=0,t;
	t=1;

	// cin>>t;
	string s;
	while(t--)
	{
		cin>>s;
		n=s.length();
		// ll a[n];
		rep(i,n)
		{
			if(s[i]=='7')
				c=1;
		}
		
		cout<<(c==1?"Yes":"No");

		
		cout<<"\n";
	}
	return 0;
}

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

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

int main
{
  int a,b,c;
  cin>>a>>b>>c;
  if(a==7){
            cout<<Yes<<endl;
          }
  else if(b==7){
                  cout<<Yes<<endl;
                }
  else if(c==7){
                  cout<<Yes<<endl;
                }
  else{
         cout<<No<<endl;
       }
}       

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main
      |     ^~~~
a.cc:6:3: error: expected primary-expression before 'int'
    6 |   int a,b,c;
      |   ^~~
a.cc:6:3: error: expected '}' before 'int'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:7:3: error: 'cin' does not name a type
    7 |   cin>>a>>b>>c;
      |   ^~~
a.cc:8:3: error: expected unqualified-id before 'if'
    8 |   if(a==7){
      |   ^~
a.cc:11:3: error: expected unqualified-id before 'else'
   11 |   else if(b==7){
      |   ^~~~
a.cc:14:3: error: expected unqualified-id before 'else'
   14 |   else if(c==7){
      |   ^~~~
a.cc:17:3: error: expected unqualified-id before 'else'
   17 |   else{
      |   ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C

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

int main(){

  string n;
  cin >> n;
  
  for(int i=0; i<3; i++){
  if(n[i] == '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;

int main(void) {
  string N;
  cin >> N;
  cout << (N[0] == '7' || N[1] == '7' || N[2] == '7' ? "Yes" : "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>
#define int long long
using namespace std;

signed main(){
  
  string N;
  cin>>N;
  
  for(int i=0;i<3;i++){
    if( N[i] == '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 namsespace std;
int main(){
  int n;
  cin>>n;
  if(n%10 == 7) cout<<"Yes";
  else cout<<"No";
  return 0;
}
  

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namsespace'
    2 | using namsespace std;
      |       ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(n%10 == 7) cout<<"Yes";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout<<"No";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

/*mokosucio's file*/
#include <bits/stdc++.h>

using namespace std;

#define pb push_back
#define fs first
#define sc second
#define forn(i, n) for (ll i = 0; i < (ll) (n); ++i)
#define IO ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0)

using ll = long long;
const ll inf = 1e9+5; 

const double PI =  3.14159265;

int main(){
	IO;
	string n;
	cin>>n;
	bool seven = false;
	forn(i,2){
		if(n[i]=='7') seven = true;
	}

	(seven)?cout<<"Yes\n":cout<<"No\n";
	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<bits/stdc++.h>
//#include<tr1/unordered_map>
#pragma GCC optimize ("Ofast")
#define ll long long
#define pll pair<long long,long long>
#define pii pair<int,int>
#define mp make_pair
#define pb push_back
#define F first
#define S second
#define forn(i, n) for(int i=0; i<int(n); i++)
#define Forn(i, n) for(int i=1; i<=int(n); i++)

using namespace std;

/*#include <ext/pb_ds/tree_policy.hpp>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> rbtree;*/

int main()
{
    cin.tie(0);ios_base::sync_with_stdio(false);
    string s;
    cin >> s;
    if(s[0] == '7' || s[1] == '7' || s[2] == '7') cout << "Yes";
    else cout << "No";
    cout << '\n';
}


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

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

int main()
{
    string N;
    cin >> N;
    for (int i: N)
    {
        if (i == 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;

int main()
{
    string N;
    cin >> N;
    for (int i: N)
    {
        if (i == 7)
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

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

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

int main()
{
    vector<int> N(3);
    for (auto i: N)
    {
        cin >> i;
    }

    for (auto i: N)
    {
        if (i == 7)
        {
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using pint = pair<int, int>;
using ll = long long;
using ull = unsigned long long;
using vll = vector<long long>;
using pll = pair<ll, ll>;
#define FOR(i, begin, end) for (ll i = (begin), i##_end_ = (end); i < i##_end_; i++)
#define IFOR(i, begin, end) for (ll i = (end)-1, i##_begin_ = (begin); i >= i##_begin_; i--)
#define REP(i, n) FOR(i, 0, n)
#define IREP(i, n) IFOR(i, 0, n)
#define VREP(s, ite) for (auto ite = s.begin(); ite != s.end(); ++ite)
#define FI first
#define SE second
#define ALL(v) v.begin(),v.end()
//#define endl "\n"
#define ciosup  \
    cin.tie(0); \
    ios::sync_with_stdio(false);
#define eb emplace_back
#define vint vector<int>
constexpr ll INF = 1e15 + 7LL;
constexpr ll MOD = 1e9 + 7LL;

template <typename T>
istream &operator>>(istream &is, vector<T> &v)
{
    for (int i = 0; i < v.size(); ++i)
    {
        is >> v[i];
    }
    return is;
}
template <typename T>
ostream &operator<<(ostream &os, const vector<T> &v)
{
    for (int i = 0; i < v.size() - 1; ++i)
    {
        os << v[i] << " ";
    }
    if (v.size() > 0)
    {
        os << v[v.size() - 1] << endl;
    }
    return os;
}

int main()
{
    int n;
    cin>>n;
    string st = to_string(n);
    for (auto elem : st)
    {
        if (elem == '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>
#define rep(i, n) for(int i=0; i<(n); i++)
#define all(x) (x).begin(), (x).end()
#define bit(x) (1L << (x))
using ll = long long;
using namespace std;

template<typename T>
vector<T> make_v(size_t a,T b){return vector<T>(a,b);}
 
template<typename... Ts>
auto make_v(size_t a,Ts... ts){
        return vector<decltype(make_v(ts...))>(a,make_v(ts...));
}

int main() {
        string s;
        cin >> s;
        
        if (s.find('7') != string::npos) {
                cout << "Yes" << endl;
        } else {
                cout << "No" << endl;
        }

        return 0;
}


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

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

#define all(x) (x).begin(),(x).end()
#define fastio ios_base::sync_with_stdio(false)

typedef double db;
typedef long long ll;
typedef unsigned long long ull;

typedef long double ldb;
typedef pair <int,int> pii;
typedef pair <ll, ll> pll;

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

#define all(x) (x).begin(),(x).end()
#define fastio ios_base::sync_with_stdio(false)

typedef double db;
typedef long long ll;
typedef unsigned long long ull;

typedef long double ldb;
typedef pair <int,int> pii;
typedef pair <ll, ll> pll;

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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sstream> //C++
#include <queue> //C++
#include <string> //C++
#include <iostream> //C++
#include <vector> //C++
#include <algorithm> //C++
using namespace std; //C++
#define rep(i, a, n) for (i = (a); i < (n); i++)






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

	if (n / 100 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n / 10 % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else {
		cout << "No";
		return 0;
	}

}




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

#define _CRT_SECURE_NO_WARNINGS
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <string.h>
#include <sstream> //C++
#include <queue> //C++
#include <string> //C++
#include <iostream> //C++
#include <vector> //C++
#include <algorithm> //C++
using namespace std; //C++
#define rep(i, a, n) for (i = (a); i < (n); i++)




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

	if (n / 100 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else if (n / 10 % 10 == 7) {
		cout << "Yes";
		return 0;
	}
	else {
		cout << "No";
		return 0;
	}

}




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

#include<bits/stdc++.h>
#include<iostream>
#include<stdio.h>
#include<stdlib.h>
#include<algorithm>
#include<queue>
#include<stack>
#include<cctype>
#include<cstring>
#include<list>
#include<map>
#include<sstream>
#include<set>
#include<string>
#include<vector>
typedef long long ll;
using namespace std;
#define MN 300005
#define MM 600005
#define F(i,a,b) for(int i=a;i<=(b);++i)
#define F2(i,a,b) for(int i=a;i<(b);++i)
#define RF(i,a,b) for(int i=a;i>=(b);--i)
#define fast  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define inf 0x3f3f3f3f
#define infll 0x3f3f3f3f3f3f3f3f
#define int long long
signed main()
{
   int T;
   while(cin>>T){
       if(T%10==7){
           cout<<"Yes"<<endl;
           continue;
       }
       if(T/100==7)
       {
           cout<<"Yes"<<endl;
           continue;
       }
       if(T/10%10==7)
       {
           cout<<"Yes"<<endl;
           continue;
       }
       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(){
  int N;
  cin >> N;
  
  int s1, s2, s3;
  s1 = N / 100;
  s2 = (N % 100) / 10;
  s3 = N % 10;
  
  if(s1 == 7 || s2 == 7 || s3 == 7){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
}


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

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

int main(){
  int N;
  cin >> N;
  
  int s1, s2, s3;
  s1 = N / 100;
  s2 = (N % 100) / 10;
  s3 = N % 10;
  
  if(s1 == 7 || s2 == 7 || s3 == 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

#inlude<stdio.h>

int main(){
  int n;
  scanf("%d", &n);
  while(n!=0){
    if(n%10==7) {
      printf("Yes\n");
      break;
    }
    n/=10;
  }
  
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #inlude; did you mean #include?
    1 | #inlude<stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    5 |   scanf("%d", &n);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #inlude<stdio.h>
main.c:5:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    5 |   scanf("%d", &n);
      |   ^~~~~
main.c:5:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |       printf("Yes\n");
      |       ^~~~~~
main.c:8:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:7: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

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

#include <algorithm>
#include <cassert>
#include <cfloat>
#include <complex>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <vector>

using namespace std;

#define chmax(x, y) x = max(x, y)
#define chmin(x, y) x = min(x, y)
#define rep(i, n) for (ll i = 0; i < (n); ++i)
#define Sort(v) sort(v.begin(), v.end())
#define Reverse(v) reverse(v.begin(), v.end())
#define Lower_bound(v, x) \
  distance(v.begin(), lower_bound(v.begin(), v.end(), x))
#define Upper_bound(v, x) \
  distance(v.begin(), upper_bound(v.begin(), v.end(), x))

using ll = long long;
using ull = unsigned long long;
using P = pair<ll, ll>;
using T = tuple<ll, ll, ll>;
using vll = vector<ll>;
using vP = vector<P>;
using vT = vector<T>;
using vvll = vector<vector<ll>>;
using vvP = vector<vector<P>>;
using dqll = deque<ll>;

ll dx[9] = {-1, 1, 0, 0, -1, -1, 1, 1, 0};
ll dy[9] = {0, 0, -1, 1, -1, 1, -1, 1, 0};

const ll INF = 1LL << 50;

static const long long mod = 1000000007;

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

  bool cond = s[0] == '7' || s[1] == '7' || s[2] == '7';

  cout << (cond? "Yes" : "No") << endl;

  return 0;
}


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

import java.util.*;
public class Lucky7 {
    public static void main(String args[]) {
        Scanner in = new Scanner(System.in);
        String n = in.nextLine();
        if (n.indexOf("7") < 0) {
            System.out.println("No");
        } else
        {
            System.out.println("Yes");
        }
    }
}


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

import java.util.*;
public class Lucky7{
  public static void main(String args[])
  {
    Scanner in = new Scanner(System.in);
    String n = in.nextLine();
    if(n.indexOf("7") < 0)
    {
      System.out.println("No");
    }
    else
    {
      System.out.println("Yes");
    }
  }

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

#include<iostream>
using namespace std;
main()
{
	string s;
	cin>>s;
	for(int i=0;i<3;i++)
	{
		if(s[i]=='7')
		{
			cout<<"Yes";
			return 0;
		}
	}
	cout<<"No";
	return 0;
}


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

#iinclude<iostream>
using namespace std;
main()
{
  int n;
  cin>>n;
  bool b1=0;
  while(n>0)
  {
    int c=n%10;
    n=n/10;
    if(c==7)
    {
      b1=1;
      break;
    }
    if(b1==1)
      cout<<"Yes";
    else
      cout<<"No";
  }
       

Compiler output:
main.c:1:2: error: invalid preprocessing directive #iinclude; did you mean #include?
    1 | #iinclude<iostream>
      |  ^~~~~~~~
      |  include
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:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main()
      | ^~~~
main.c: In function 'main':
main.c:6:3: error: 'cin' undeclared (first use in this function)
    6 |   cin>>n;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:3: error: unknown type name 'bool'
    7 |   bool b1=0;
      |   ^~~~
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 | #iinclude<iostream>
main.c:18:7: error: 'cout' undeclared (first use in this function)
   18 |       cout<<"Yes";
      |       ^~~~
main.c:21:3: error: expected declaration or statement at end of input
   21 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'll' was not declared in this scope
    8 |   for(ll i = 0;i<3;i++){
      |       ^~
a.cc:8:16: error: 'i' was not declared in this scope
    8 |   for(ll i = 0;i<3;i++){
      |                ^