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

#include <stdio.h>

int main(){
  int x;
  scanf("%[7]", &x);
  if(x==7 || X==77 || x==777)
    printf("yes");
  else
    printf("no");
}

Compiler output:
main.c: In function 'main':
main.c:6:14: error: 'X' undeclared (first use in this function)
    6 |   if(x==7 || X==77 || x==777)
      |              ^
main.c:6:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main() {
  char n;
  
  string ans="No";
  for(int i=0;i<3;i++){
    cin >> n;
    if(n=='7') ans="Yes";
  }
  cout << ans <<endl;
}

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

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

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

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

Compiler output:
main.c:1: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 n;
    cin>>n;
    bool ok=0;
    while(n)
    {
        if(n%10==7)ok=1;
        n/=10;
    }
    cout<<(ok==1?"YES":"NO");
    
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n;
    bool ok=0;
    while(n)
    {
        if(n%10==7)ok=1;
        n/=10;
    }
    cout<<(ok==1?"YES":"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 <stdio.h>
#include <bits/stdc++.h>

using namespace std;

int main(){
    int N;
    cin >> N;
    int a,b,c;
    a = N/100;
    b = N%100/10;
    c = N%100%10;
    if(a==7 || b==7 || c==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>
#include <bits/stdc++.h>

using namespace std;

int main(){
    int N;
    cin >> N;
    int a,b,c;
    a = N/100;
    b = N/100/10;
    c = N/100%10;
    if(a==7 || b==7 || c==7){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
    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>
using namespace std;

int main() {
  int N;
  cin >> N;
  int a = N/100;
  int b = N%100/10;
  int c = N%100%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 <bits/stdc++.h>
using namespace std;

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


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

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

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


Compiler output:
a.cc:11:3: error: expected unqualified-id before 'if'
   11 |   if ( answer == 1) {
      |   ^~
a.cc:13:4: error: expected unqualified-id before 'else'
   13 |   }else{
      |    ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'Yes' was not declared in this scope
   13 |     cout << Yes << endl;
      |             ^~~
a.cc:15:13: error: 'No' was not declared in this scope; did you mean 'N'?
   15 |     cout << No << endl;
      |             ^~
      |             N
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'Yes' was not declared in this scope
   13 |     cout << Yes << endl;
      |             ^~~
a.cc:15:13: error: 'No' was not declared in this scope; did you mean 'N'?
   15 |     cout << No << endl;
      |             ^~
      |             N
Language: C

object A162 {
  def main(args: Array[String]): Unit = {
    val n = new java.util.Scanner(System.in)
    println(if(n.next().contains("7")) "Yes" else "No")
  }
}


Compiler output:
main.c:1:1: error: unknown type name 'object'
    1 | object A162 {
      | ^~~~~~
main.c:1:13: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    1 | object A162 {
      |             ^
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.at(3)==7){
    cout << "YES" << endl;
    else{
      cout << "NO" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected '}' before 'else'
    8 |     else{
      |     ^~~~
a.cc:6:45: note: to match this '{'
    6 |   if(a.at(0)==7 || a.at(1)==7 || a.at(3)==7){
      |                                             ^
Language: C

#include <iostream>

using namespace std;

int main()
{
  int n,a[3],i;
  cin >> n;
  for(i=0;i<3;i++)
  {
   a[i]=n%10;
   n=n/10;
  }
  if(a[0]==7 || a[1]==7 || a[2]==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 <iostream>
#include <string>
using namespace std;

int main(void) {
	
  cin >> s;
  for (int i = 0; i<3; ++i)  {
  	if (s.substr(i,i+1)=="7") {
      cout << "Yes" << "/n";
      return 0;
    }
  }
  cout << "No" << "\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 's' was not declared in this scope
    7 |   cin >> s;
      |          ^
Language: C

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

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

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

#include <iostream>

typedef unsigned short ushort;

template < ushort N >
bool MatchesEachDigit( ushort val )
{
    while ( val > 0 )
    {
        if ( val % 10 == N )
        {
            return true;
        }
        
        val /= 10;
    }
    
    return false;
}
 
int main( void )
{
    ushort N;
    std::cin >> N;
    
    std::cout << ( MatchesEachDigit<7>(N) ? "Yes" : "No" ) << std::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;

#ifdef LOCAL
#define debug(var) cerr << (#var) << " = " << (var) << endl;
#else
#define debug(var)
#endif

void init() {
    ios_base::sync_with_stdio(0);
    cin.tie(0); cout.tie(0);
}

int solve() {
    string s; cin >> s;
    for (char c: s) if (c == '7') return !printf("Yes");
    return printf("No");
}

int main() {
    init();
    int t = 1; //scanf("%d", &t);
    while (t--) {
        solve();
    }
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
#define all(x) (x).begin(),(x).end()
const long long mod = 1e9+7;
const int dx[4] = {0,1,0,-1};
const int dy[4] = {1,0,-1,0};
const int ddx[4] = {1,1,-1, -1};
const int ddy[4] = {1,-1,-1,1};
//////////////////////////////////

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

  return 0;
}

// EOF


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>
int main(){
  int N;
  cin>>N;
  for(int i=0;i<3;i++){
    if(N.at(i)==7){
      cout<<"Yes"<<endl;
    }
      else{
        cout<<"No"<<endl;
      }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   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:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |     if(N.at(i)==7){
      |          ^~
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<"Yes"<<endl;
      |       ^~~~
      |       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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |       cout<<"Yes"<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"No"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
int main(){
  string N;
  cin>>N;
  for(int i=0;i<3;i++){
    if(N.at(i)==7){
      cout<<"Yes"<<endl;
    }
      else{
        cout<<"No"<<endl;
      }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'string' was not declared in this scope
    3 |   string N;
      |   ^~~~~~
a.cc:3:3: note: suggested alternatives:
In file included from /usr/include/c++/14/string:41,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>N;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:4:8: error: 'N' was not declared in this scope
    4 |   cin>>N;
      |        ^
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<"Yes"<<endl;
      |       ^~~~
      |       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:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |       cout<<"Yes"<<endl;
      |                    ^~~~
      |                    std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |         cout<<"No"<<endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |         cout<<"No"<<endl;
      |                     ^~~~
      |                     std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <iostream>

int main() {
    int N;

    scanf("%d",&N);

    while(N){
        if(N % 10 == 7){
            printf("Yes");
            return 0;
        }

        N = N / 10;
    }
    printf("No");

    return 0;
}


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

# coding: utf-8
# Your code here!

N = str(input())

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

Compiler output:
main.c:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
main.c:2:3: error: invalid preprocessing directive #Your
    2 | # Your code here!
      |   ^~~~
main.c:4:1: warning: data definition has no type or storage class
    4 | N = str(input())
      | ^
main.c:4:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:4:5: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    4 | N = str(input())
      |     ^~~
main.c:4:9: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    4 | N = str(input())
      |         ^~~~~
main.c:4:5: error: initializer element is not constant
    4 | N = str(input())
      |     ^~~
main.c:6:1: error: expected ',' or ';' before 'if'
    6 | if N[0] == "7" or N[1] == "7" or N[2] == "7" :
      | ^~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define lli long long int
 int main()
{	

	lli i,j,k,l,n,n1,a,b,m,q,count=0,flag=0;
	string s;
	cin >> s;
	for(i=0;i<s.size();i++){
		if(s[i]=='7'){
			flag=1;
			cout << "Yes" << '\n';
			break;
		}
	}
	if(flag==0)cout << "No" << '\n';

return 0;}


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

import java.util.*;
class Main{
    static Scanner sc=new Scanner(System.in);
    public static void main(String[] args){
        int N = sc.nextInt();
        String ans = "No";
        for(int i = 0;i<3;i++ ){
        if((N%10)==7) {
        ans = "Yes";
        break;
        else
        N = N/10;
        }
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:11: error: 'else' without 'if'
        else
        ^
1 error
Language: C

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

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

  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 <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected ';' before '}' token
    9 |     ++counter
      |              ^
      |              ;
   10 |   }
      |   ~           
a.cc:12:14: error: expected ';' before '}' token
   12 |     ++counter
      |              ^
      |              ;
   13 |   }
      |   ~           
a.cc:15:14: error: expected ';' before '}' token
   15 |     ++counter
      |              ^
      |              ;
   16 |   }
      |   ~           
a.cc:18:13: error: 'No' was not declared in this scope
   18 |     cout << No <<endl;
      |             ^~
a.cc:21:12: error: 'Yes' was not declared in this scope
   21 |     cout <<Yes <<endl;
      |            ^~~
Language: C

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

int main() {
  string s;
  cin >> s;
  int counter = 0;
  if (s[0] == '7') {
    ++counter
  }
  if (s[1] == '7') {
    ++counter
  }
  if (s[2] == '7') {
    ++counter
  }
  if (counter == 0){
    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: C

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

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

}

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

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

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

template <class T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}

#define IOS ios::sync_with_stdio(false), cin.tie(nullptr)
#define FOR(i, a, b) for (int i = (a); i < (int)(b); i++)
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(a) (a).begin(), (a).end()
#define allg(a) (a).begin(), (a).end(), greater<int>()
#define MAX(a) *max_element(all(a))

using ll = long long;
using vi = vector<int>;
using vll = vector<ll>;
using vvi = vector<vi>;
using vc = vector<char>;
using vs = vector<string>;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using Graph = vvi;

const int INF = 1001001001;
const int MOD = 1000000007;
const long long INFL = (1LL << 60);
const double EPS = 1e-9;

int main() {
  IOS;
  constexpr char endl = '\n';

  string N;
  cin >> N;
  string res = (count(all(N), '7')) ? "Yes" : "No";

  cout << res << 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()
print("Yes" if N.count("7")>=1 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:2:1: error: expected ',' or ';' before 'print'
    2 | print("Yes" if N.count("7")>=1 else "No")
      | ^~~~~
Language: C

N = input()
print("Yes" if N.count("7")>=1 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:2:1: error: expected ',' or ';' before 'print'
    2 | print("Yes" if N.count("7")>=1 else "No")
      | ^~~~~
Language: C

#include <bits/stdc++.h>
using namespace std ;
using ll = long long ;
using ld =long double ;
class date{
private :
    int day, month , year;
public:
    date(){
        day=0 ;
        month=1;
        year=2000;
    }
    date(int day ,int month ,int year){
         setday(day);
         setmonth(month);
         setyear(year);
    }
    void setday(int day){
        if (day>=1 && day <=30) this->day=day ;
        else
            assert(false);
    }
    int getday(){
        return day ;
    }
    void setmonth(int month){
        if(month >= 1 && month <=30)  this->month = month ;
        else
          assert(false);
    }
    int getmonth(){
        return month ;
    }
    void setyear(int year){
        if (year >= 2000 && year<=2020) this->year=year;
        else
            assert(false);
    }
    string Getdate(){
      return to_string(day) + "/" + to_string(month) + "/" + to_string(year);
    }
};
class book:public date{
private:
    string name ,numper ;
    double price ;
    double totalCost;
    int numpercopis ;
    double calculatetotal(){
       totalCost =price * numpercopis ;
        return totalCost ;
    }
    book(){
      name =" ";
      numper=" ";
      price =0 ;
      totalCost =0 ;
      numpercopis =0;
    }


};
int main(){
  string a;
  cin >> a;
  bool r=false ;
  for (int i=0 ;i<a.size();i++){
    if (a[i]=='7'){
       r=true ;
       break ;
    }
  }
    if (r) 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>
#include <iostream>
#include <string>
#include <limits.h>
#include <algorithm>
#include <iomanip>
using namespace std;

int main(){
  int N,  ans = 0 ;
  cin >> N ;
  if((N%10) == 7){
    ans = 1 ;
  }
  N /= 10 ;
  if((N%10) == 7){
    ans = 1 ;
  }
  N /= 10 ;
  if(N == 7){
    ans = 1 ;
  }
  if(ans){
    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;

bool find7(string s){
    for(int i=0; s[i]; i++){
        if(s[i] == '7')
            return true;
    }
    return false;
}

int main(){
    int n;
    cin >> n;
    string s = to_string(n);
    if(find7(s))
        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++

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

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:10: error: 'cin' was not declared in this scope
    5 |    int s;cin>>s;
      |          ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:6:20: error: request for member 'length' in 's', which is of non-class type 'int'
    6 |    for(int i=0;i<s.length();i++)
      |                    ^~~~~~
a.cc:7:10: error: invalid types 'int[int]' for array subscript
    7 |    { if(s[i]=='7')
      |          ^
a.cc:8:6: error: 'cout' was not declared in this scope
    8 |      cout<<"Yes";
      |      ^~~~
a.cc:8:6: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:10:7: error: 'cout' was not declared in this scope
   10 |       cout<<"No";
      |       ^~~~
a.cc:10:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:4: error: 'cout' was not declared in this scope
   11 |    cout<<endl;
      |    ^~~~
a.cc:11:4: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:10: error: 'endl' was not declared in this scope
   11 |    cout<<endl;
      |          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
Language: C

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

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


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

 #include <bits/stdc++.h>
    using namespace std;
    int main() {
 string s;
 cin >> s;
 int cnt = 0;

for(i = 0; i < 3; i++){
 if (s.at(i) == '7'){
 cout << Yes << endl;
}
 else{
 cout << No << endl;
}
}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'i' was not declared in this scope
    8 | for(i = 0; i < 3; i++){
      |     ^
a.cc:10:10: error: 'Yes' was not declared in this scope
   10 |  cout << Yes << endl;
      |          ^~~
a.cc:13:10: error: 'No' was not declared in this scope
   13 |  cout << No << endl;
      |          ^~
Language: C

#define _USE_MATH_DEFINES
#include <iostream>
#include <string>
#include <list>
#include <vector>
#include <queue>
#include <algorithm>
#include <climits>
#include <cstring>
#include <cmath>
#include <stack>
#include <iomanip>
#include <tuple>
#include <functional>
#include <cfloat>
#include <map>
#include <stdio.h>
#include <string.h>
using ll = long long;

using namespace std;

//LLONG_MAX = 90^18
#define int long long
#define CONTAINS(v,n) (find((v).begin(), (v).end(), (n)) != (v).end())
#define SORT(v) sort((v).begin(), (v).end())
#define RSORT(v) sort((v).rbegin(), (v).rend())
#define ARY_SORT(a, size) sort((a), (a)+(size))
#define REMOVE(v,a) (v.erase(remove((v).begin(), (v).end(), (a)), (v).end()))
#define REVERSE(v) (reverse((v).begin(), (v).end()))
#define LOWER_BOUND(v,a) (lower_bound((v).begin(), (v).end(), (a)))
#define UPPER_BOUND(v,a) (upper_bound((v).begin(), (v).end(), (a)))
#define REP(i, n) for (int (i)=0; (i) < (n); (i)++)
#define CONTAINS_MAP(m, a) (m).find((a)) != m.end()
void YesNo(bool b) { cout << b ? "Yes" : "No"; }
void Yes() { cout << "Yes"; }
void No() { cout << "No"; }



signed main()
{
	char N[10];

	cin >> N;

	for (int i = 0; i < strlen(N); i++)
	{
		if (N[i] == '7')
		{
			Yes();
			return 0;
		}
	}
	No();
}




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

#include <bits/stdc++.h>
#define FOR(i, a, n) for(int (i) = (int)(a); (i) < (int)(n); ++(i))
#define FORe(i, a, n) for(int (i) = (int)(a); (i) <= (int)(n); ++(i))
#define rFOR(i, a, n) for(int (i) = (int)(n)-1; (i) >= (int)(a); --(i))
#define REP(i, n) FOR((i), 0, (n))
#define REPe(i, n) FORe((i), 0, (n))
#define rREP(i, n) rFOR((i), 0, (n))
#define rep(i, n) FOR((i), 0, (n))
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define fi first
#define se second
#define dup(x, y) (((x)+(y)-1)/(y))
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
using ll = long long;
using P = pair<int,int>;
using T = tuple<int,int,int>;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vs = vector<string>;
using vp = vector<P>;
using vt = vector<T>;

template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

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 rep(i, n) for (int i = 0; i < n; i++)
#define rep2(i, l, r) for (int i = (l); i < (r); i++)
#define ALL(x) (x).begin(), (x).end()     //昇順
#define RALL(x) (x).rbegin(), (x).rend()  // 降順
const long long mod = 1e9 + 7;
typedef long long ll;  // ll とdoubleは違う
typedef priority_queue<int> PQ;
typedef vector<long long> VL;
typedef vector<bool> VB;
typedef vector<int> VI;  // VI a(n);
typedef vector<double> VD;
typedef vector<string> VS;
typedef vector<char> VC;
typedef vector<VS> VSS;
typedef vector<VC> VCC;
typedef vector<VI> VII;  // VII a(n,vector<int>(m)) n * m
typedef vector<VL> VLL;
typedef pair<int, int> PII;
typedef map<int, int> MP;  // MP a;
typedef vector<pair<ll, ll>> PS;

template <class T, class U>  // chmax(max, a);
bool chmax(T &a, U b) {
  if (a <= b) {
    a = b;
    return 1;
  }
  return 0;
}
template <class T, class U>  // chmin(min,a)
bool chmin(T &a, U b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}
template <typename T>  // operator << (cout,a);
ostream &operator<<(ostream &os, vector<T> &v) {
  os << "{";
  rep(i, (int)v.size()) { os << v[i] << (i < v.size() - 1 ? ", " : ""); }
  os << "}";
  return os;
}

// g++ -std=c++11 prac.cpp
     

int main() {
  ll x,y,z=0,k,n,m,h,w,ans=0,sum=0,Max=-1,Min=1e9+1;
  bool ok = true;
  string s,t,r;
  cin >> s;
  rep(i,s.size()){
    if(s[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>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: invalid types 'char[int]' for array subscript
    6 |   if(n[0]=='7' || n[1]=='7' || n[2]=='7')cout <<"Yes" <<endl;
      |       ^
a.cc:6:20: error: invalid types 'char[int]' for array subscript
    6 |   if(n[0]=='7' || n[1]=='7' || n[2]=='7')cout <<"Yes" <<endl;
      |                    ^
a.cc:6:33: error: invalid types 'char[int]' for array subscript
    6 |   if(n[0]=='7' || n[1]=='7' || n[2]=='7')cout <<"Yes" <<endl;
      |                                 ^
Language: C

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

int main() {
    int n,ok=0;
    cin>>n;
    while(n){
        if(n%10==7){
            ok=1;break;
        }
        n/=10;
    }
	cout<<(ok?"Yes\n":"No\n");
	return 0;
}

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

import java.util.Scanner;

class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
        int N = stdIn.nextInt();
        int is7 =0;
        
        if(N/100 == 7){
            is7 = 1;
        }
        N=N-(N/100)*100;
        if(N/10 == 7){
            is7 =1;
        }
        N=N-(N/10)*10;
        if(N == 7){
            is7 = 1;
        }
        
        if(is7 == 1)
            System.out.print("Yes");
        else
            System.out.print("No");
        
    }
}

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.Scanner;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.Scanner;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
flag=1;
string a;
int main()
{
  	cin>>a;
	for(int i=0;i<a.length();i++)
    {
      if(a[i]=='7')
      {
      	flag = 0;
        break;
      }
    }
	if(flag)
      cout<<"Yes";
  	else
      cout<<"No";
}

  

Compiler output:
a.cc:3:1: error: 'flag' does not name a type
    3 | flag=1;
      | ^~~~
a.cc: In function 'int main()':
a.cc:12:9: error: 'flag' was not declared in this scope
   12 |         flag = 0;
      |         ^~~~
a.cc:16:12: error: 'flag' was not declared in this scope
   16 |         if(flag)
      |            ^~~~
Language: C

#include <bits/stdc++.h>
#define f first
#define s second
#define pl pair < long long , long long >
#define ll long long

using namespace std;

const long long BIG = 1e7 + 9 ;
string s ;
int main()
{
    bool ans = 0 ;
    cin >> s ;
    for ( auto i : s )
        if ( i == '7' )
        ans = 1 ;
    ans ? cout << "Yes" : 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>

typedef long long ll;
typedef long double ld;

#define n1		      "\n"
#define B                     begin()
#define E                     end()
#define F                     first
#define S                     second
#define pb                    push_back
#define pf                    push_front
#define popb                  pop_back()
#define popf                  pop_front()

const int BIG=1e5+55;
const int BIGG=1e9+7;
const ll BIGGE=1e12+55;
const double SML=(1e-7);

using namespace std;

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


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

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

void Main()
{
  string N;
  cin >> N;
  for (auto &s : N)
  {
    if (s == '7')
    {
      cout << "Yes" << endl;
      return;
    }
  }
  cout << "No" << endl;
  return;
}

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

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

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

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

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

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

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

#include<stdio.h>
int main(void) {
	char s[3];
	scanf("%d%d%d", &s[0],&s[1]&,s[2]);
	if (s[0] ==7 || s[1] ==7 || s[2] == 7) printf("Yes");
	else { printf("No");
	}
 
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:37: error: expected expression before ',' token
    4 |         scanf("%d%d%d", &s[0],&s[1]&,s[2]);
      |                                     ^
Language: C

#include<stdio.h>
int main(void) {
	char s[3];
	scanf("%c%c%c", &s[0],&s[1]&,s[2]);
	if (s[0] ==7 || s[1] ==7 || s[2] == 7) printf("Yes");
	else { printf("No");
	}
 
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:37: error: expected expression before ',' token
    4 |         scanf("%c%c%c", &s[0],&s[1]&,s[2]);
      |                                     ^
Language: C

#include<iostream> //ABC 162_a
#include<algorithm>
#include<cstring>
#include<stdio.h>
using namespace std;
int main(){
	int n;
	scanf("%d",&n);
	while(n){
		if(n%10==7){
		printf("Yes\n");
		return 0;
		}
		n/=10;
	}
	printf("No\n");
	return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected ';' before '}' token
    5 | return 0}
      |         ^
      |         ;
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:2:123: error: expected ';' before '}' token
    2 | using namespace std;int main(){string st;cin>>st;int i;for(i=0;i<st.size();i++){if(st[i]=='7') {cout<<"Yes"<<endl;return 0}}cout<<"No"<<endl;return 0;}
      |                                                                                                                           ^
      |                                                                                                                           ;
Language: C

#include<bits/stdc++.h> //ABC 162_a
int main(){
	int n;
	scanf("%d",&n);
	if(n%10==7){
		printf("Yes\n");
		return 0;
	}
	else if(n%10!=7){
		n=n/10;	
	}
	if(n%10==7){
		printf("Yes\n");
		return 0;
	}
	else if(n%10!=7){
		n=n/10;
	}
	if(n!=7)
		printf("No\n");
	else
		printf("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> //ABC 162_a
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include<bits/stdc++.h> //ABC 162_a
int main(){
	int n;
	scanf("%d",&n);
	for(int i=1;i<=3;i++){
		if(n%10==7){
		printf("Yes\n");
		return 0;
		}
		n/=10;
	}
	printf("No\n");
	return 0;
}

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

#include<bits/stdc++.h> //ABC 162_a
int main(){
	int n;
	scanf("%d",&n);
	while(n){
		if(n%10==7){
		printf("Yes\n");
		return 0;
		}
		n/=10;
	}
	printf("No\n");
	return 0;
}

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

#include<bits/stdc++.h> //ABC 162_a
using namespace std;
int main(){
	int n;
	scanf("%d",&n);
	while(n){
		if(n%10==7){
		printf("Yes\n");
		return 0;
		}
		n/=10;
	}
	printf("No\n");
	return 0;
}

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

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

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

#include<bits/stdc++.h> //ABC 162_a
using namespace std;
int main(){
	int n;
    cin>>n;
    while(n){
        if(n%10==7){
            cout<<"Yes";
            return 0; 
        }
        n=n/10;
    }
    cout<<"No";
	return 0;
}

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

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

int main() {
  string a;
  cin >> a;
  if(a.at(0)=="7"){
    cout << "yes" << endl;
  }
  else if(a.at(1)=="7"){
    cout << "yes" << endl;
  }
  else if(a.at(2)=="7"){
    cout << "yes" << endl;
  }
  else{
    cout << "no" << endl;
  }
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(a.at(0)=="7"){
      |      ~~~~~~~^~~~~
a.cc:10:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   else if(a.at(1)=="7"){
      |           ~~~~~~~^~~~~
a.cc:13:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   else if(a.at(2)=="7"){
      |           ~~~~~~~^~~~~
Language: C++

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

int main() {
  
  string N;
  cin >> N;
  
  char N1=N.at(0);
  char N2=N.at(1);
  char N3=N.at(2);
  
  if (N1=7 || N2=7 || N3=7) {
    cout << "Yes";
  }
  
  else {
    cout << "No";
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: lvalue required as left operand of assignment
   13 |   if (N1=7 || N2=7 || N3=7) {
      |                  ~~^~~~~
Language: C++

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

int main() {
  
  string N;
  cin >> N;
  
  char N1=string.at(0);
  char N2=string.at(1);
  char N3=string.at(2);
  
  if (N1=7 || N2=7 || N3=7) {
    cout << "Yes";
  }
  
  else {
    cout << "No";
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected primary-expression before '.' token
    9 |   char N1=string.at(0);
      |                 ^
a.cc:10:17: error: expected primary-expression before '.' token
   10 |   char N2=string.at(1);
      |                 ^
a.cc:11:17: error: expected primary-expression before '.' token
   11 |   char N3=string.at(2);
      |                 ^
a.cc:13:20: error: lvalue required as left operand of assignment
   13 |   if (N1=7 || N2=7 || N3=7) {
      |                  ~~^~~~~
Language: C

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

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(0);
    
    string s;
    cin >> s;

    bool flag = false;
    for (char c : s) {
        if (c == '7') {
            flag = true;
            break;
        }
    }
    cout << (flag ? "Yes" : "No") << "\n";
}


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

l = input()
if l[0] == '7' or l[1] == '7' or l[2] == '7':
  print('Yes')
else:
  print('No')

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

l = input()
if l[0] == 7 or l[1] == 7 or l[2] == 7:
  print('Yes')
else:
  print('No')

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

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

int main() {
  
  string N;
  cin >> N;
  
  int N1=string.at(0);
  int N2=string.at(1);
  int N3=string.at(2);
  
  if (N1=7 || N2=7 || N3=7) {
    cout << "Yes";
  }
  
  else {
    cout << "No";
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: expected primary-expression before '.' token
    9 |   int N1=string.at(0);
      |                ^
a.cc:10:16: error: expected primary-expression before '.' token
   10 |   int N2=string.at(1);
      |                ^
a.cc:11:16: error: expected primary-expression before '.' token
   11 |   int N3=string.at(2);
      |                ^
a.cc:13:20: error: lvalue required as left operand of assignment
   13 |   if (N1=7 || N2=7 || N3=7) {
      |                  ~~^~~~~