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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
using boost::multiprecision::cpp_int;

typedef long long ll;
typedef pair<ll, ll> pll;

const ll INF = 1e17;
const ll MOD = 1e9+7;

// https://math.nakaken88.com/textbook/cp-binary-exponentiation-and-recursive-function/
ll modPow(long long a, long long n) {
  if (n == 1) return a % MOD;
  if (n % 2 == 1) return (a * modPow(a, n - 1)) % MOD;
  long long t = modPow(a, n / 2);
  return (t * t) % MOD;
}

ll comb(ll n, ll p) {
	if (p * 2 > n) p = n - p;
	if (p > n - p) p = n - p;
	ll a = 1, b = 1;
	for(int i=1; i< p+1; i++) {
		a = (a * (n - i + 1)) % MOD;
		b = (b * i) % MOD;
	}
	return a * (modPow(b, MOD - 2)) % MOD;
}

int main() {
    // input, ready
    string N;
    cin >> N;

    string ans = "No";
    for (auto s : N) {
      if (s=='7') ans="Yes";
    }

    cout << ans << endl;

    return 0;
}


Compiler output:
a.cc:2:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
    2 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C

n = int(input())
if n% 10 == 7:
    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<stdio.h>
int main()
{
  int a,b,c,d;
  scanf("%d",&a);
  d=a%100;
  b=a
  c=(a-b*100)/10;
   if(d==7)
   {
     printf("Yes");
   }
else if(c==7)
{
  printf("Yes");
}
  else if(b==7)
  {
    printf("Yes");
  }
  else
  {
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ';' before 'c'
    7 |   b=a
      |      ^
      |      ;
    8 |   c=(a-b*100)/10;
      |   ~
Language: C


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

#include<stdio.h>
 
int main (void)
{
 int  a,b,c;
 
scanf("%d",&a);
 
b=a%10;
c=b%10;
 
if(a/7==1||b/7==1||c/7==1)
printf("Yes");
else
printf("No");
 
retrun 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:1: error: 'retrun' undeclared (first use in this function)
   17 | retrun 0;
      | ^~~~~~
main.c:17:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:17:7: error: expected ';' before numeric constant
   17 | retrun 0;
      |       ^~
      |       ;
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: Java

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


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

#include<iostream>
using namespace std;

int main(void){
    int n, a, f;
    cin >> n;
    a = 10;
    f = 0;

    for(int i = 0; i < 3; ++i){
        if(n % a == 7)f = 1;
        n /= a;
    }
    if(f == 1)cout << "Yes" << endl;
    else cout << "No" << endl;
}

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

number = input('')
new_Num = str(number)
if int(new_Num[0]) == 7 or int(new_Num[1]) == 7 or int(new_Num[2] == 7):
    print("Yes")
else:
    print("No")

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

#include <stdio.h>
using namespace std;
 
int main() {
int N;
cin >> N;
if(N.at(0) == 7|| N.at(1) == 7 || N.at(2) == 7)
cout << "Yes" << endl;
 
else 
cout << "No" << endl;
 
 
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:1: error: 'cin' was not declared in this scope
    6 | cin >> N;
      | ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:6: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 | if(N.at(0) == 7|| N.at(1) == 7 || N.at(2) == 7)
      |      ^~
a.cc:7:21: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 | if(N.at(0) == 7|| N.at(1) == 7 || N.at(2) == 7)
      |                     ^~
a.cc:7:37: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 | if(N.at(0) == 7|| N.at(1) == 7 || N.at(2) == 7)
      |                                     ^~
a.cc:8:1: error: 'cout' was not declared in this scope
    8 | cout << "Yes" << endl;
      | ^~~~
a.cc:8:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:18: error: 'endl' was not declared in this scope
    8 | cout << "Yes" << endl;
      |                  ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout << "No" << endl;
      | ^~~~
a.cc:11:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:17: error: 'endl' was not declared in this scope
   11 | cout << "No" << endl;
      |                 ^~~~
a.cc:11:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

//#pragma warning(disable:4996)

#include <iostream>
using namespace std;

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

	char buff[10];

	sprintf_s(buff, 10, "%d", N);

	int i;
	for (i = 0; i < strlen(buff); i++) {
		if (buff[i] == '7') {
			cout << "Yes" << endl;
			return 0;
		}
	}

	cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'sprintf_s' was not declared in this scope; did you mean 'sprintf'?
   13 |         sprintf_s(buff, 10, "%d", N);
      |         ^~~~~~~~~
      |         sprintf
a.cc:16:25: error: 'strlen' was not declared in this scope
   16 |         for (i = 0; i < strlen(buff); i++) {
      |                         ^~~~~~
a.cc:4:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include <iostream>
  +++ |+#include <cstring>
    4 | using namespace std;
Language: Java

Input java.util.Scanner;
public static Main{
	public static void main(String args[]){
    Scanner scn = new Scanner (System.in);
      int N = scn.nextint();
	scn.close();
      int s;
      for(int i = 0 ; i<3 ; i++){
       switch (N.charAt(i))
        case 7 -> s += 1;
        default -> s += 0;
      };
      if(s>=1){
      System.out.println("Yes");
      }else{
      System.out.prontln("No");
      };
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Input java.util.Scanner;
^
Main.java:2: error: class, interface, enum, or record expected
public static Main{
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String args[]){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: '{' expected
       switch (N.charAt(i))
                           ^
4 errors
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'N', which is of non-class type 'char [3]'
    8 |    if(N.at(i)=='7'){
      |         ^~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C

#include<iostream.h>
#include<conio.h>
int main()
{
  int num,rem;
  cin>>num;
  if(num>=100&&num<=999)
  {
    for(int i=0;i<3;i++)
    {
      rem=num%10;
      if(rem==7)
      {
        cout<<"Yes";
      num=num/10;
      }
    }  

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

#include <bits/stdc++.h>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
using boost::multiprecision::cpp_int;

typedef long long ll;
typedef pair<ll, ll> pll;

const ll INF = 1e17;
const ll MOD = 1e9+7;

// https://math.nakaken88.com/textbook/cp-binary-exponentiation-and-recursive-function/
ll modPow(long long a, long long n) {
  if (n == 1) return a % MOD;
  if (n % 2 == 1) return (a * modPow(a, n - 1)) % MOD;
  long long t = modPow(a, n / 2);
  return (t * t) % MOD;
}

ll comb(ll n, ll p) {
	if (p * 2 > n) p = n - p;
	if (p > n - p) p = n - p;
	ll a = 1, b = 1;
	for(int i=1; i< p+1; i++) {
		a = (a * (n - i + 1)) % MOD;
		b = (b * i) % MOD;
	}
	return a * (modPow(b, MOD - 2)) % MOD;
}

int main() {
    // input, ready
    string N;
    cin >> N;

    string ans = "No";
    for (auto s : N) {
      if (s=='7') ans="Yes";
    }

    cout << ans << endl;

    return 0;
}


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

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<iostream>
#include<string>
using namespace std;
int main(){
  int i,n;
  int a=0;
  string s;
  cin>>s;
  n=s.size();
  for(i=0;i<n;i++){
    if(s[i]=="7"){
      a=1;
    }
  }
  if(a==1){
    cout<<"Yes";
  }
  else{
    cout<<"No";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(s[i]=="7"){
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 <wchar.h>
#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin >> n;
    int i;
    string result;
    result = "No";
    for(i=0;i<3;i++){
        n = n % 10;
        cout << n << endl;
        if(n == 7){
            result = "Yes";
            break;
        }
    }
    cout << result << endl;
}

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

N = input()

print("Yes" if '7' in str(N) else "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:3:1: error: expected ',' or ';' before 'print'
    3 | print("Yes" if '7' in str(N) else "No")
      | ^~~~~
Language: C++

clude <iostream>
using namespace std;
int main(void){
    // Your code here!
    string s;
    cin >> s;
    for(int i= 0; i< 3; i++){
        if(s[i] == '7'){
            cout << "Yes" << endl;
            return 0;
        }
    }
    cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude <iostream>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'string' was not declared in this scope
    5 |     string s;
      |     ^~~~~~
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> s;
      |     ^~~
a.cc:6:12: error: 's' was not declared in this scope
    6 |     cin >> s;
      |            ^
a.cc:9:13: error: 'cout' was not declared in this scope
    9 |             cout << "Yes" << endl;
      |             ^~~~
a.cc:9:30: error: 'endl' was not declared in this scope
    9 |             cout << "Yes" << endl;
      |                              ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "No" << endl;
      |     ^~~~
a.cc:13:21: error: 'endl' was not declared in this scope
   13 |     cout << "No" << endl;
      |                     ^~~~
Language: C

#include <cstdio>
#include <iostream>
#include <cstring>
#include <algorithm>

inline int read() {
    int x = 0, f = 1; char ch = getchar();
    while(ch > '9' || ch < '0') { if(ch == '-') f = -1; ch = getchar(); }
    do x = x * 10 + ch - 48, ch = getchar(); while(ch >= '0' && ch <= '9');
    return x * f;
}

int main() {
    int n = read();
    if(n % 10 == 7 || n / 10 % 10 == 7 || n / 100 == 7) std::puts("Yes");
    else std::puts("No");
    return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  for(;n>0;n/=10)
  {
    if(n%10==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: Java

input java.util.Scanner;
public static Main{
	public static vid main(String args[]){
    Scanner scn = new Scanner (System.in);
      int N = scn.nextint();
	scn.close();
      int s;
      for(int i = 0 ; i<3 ; i++){
       switch (N.charAt(i))
        case 7 -> s += 1;
        default -> s += 0;
      };
      if(s>=1){
      System.out.println("Yes");
      }else{
      System.out.prontln("No");
      }
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
input java.util.Scanner;
^
Main.java:2: error: class, interface, enum, or record expected
public static Main{
              ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static vid main(String args[]){
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:9: error: '{' expected
       switch (N.charAt(i))
                           ^
4 errors
Language: C

user = str(input())
if "7" in user:
    print("Yes")
else:
    print("No")


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

#include<iostream>
#include<cmath>
#include<vector>

int main() {
  int input;
  bool flag = false;
  std::cin >> input;

  std::vector<int> number(3); 

  for(int i=0; i<3; i++) {
    number.at(i) = input/pow(10, 2-i);
    input -= number.at(i)*pow(10, 2-i);
  }

  for(num:number) {
    if(num == 7) {
      flag = true;
      std::cout << "Yes" << std::endl;
      break;
    }
  }

  if(flag == false) std::cout << "No" << std::endl;

  return 0;
}


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

#include <iostream>
#include <string>
#include <stdlib.h>
#include <sstream>

using namespace std;
 
int main() {
    int n;
    string num;
    cin >> n;
    std::ostringstream oss;

    oss << n;
    num = oss.str();

    char check;
    check = '7';
    string rslt;

    for (int i=0; i < num.size(); i++) {
        char target = num[i];
        if ( check == target ) {
            rslt = "Yes";
            break;
        } else {
            rslt = "No";
        }
    }
    cout << rslt << endl;
}

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

N= input()
if ('34' 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:4: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N= input()
      |    ^~~~~
main.c:1:4: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if ('34' in N):
      | ^~
main.c:2:5: warning: multi-character character constant [-Wmultichar]
    2 | if ('34' in N):
      |     ^~~~
Language: C++

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

  
}

Compiler output:
a.cc:1:9: fatal error: bits/stsc++: No such file or directory
    1 | #include<bits/stsc++>
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdio.h>
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:
In file included from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope
    5 |     cin >> a;
      |     ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<bits/stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:6:21: error: 'cout' was not declared in this scope
    6 |     if (a % 10 == 7)cout << "Yes";
      |                     ^~~~
a.cc:6:21: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:7:32: error: 'cout' was not declared in this scope
    7 |     else if ((a / 10) % 10 ==7)cout<< "Yes";
      |                                ^~~~
a.cc:7:32: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:27: error: 'cout' was not declared in this scope
    8 |     else if (a / 100 == 7)cout<< "Yes";
      |                           ^~~~
a.cc:8:27: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:10: error: 'cout' was not declared in this scope
    9 |     else cout << "No";
      |          ^~~~
a.cc:9:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
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 <bits/stdc++.h>
using namespace std;
//useful library
int long long gcd(int long long a, int long long b){
    return b?gcd(b,a%b):a;
} //最大公約数
int long long lcm(int long long a, int long long b){
    return a/gcd(a,b)*b;
} //最小公倍数
int long long GetDigit(int long long num){
    int long long digit=0;
    while(num!=0){
        num /= 10;
        digit++;
    }
    return digit;
} //桁数
int long long GetDigitN(int long long num, int long long N){
    int long long digit=0;
    while(num!=0){
        num /= N;
        digit++;
    }
    return digit;
} //十進数でnumの際のN進数における桁数

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

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

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

using ll = long long;
#define REP(i, n) for(int (i)=0; (i)< (n); ++i)
#define REPR(i, n) for(int (i)=(n); (i)>=0; --i)
#define FOR(i, n, m) for(int (i)=(n); (i)<(m); ++i)
constexpr int INF = 1e9;
//constexpr ll INF = 1LL << 62;
constexpr int mod = 1e9+7;

int main(){
  string N;
  cin >> N;
  REP(i, N.size()){
    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 <iostream>
#include <string>
#include <vector>

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

using namespace std;

int main(void){

    //input
    int N;
    cin >> N;

    //output
    string ans = "No";

    int N1 = N % 10;
    if( (N1 % 7) == 0) ans = "Yes";

    N = N / 10;
    int N10 = N % 10;
    if(N10 % 7 == 0) ans = "Yes";

    N = N / 10;
    int N100 = N % 10;
    if(N100 % 7 == 0) ans = "Yes";
        
    cout << ans;

    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;
using lint = long long int;
using pint = pair<int, int>;
using plint = pair<lint, lint>;
struct fast_ios { fast_ios(){ cin.tie(0); ios::sync_with_stdio(false); cout << fixed << setprecision(20); }; } fast_ios_;
#define ALL(x) (x).begin(), (x).end()
#define SZ(x) ((lint)(x).size())
#define POW2(n) (1LL << (n))
#define FOR(i, begin, end) for(int i=(begin),i##_end_=(end);i<i##_end_;i++)
#define IFOR(i, begin, end) for(int 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)
const lint mod=1e9+7;

int main()
{
  string n;
  cin >> n;
  auto res = find(n.begin(), n.end(), '7');

  if(res == n.end()) cout<< "No\n";
  else cout << "Yes\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<iostream>
#include<cstdio>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<queue>
#include<stack>
#include<vector>
#include<map>
using namespace std;

int read(){
	int x=0,f=1;
	char c=getchar();
	while(!isdigit(c)){if(c=='-')f=-1;c=getchar();}
	while(isdigit(c)){x=(x<<3)+(x<<1)+c-48;c=getchar();}
	return x*f;
}

int k,m,n;
int main(){
	n=read();
	int x1,x2,x3;
	x1=n%10;n/=10;
	x2=n%10;n/=10;
	x3=n%10;
	if(x1==7 || x2==7 || x3==7)puts("Yes");
	else puts("No");
	return 0;
}

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

#include <bits/stdc++.h>
#include<vector>
using namespace std;
#define rep(i, n)        for(int i=0; i<(int)(n); ++i)
int main() {
  long long int b,c=0;cin>>b;
  stirng a;
  cin>>a;
  rep(i,b-2){
    for(int o=i+1;o<b-1;o++){
      for(int j=o+1;j<b;j++){
          if(a[i]!=a[o]&&a[o]!=a[j]&&a[i]!=a[j])c++;
      }
    }
  }
  cout<<c;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'stirng' was not declared in this scope
    7 |   stirng a;
      |   ^~~~~~
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a;
      |        ^
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<iostream>

using namespace std;

int main(void)
{
  string n; cin>>n;
  
  for(int i=0;i<3;i++){
    if(n[i]=='7'){puts("yes"); return 0;}
  }
  puts("No");
  
  return 0;
}

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

#include<iostream>
#include<string>
using namespace std;
int main(){
  int i,n;
  int a=0;
  string s;
  cin>>s;
  n=s.size()
  for(i=0;i<n;i++){
    if(s[i]=="7"){
      a=1;
    }
  }
  if(a==1){
    cout<<"Yes";
  }
  else{
    cout<<"No";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'for'
    9 |   n=s.size()
      |             ^
      |             ;
   10 |   for(i=0;i<n;i++){
      |   ~~~        
a.cc:10:18: error: expected ';' before ')' token
   10 |   for(i=0;i<n;i++){
      |                  ^
      |                  ;
Language: C++

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

int main()
{
  int n;
  while(true)
  {
    n = n % 7;
    n = n / 10;
    if(n==7)
      cout<<"Yes";
      break;
    else
      continue;	
  }
  if(n!=7)
    cout<<"No";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: 'else' without a previous 'if'
   15 |     else
      |     ^~~~
Language: C


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

    #include<iostream>
    using namespace std;
     
     
     
    int main() {
      char a,b,c;
      cin>>a>>b>>c;
      if(a=='7' || b=='7' || c=='7') cout<<"Yes\n;
        else cout<<"No\n";
    }

Compiler output:
a.cc:9:44: warning: missing terminating " character
    9 |       if(a=='7' || b=='7' || c=='7') cout<<"Yes\n;
      |                                            ^
a.cc:9:44: error: missing terminating " character
    9 |       if(a=='7' || b=='7' || c=='7') cout<<"Yes\n;
      |                                            ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:9: error: expected primary-expression before 'else'
   10 |         else cout<<"No\n";
      |         ^~~~
Language: C

#include <iostream> // cin, cout, cerr
#include <algorithm> // minmax, sort, swap
#include <numeric> // iota
#include <cstdio> // printf, scanf
#include <string> // string, stoi, to_string
#include <vector> // vector
#include <queue> // queue, priority_queue
#include <deque> // deque
#include <map> // key-value pairs sorted by keys
#include <set> // set
#include <iomanip> // cout<<setprecision(n)
#include <functional> // function<void(int)>
#include <cmath>
#include <cassert>
#include <bitset>
 
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: iostream: No such file or directory
    1 | #include <iostream> // cin, cout, cerr
      |          ^~~~~~~~~~
compilation terminated.
Language: C

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

int main(){
    int n;
    cin >> n;
    int i;
    string result;
    result = "No";
    for(i=0;i<3;i++){
        n = n % 10;
        cout << n << endl;
        if(n == 7){
            result = "Yes";
            break;
        }
    }
    cout << result << endl;
}

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

int main() {
int N; cin >> N;
char c;
bool flag; flag = false;
string s;
s = to_string(N);
for (int i = 0; i < N; i++){
  c = s[i];
  if (c == '7'){
    flag = true;
  }
}
if (flag == true){
  cout << "Yes" << endl;
}
else{
  cout << "No" << endl;
}
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:2:8: error: 'cin' was not declared in this scope
    2 | int N; cin >> N;
      |        ^~~
a.cc:5:1: error: 'string' was not declared in this scope
    5 | string s;
      | ^~~~~~
a.cc:6:1: error: 's' was not declared in this scope
    6 | s = to_string(N);
      | ^
a.cc:6:5: error: 'to_string' was not declared in this scope
    6 | s = to_string(N);
      |     ^~~~~~~~~
a.cc:14:3: error: 'cout' was not declared in this scope
   14 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |   cout << "Yes" << endl;
      |                    ^~~~
a.cc:17:3: error: 'cout' was not declared in this scope
   17 |   cout << "No" << endl;
      |   ^~~~
a.cc:17:19: error: 'endl' was not declared in this scope
   17 |   cout << "No" << endl;
      |                   ^~~~
Language: C++

#include <iostream>
using namespace std;
 
string N;
int cnt = 0;
 
int main() {
	cin >> N;
	for (int i = 0; i < N.length(); i ++) {
		if (N[0] == "7") {
			cnt ++;
		}
	}
 
	if (cnt != 0) {
		printf("Yes");
	}
	else {
		printf("No");
	}
}

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

#include <bits/stdc++.h>

#define SZ(x) (((int)x.size()))
#define all(x) (x).begin(), (x).end()

typedef long long ll;
typedef long double ld;

using namespace std;

int n;
bool b;

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

N = input()

print("Yes" if '7' in str(N) else '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:3:1: error: expected ',' or ';' before 'print'
    3 | print("Yes" if '7' in str(N) else 'No')
      | ^~~~~
main.c:3:35: warning: multi-character character constant [-Wmultichar]
    3 | print("Yes" if '7' in str(N) else 'No')
      |                                   ^~~~
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: In function 'int main()':
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;
 
int main() {
 int N,a=0,M,j=0;
 cin >> N;
  M=N;
  for(int i=0;i<3;i++)
  {
    while(j<i){
     j++;
     M=M/10;
    }
   M=M%10;
  if(M==7){
    a=1;
    break;
  }
  M=N;
  j=0;
  }
  if(a==1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}

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

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

int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  string get;
  cin >> get;
  bool ans = false;
  for(int i = 0; i < get.length(); i++){
    if(get[i] == '7'){
      ans = true;
      break;
    }
  }
  if(ans)
    cout << "Yes";
  else
    cout << "No";
  return 0;
}

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

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

int main() {
    int a, c;
    string b;
    cin >> a;
    b = std::to_string(a);
    c = b.find("7");
    if (c != string::npos) 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() {
  vector<int> vec(3);
int A = 0;
  cin >> vec.at(0) >> vec.at(1) >> vec.at(2);
  if(vec.at(0) == 7)A++;
   if(vec.at(1) == 7)A++;
   if(vec.at(2) == 7)A++;
 if(A > 0){
   cout << "Yes" << endl;
 }
  else{
    cout << "No" << endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected '}' at end of input
   15 |     cout << "No" << endl;
      |                          ^
a.cc:14:7: note: to match this '{'
   14 |   else{
      |       ^
a.cc:15:26: error: expected '}' at end of input
   15 |     cout << "No" << endl;
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

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

int main(){
  int a;
  int b=0;
  cin >> a;
  for(int i=0;i<3;i++){
    if(a%10==7){
      b=1;
      break;
    }
    a/=10;
  }
  if(b==1) cout << "Yes" << endl;
  else cout << "No" << endl;
  }

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

def isLucky(n): 
    # Function attribute will act as static variable 
      
    # just for readability, can be removed and used n instead 
    next_position = n 
      
    if isLucky.counter > n: 
        return 1
    if n % isLucky.counter == 0: 
        return 0
      
    # Calculate next position of input number 
    next_position = next_position - next_position / isLucky.counter 
      
    isLucky.counter = isLucky.counter + 1
      
    return isLucky(next_position) 
      

Compiler output:
main.c:1:1: error: unknown type name 'def'
    1 | def isLucky(n):
      | ^~~
main.c: In function 'isLucky':
main.c:1:15: error: expected declaration specifiers before ':' token
    1 | def isLucky(n):
      |               ^
main.c:2:7: error: invalid preprocessing directive #Function
    2 |     # Function attribute will act as static variable
      |       ^~~~~~~~
main.c:4:7: error: invalid preprocessing directive #just
    4 |     # just for readability, can be removed and used n instead
      |       ^~~~
main.c:12:7: error: invalid preprocessing directive #Calculate
   12 |     # Calculate next position of input number
      |       ^~~~~~~~~
main.c:1:5: error: type of 'n' defaults to 'int' [-Wimplicit-int]
    1 | def isLucky(n):
      |     ^~~~~~~
Language: C

#include<stdio.h>

int main(void){
	int hoge[3];
	scanf("%d",&hoge);
	
   for(int i=0;i<3;i++)
   {
   if(hoge[i]==7)
   {
   printf("Yes");
   }
   　else{
	   printf("No");
        }   
   }
   
   




}

Compiler output:
main.c: In function 'main':
main.c:13:4: error: stray '\343' in program
   13 |    <U+3000>else{
      |    ^~~~~~~~
Language: C

#include <iostream>
using namespace std;

int main()
{
	int a;
	cin >> a;
	
	if(a%100==7 || a%10==7 || a==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(){
  string str;
  cin >> str;
  if(str[0]==7||str[1]=="7"||str[2]=="7"){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
  return 0;
}
    


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str[0]==7||str[1]=="7"||str[2]=="7"){
a.cc:7:36: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str[0]==7||str[1]=="7"||str[2]=="7"){
Language: C

#include<iostream>

using namespace std;

int main(void)
{
  string n; cin>>n;
  
  for(int i=0;i<3;i++){
    if(s[i]=='7'){puts("yes"); return 0;}
  }
  puts("No");
  
  return 0;
}



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


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

using namespace std;
int gcm(int a, int b) {
	int tmp;
	if (b > a) {
		tmp = a;
		a = b;
		b = tmp;
	}
	while (1) {
		tmp = a % b;
		if (tmp ==0) {
			break;
		}
		else {
			a = b;
			b = tmp;
		}
	}

	return b;
}

int gcm3(int a, int b, int c) {
	return gcm(gcm(a, b), c);
}

int main() {
	int i, j, k, n;
	long long sum = 0;
	cin >> n;
	for (i = 1; i <= n; i++) {
		for (j = 1; j <= n; j++) {
			for (k = 1; k <= n; k++) {
				sum += gcm3(i, j, k);
			}
		}
	}

	cout << sum << "\n";

	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:30:9: error: 'cin' undeclared (first use in this function)
   30 |         cin >> n;
      |         ^~~
main.c:30:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:39:9: error: 'cout' undeclared (first use in this function)
   39 |         cout << sum << "\n";
      |         ^~~~
Language: C++

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

int main() {
  string 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:32: error: expected unqualified-id before '(' token
    7 |   if(A.at(0)==7||A.at(1)==7||A.(2)==7){
      |                                ^
Language: C

#include<stdio.h>
int main()
{
int x;
  
  int a=0,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;
#define rep(i, n) for (int i = 0; i < (n); i++)
#define rep2(i, s, n) for (int i = (s); i < (int)(n); i++)
typedef long long ll;
typedef pair<int, int> P;
const ll MAX_N = 100000;

// vector<int> dp(100000, 1e9);

int main()
{
    // string S,T,U;
    string N;
    bool flg = true;
    cin >> N;
    rep(i,3){
        if(N[i]=='7')
            flg = false;
    }
if(flg)
    printf("No");
else
    printf("Yes");

    return 0;
}

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

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

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

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

#include<bits/stdio.h>
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:
In file included from main.c:1:
/usr/include/x86_64-linux-gnu/bits/stdio.h:23:3: error: #error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
   23 | # error "Never include <bits/stdio.h> directly; use <stdio.h> instead."
      |   ^~~~~
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:5:5: error: 'cin' undeclared (first use in this function)
    5 |     cin >> a;
      |     ^~~
main.c:5:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:21: error: 'cout' undeclared (first use in this function)
    6 |     if (a % 10 == 7)cout << "Yes";
      |                     ^~~~
Language: C

#include<bits/stdc++.h>
using namespace std;
 int main(){
   int N;
   cin >>N;
   string s= to_string(N);
   bool ju=0;
   for(int i=0;i<3;i++){
     if(s.at(i)=='7')
       ju=1;
   }
   if(ju)
     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>  // g++ -std=c++14 -o a a.cpp

using namespace std;

typedef pair<int, int> P;
typedef long long ll;

#define rep(i, n) for(int i = 0; i < (n); i++)
#define repto(i, n) for(int i = 0; i <= (n); i++)
#define all(c) (c).begin(), (c).end()
#define uniq(c) c.erase(unique(all(c)), (c).end())
#define _1 first
#define _2 second
#define pb push_back
#define INF 1145141919
#define MOD 1000000007
#define DEBUG(x) cout << #x << ": " << x << endl;

int dx[4] = {1, 0, -1, 0}, dy[4] = {0, 1, 0, -1};

__attribute__((constructor)) void initial() {
    cin.tie(0);
    ios::sync_with_stdio(false);
}

int main() {
    int N;
    cin >> N;
    int n100, n10, n1;
    n100 = N / 100;
    n10 = (N / 10) % 10;
    n1 = N % 10;

    if (n100 == 7 || n10 == 7 || n1 == 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>  // g++ -std=c++14 -o a a.cpp
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int n,ans=0,m;
  cin >> n;
  m=10*n;
  for(int i=0;i<3;i++){
    m=m/10;
    if((m-7)%10==0){
      ans=1;
      break;
    }
    if(ans==0) cout<<"No";
    else cout<<"Yes";
}


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

#include <bits/stdc++.h>
using namespace std;
 
string N;
 
int main() {
    cin>>N;
    string ans="No";
    for (int i=0; i<3; i++) {
        if (s[i]=='7') ans="Yes";
    }
    cout<<ans<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 's' was not declared in this scope
   10 |         if (s[i]=='7') ans="Yes";
      |             ^
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<iostream>
using namespace std;



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


Compiler output:
a.cc:9:34: warning: missing terminating " character
    9 |   if(a==7 || b==7 || c==7) cout<<"Yes\n;
      |                                  ^
a.cc:9:34: error: missing terminating " character
    9 |   if(a==7 || b==7 || c==7) cout<<"Yes\n;
      |                                  ^~~~~~~
a.cc: In function 'int main()':
a.cc:10:5: error: expected primary-expression before 'else'
   10 |     else cout<<"No\n";
      |     ^~~~