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

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

int main() {
  
  string N;
  cin >> N;
  
  int N1=string.at(0), N2=string.at(1), 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), N2=string.at(1), N3=string.at(2);
      |                ^
a.cc:11:15: error: 'N2' was not declared in this scope; did you mean 'N1'?
   11 |   if (N1=7 || N2=7 || N3=7) {
      |               ^~
      |               N1
a.cc:11:23: error: 'N3' was not declared in this scope; did you mean 'N1'?
   11 |   if (N1=7 || N2=7 || N3=7) {
      |                       ^~
      |                       N1
Language: C

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

int main() {
  int N;
  cin>>N;
    if(N/100==7)
      cout<<"Yes"<<endl;
    else if(N%100/10==7)
      cout<<"Yes"<<endl;
  	else if(N%10==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 A =0;
  
  for(int i=0;i < 3;i++){
    if(s[i] == '7'){
      A++;
    }
  }
  
  if(A >0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
 
}

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

#include<stdio.h>

using namespace std;

int main() {
	char s[4];
	scanf("%s", &s);
	int i;
	if ((s[0] == '7') || (s[1] == '7') || (s[2] == '7')) {
		printf("Yes");

	}
	else {
		printf("No");
	}

	return 0;

}


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include<stdio.h>

using namespace std;

int main() {
	char s[4];
	scanf("%s", s);
	int i;
	if ((s[0] == '7') || (s[1] == '7') || (s[2] == '7')) {
		printf("Yes");

	}
	else {
		printf("No");
	}

	return 0;

}


Compiler output:
main.c:3:1: error: unknown type name 'using'
    3 | using namespace std;
      | ^~~~~
main.c:3:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    3 | using namespace std;
      |                 ^~~
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ll long long
const int N=100005;
int n,x;
int main(){
    cin>>n;
    x=n%10;
    n/=10;
    if(n/10==7||n%10==7||x==7) cout<<"Yes";
    else cout<<"No";
    return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
//#define ll long long
//const int N=100005;
int n,x;
int main(){
    cin>>n;
    x=n%10;
    n/=10;
    if(n/10==7||n%10==7||x==7) cout<<"Yes";
    else cout<<"No";
    return 0;
}

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

#include<bits/stdc++.h>
#define ll long long
const int N=100005;
using namespace std;
int n,x;
int main(){
    cin>>n;
    x=n%10;
    n/=10;
    if(n/10==7||n%10==7||x==7) cout<<"Yes";
    else cout<<"No";
    return 0;
}

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

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

int main(){
  string s;
  cin>>s;
  int i;
bool t=0;
  for(i=0;i<s.length();i++){
    
if(s.at(i) == "7"){
 t =1;
}

  }
if(t==1){
cout<<"Yes"<<endl;
}else
{
cout<<"No"<<endl;
}
  return 0;
 
}


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

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

int main()
{
	int a,ge,shi,bai,b=7;
	cin >> a;
	ge=a%10;
	shi=a/10%10;
	bai=a/100;
	if(ge==b)
	{
		cout << "Yes";
		return 0;
	}
	else if(shi==b)
	{
		cout << "Yes" ;
		return 0;
	}
	else if(bai==b)
	{
		cout << "Yes" ;
		return 0;
	}
	else
	{
		cout << "No";
		return 0;
	}
}

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

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

int main(){
  string s;
  cin>>s;
  int i;
bool t=0;
  for(i=0;i<s.length();i++){
    
if(s.at(i) == "7"){
 t =1
}

  }
if(t==1){
cout<<"Yes"<<endl;
}else
{
cout<<"No"<<endl;
}
  return 0;
 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 | if(s.at(i) == "7"){
      |    ~~~~~~~~^~~~~~
a.cc:13:6: error: expected ';' before '}' token
   13 |  t =1
      |      ^
      |      ;
   14 | }
      | ~
Language: C

#include <bits/stdc++.h>

#define debug(x) cout << '>' << #x << ':' << x << endl
using namespace std;

string solve() {
    int N;
    cin >> N;
    if(N / 100 == 7) {
        return "Yes";
    }
    N = N / 100;
    if(N/10 == 7){
        return "Yes";
    }

    N = N % 10;
    if(N == 7){
        return "Yes";
    }
    return "NO";
}

int main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    cout << solve() << 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

fn main() {
    let num = input();
    println!("{}", solve(num));
}

fn input() -> String {
    let mut buf = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    buf.pop();
    buf
}

fn solve(num: String) -> String {
    for c in num.chars() {
        if c == '7' { return String::from("Yes"); }
    }
    String::from("No")
}


Compiler output:
main.c:1:1: error: unknown type name 'fn'
    1 | fn main() {
      | ^~
main.c: In function 'main':
main.c:2:5: error: unknown type name 'let'
    2 |     let num = input();
      |     ^~~
main.c:2:15: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    2 |     let num = input();
      |               ^~~~~
main.c:3:5: error: 'println' undeclared (first use in this function)
    3 |     println!("{}", solve(num));
      |     ^~~~~~~
main.c:3:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:3:12: error: expected ';' before '!' token
    3 |     println!("{}", solve(num));
      |            ^
      |            ;
main.c: At top level:
main.c:6:1: error: unknown type name 'fn'
    6 | fn input() -> String {
      | ^~
main.c: In function 'input':
main.c:6:12: error: expected declaration specifiers before '->' token
    6 | fn input() -> String {
      |            ^~
main.c:13:1: error: unknown type name 'fn'
   13 | fn solve(num: String) -> String {
      | ^~
main.c:13:13: error: expected ')' before ':' token
   13 | fn solve(num: String) -> String {
      |             ^
      |             )
main.c:19: error: expected '{' at end of input
Language: C

fn main() {
    println!("{}", solve(input()));
}

fn input() -> String {
    let mut buf = String::new();
    std::io::stdin().read_line(&mut buf).unwrap();
    buf.pop();
    buf
}

fn solve(num: String) -> String {
    for c in num.chars() {
        if c == '7' { return String::from("Yes"); }
    }
    String::from("No")
}


Compiler output:
main.c:1:1: error: unknown type name 'fn'
    1 | fn main() {
      | ^~
main.c: In function 'main':
main.c:2:5: error: 'println' undeclared (first use in this function)
    2 |     println!("{}", solve(input()));
      |     ^~~~~~~
main.c:2:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:2:12: error: expected ';' before '!' token
    2 |     println!("{}", solve(input()));
      |            ^
      |            ;
main.c: At top level:
main.c:5:1: error: unknown type name 'fn'
    5 | fn input() -> String {
      | ^~
main.c: In function 'input':
main.c:5:12: error: expected declaration specifiers before '->' token
    5 | fn input() -> String {
      |            ^~
main.c:12:1: error: unknown type name 'fn'
   12 | fn solve(num: String) -> String {
      | ^~
main.c:12:13: error: expected ')' before ':' token
   12 | fn solve(num: String) -> String {
      |             ^
      |             )
main.c:18: error: expected '{' at end of input
Language: C

#include<iostream>
using namespace std;
#define ll long long
string s; 
int main()
{
   cin>>s;
   if(s[0]=='7'||s[1]=='7'||s[2]=='7')cout<<"Yes";
else  cout<<"No";
return 0;
}


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

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


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

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

cout<<"No";
return 0;
}


Compiler output:
main.c:1:9: fatal error: 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;
  if(N%10 == 7 || N%100-N%10 == 70 || N-N%100 == 700){
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  }
}

Compiler output:
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C

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

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

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

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

int main() {
    int N;
    if (N/100 == 7 || (N%100)/10 == 7 || (N%10) == 7) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

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

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

int main()
{
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	string n; cin >> n;
	for(int i{}; i < n.size(); 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<bits/stdc++.h>
using namespace std;
int main(){
string N;
cin>>N;
if(N[0]=='7'||N[1]=='7'||N[2]=='7'){
    cout<<"Yes";
}
else cout<<"No";
return 0;
}


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

#include<iostream>
using namespace std;
int main(){
string N;
cin>>N;
if(N[0]=='7'||N[1]=='7'||N[2]=='7'){
    cout<<"Yes";
}
else cout<<"No";
return 0;
}


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

#include<iostream>
using namespace std;
int main(){
  int n;
  cin>>n;
  int flag=0;
  while(n!=0){
      int x=n%10;
      if(x==7){
          cout<<"Yes"<<endl;
          flag=1;
          break;
      }
      n/=10;
    
  }
  if(flag==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/stdc++.h>
using namespace std;

int main()
{
	int a,ge,shi,bai;
	cin >> a;
	ge=a%10;
	shi=a/10%10;
	bai=a/100;
	if(ge==7)
	{
		cout << "Yes";
		return 0;
	}
	else if(shi==7)
	{
		cout << "Yes" ;
		return 0;
	}
	else if(bai==7)
	{
		cout << "Yes" ;
		return 0;
	}
	else
	{
		cout << "No";
		return 0;
	}
}

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

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

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

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

#include <bits/stdc++.h>

using namespace std;

class Solution {
public:
	void solve() {
		int n;
		cin >> n;
		while (n) {
			if (n % 10 == 7) {
				cout << "Yes\n";
				return;
			}
			n /= 10;
		}
		cout << "No\n";
		return;
	};
};

int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	Solution solution;
	solution.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 <iostream>
#include <string>
#include <vector>
#include <set>
#include <map>
#include <numeric>
#include <algorithm>
using namespace std;

typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ii> vii;

#define repa(i, a, b) for (auto i = (a); i <= (b); i++)
#define repd(i, a, b) for (auto i = (a); i >= (b); i--)
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) (x).begin(), (x).end()
#define zero(a)  memset((a), 0, sizeof (a))
#define sz(x) (int)(x).size()
#define debug(x) cout << (x) << "\n";
#define mp make_pair
#define pb push_back

void solve() {
	cout << "\n";
}

int main() {
    ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
	int n;
    cin >> n;
    while (n > 0) {
        auto d = n % 10;
        if (d == 7) {
            cout << "Yes" << endl;
            return 0;
        }
        n /= 10;
    }
    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;

typedef long long ll;
typedef pair<int, int> ii;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ii> vii;

#define repa(i, a, b) for (auto i = (a); i <= (b); i++)
#define repd(i, a, b) for (auto i = (a); i >= (b); i--)
#define rep(i, n) for (int i = 0; i < n; i++)
#define all(x) (x).begin(), (x).end()
#define zero(a)  memset((a), 0, sizeof (a))
#define sz(x) (int)(x).size()
#define debug(x) cout << (x) << "\n";
#define mp make_pair
#define pb push_back

void solve() {
	cout << "\n";
}

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

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

#include <bits/stdc++.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < s.length; i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

    if (flag)
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:27: error: invalid use of member function 'std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::size_type std::__cxx11::basic_string<_CharT, _Traits, _Alloc>::length() const [with _CharT = char; _Traits = std::char_traits<char>; _Alloc = std::allocator<char>; size_type = long unsigned int]' (did you forget the '()' ?)
   11 |     for (int i = 0; i < s.length; i++)
      |                         ~~^~~~~~
      |                                 ()
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < len(s); i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

    if (flag)
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:25: error: 'len' was not declared in this scope
   11 |     for (int i = 0; i < len(s); i++)
      |                         ^~~
Language: C

#include <iostream>
using namespace std;
 
    
    
int main(){
  int x,a,b,c;
  cin>>x;
  a=x/100;
  b=x%100/10;
  c=x%10;
  if ((a==7)||(b==7)||(c==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 <stdio.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < len(s); i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

    if (flag)
    {
        printf("Yes");
    }
    else
    {
        printf("No");
    }
}

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s;
      |     ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | 
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> s;
      |     ^~~
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 | 
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
a.cc:11:25: error: 'len' was not declared in this scope
   11 |     for (int i = 0; i < len(s); i++)
      |                         ^~~
Language: C++

#include <stdio.h>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < len(s); i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string s;
      |     ^~~~~~
a.cc:2:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
    1 | #include <stdio.h>
  +++ |+#include <string>
    2 | 
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> s;
      |     ^~~
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 | 
a.cc:8:12: error: 's' was not declared in this scope
    8 |     cin >> s;
      |            ^
a.cc:11:25: error: 'len' was not declared in this scope
   11 |     for (int i = 0; i < len(s); i++)
      |                         ^~~
a.cc:22:9: error: 'cout' was not declared in this scope
   22 |         cout << "Yes" << endl;
      |         ^~~~
a.cc:22:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:26: error: 'endl' was not declared in this scope
   22 |         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 | 
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << "No" << endl;
      |         ^~~~
a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:25: error: 'endl' was not declared in this scope
   26 |         cout << "No" << endl;
      |                         ^~~~
a.cc:26:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < len(s); i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

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

Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:11:25: error: 'len' was not declared in this scope; did you mean 'mblen'?
   11 |     for (int i = 0; i < len(s); i++)
      |                         ^~~
      |                         mblen
Language: C

#include <iostream>

using namespace std;

int main(int argc, const char *argv[])
{
    string s;
    cin >> s;

    bool flag = false;
    for (int i = 0; i < len(s); i++)
    {
        if (s[0] == '7')
        {
            flag = true;
            break;
        }
    }

    if (flag)
    {
        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 <stdio.h>
#include <stdlib.h>

using namespace std;

int main()
{
    int N,flag=0;
    scanf("%d",&N);
    for(int i=0;i<3;i++){
        if(N%10==7){
            flag++;
            printf("Yes");
            break;
        }
        N = N/10;
    }
    if(flag==0){
        printf("No");
    }

    return 0;
}

Compiler output:
main.c:4:1: error: unknown type name 'using'
    4 | using namespace std;
      | ^~~~~
main.c:4:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    4 | using namespace std;
      |                 ^~~
Language: C

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

int main()
{
	int num,a,b,c;
	cin>>num;
	 a = num/100;

     b = (num-a*100)/10;

     c = num-a*100-b*10;
	
	if(a==7||b==7||c==7)
	cout<<"Yes";
	else
	cout<<"No";
	return 0;
 }

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

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

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

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

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
 int x,i,r;
 cin>>x;
 r=x%100;

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

return 0;
}


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

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

int main()
{
	int a[2],s=0;
	cin>>a[2];
	for(int i=0;i<=2;i++)
	{
		if(a[i]==7)//1 2 3
		{
			s++;
			break;
		}
		else
		s+0;
	}
	if(s==0)
	cout<<"No";
	if(s>=1)
	cout<<"Yes";
	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

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


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

package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
public class CL1 {
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int n=scan.nextInt();
        boolean flag=false;
        while(n!=0){
            int dig=n%10;
            if(dig==7){
                flag=true;
            }
            n/=10;
        }
        if(flag){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;
    
        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }
    
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
    
        int nextInt()
        {
            return Integer.parseInt(next());
        }
    
        long nextLong()
        {
            return Long.parseLong(next());
        }
    
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
    
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
    
}


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

//package com.company;
import java.util.*;
import java.lang.*;
import java.io.*;
//****Use Integer Wrapper Class for Arrays.sort()****
public class CL1 {
    public static void main(String[] Args){
        FastReader scan=new FastReader();
        int n=scan.nextInt();
        boolean flag=false;
        while(n!=0){
            int dig=n%10;
            if(dig==7){
                flag=true;
            }
            n/=10;
        }
        if(flag){
            System.out.println("YES");
        }else{
            System.out.println("NO");
        }
    }
    static class FastReader {
        BufferedReader br;
        StringTokenizer st;
    
        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }
    
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
    
        int nextInt()
        {
            return Integer.parseInt(next());
        }
    
        long nextLong()
        {
            return Long.parseLong(next());
        }
    
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
    
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
    
}


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected unqualified-id before ';' token
    7 |   for(int i=0;i<s.;ength();i++)
      |                   ^
a.cc:7:20: error: 'ength' was not declared in this scope
    7 |   for(int i=0;i<s.;ength();i++)
      |                    ^~~~~
a.cc:7:27: error: expected ')' before ';' token
    7 |   for(int i=0;i<s.;ength();i++)
      |      ~                    ^
      |                           )
a.cc:7:28: error: 'i' was not declared in this scope
    7 |   for(int i=0;i<s.;ength();i++)
      |                            ^
Language: C

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

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;

typedef long long ll;
typedef vector<int> pi;
typedef pair<int,int> vi;

#define F first
#define S second
#define PB push_back
#define MK make_pair
#define REP(i, a, b) for (int i=a; i < b; i++)


bool sort_by(vi c, vi d){
	return c.S < d.S;
}

int main() {
	int N;
	cin >> N;
	string ans = "No";
	while(N > 0){
		if(N % 10 == 7) ans = "Yes";
		N /= 10;
	}
	cout << ans;
}


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

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

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

//int a = stoi(c); 文字列をintへ
//小文字から大文字
//transform(a.begin(), a.end(), a.begin(), ::toupper);
//途中の出力をそのまま残さない
//数値計算 個数以外はdouble
//map<キー,値> p は辞書。p[キー] = 値
//map 全探索
//auto begin = p.begin(), end = p.end();
//for (auto it = begin; it != end; it++) {}
//mapのキー：it->first mapのバリュー：it->second
//絶対値 abs()
//入力は空白で切れる
//大文字判定 isupper(文字) 小文字判定 islower(文字)
//do{}while(next_permutation(ALL(配列)))
//while(N)で回すとき、Nはコピーを作っておく
//小文字に対応する文字コード：S[i] - 'a'
//文字コード→小文字：(char)(数字+'a')
//グラフの距離:隣接行列で扱う
//等価なものに変換する思考
//bool型　初期値はTrue
//島渡りの問題：中間ノードに着目
//配列はvector<>を使う：意味わからないエラーがなくなる。
//背反な事象にちゃんとわける
//チェックリストはマップを使う
//数が大きい時の比較はstring型で行う
//全て0になったか調べたい->0になるたびにcntする
//またはかかつか
//例外処理は最初にする
//x = p^m + q^n...の約数の個数:(n+1)*(m+1)....
//N!のどの素因数で何回割れるか
//⇔1~Nまでの数がそれぞれどの素因数で何回割り切れるかの和
//パズルの問題->一般化して全探索
//数が大きい時のせぐふぉはコードテストで試してみる
//スペルミスに注意
#include <bits/stdc++.h>
#define rep(i,N) for(int i = 0; i < N;i++)
#define ALL(a) (a).begin(),(a).end()
#define ll long long int
	using namespace std;

//円周率
const double PI = 3.14159265358979323846;
//割るやつ
const ll M = (pow(10, 9) + 7);

// K進数でのNの桁数
ll dig(ll N, ll K) {
	ll dig = 0;
	while (N) {
		dig++;
		N /= K;
	}
	return dig;
}
// a,bの最大公約数
ll gcd(ll a, ll b) {
	if (b == 0) return a;
	return gcd(b, a%b);
}

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

//nC2の計算
ll C(ll N) {
	return N * (N - 1) / 2;
}

//階乗計算
ll f(ll n) {
	if (n == 0 || n == 1) return 1;
	else return (n * f(n - 1)) % M;
}

//Nをdで何回割れるか
ll divcnt(ll N, ll d) {
	ll ans = 0;
	while (1) {
		if (N%d == 0) {
			ans++;
			N /= d;
		}
		else break;
	}

	return ans;
}

//素数判定
bool prime(ll num) {
	if (num < 2) return false;
	else if (num == 2) return true;
	else if (num % 2 == 0) return false;
	double sqrtNum = sqrt(num);
	for (int i = 3; i <= sqrtNum; i += 2) {
		if (num % i == 0) return false;
	}
	return true;
}

//フィボナッチ数列
vector<ll> memo(pow(10, 6) + 1);
ll fibo(ll n) {
	if (n == 1) return 1;
	else if (n == 2) return 1;
	else if (memo[n] != 0) return memo[n];
	else return memo[n] = fibo(n - 1) + f(n - 2);
}

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

Compiler output:
main.c:35:10: fatal error: bits/stdc++.h: No such file or directory
   35 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
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;
    }

    return 0;
}


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

#include<bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rep1(i, n) for (int i = 1; i <= (n); ++i)
#define Sort(Array) sort(Array.begin(), Array.end())
#define Reverse(a) reverse(a.begin(), a.end())
#define out(ans) cout << ans << endl;

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

  int len = s.size();
  rep(i, len) if(s[i]=='7'){
    out("Yes");
    return 0;
  }
  out("No");
}


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

#include <iostream>
//#include <set>
//#include <map>
//#include <iomanip>
//#include <algorithm>
//#include <numeric>
//#include <queue>
//#include <stack>
//#include <math.h>
//#include <vector>
#include <string>
//#include <list>
//#include <deque>
//#include <unordered_map>
typedef long long LL;
//typedef long double LD;
using namespace std;
 
//#define MOD 1000000007
//#define MAX 100100
//#define NIL -1

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

    if(ans==true){
        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: Java

import java.util.Scanner;

public class Lucky_7 {
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int str = scanner.nextInt();
		if(str % 10 == 7){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}

	}

}


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

package Beiginer162;

import java.util.Scanner;

public class Lucky_7 {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner scanner = new Scanner(System.in);
		int str = scanner.nextInt();
		if(str % 10 == 7){
			System.out.println("Yes");
		}
		else{
			System.out.println("No");
		}

	}

}


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

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

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

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

#ifndef JHELPER_EXAMPLE_PROJECT_DEFINITION_HPP
#define JHELPER_EXAMPLE_PROJECT_DEFINITION_HPP

#include <bits/stdc++.h>

#define REP(i, N) for (ll i = 0; i < (N); ++i)
#define ALL(x) (x).begin(), (x).end()
#define MOD 1000000007
#define INF ll(1e9)
#define INFL ll(1e18)
#define PB push_back
#define MP make_pair
using namespace std;
typedef long long ll;
typedef pair<int, int> P;
ll gcd(ll x, ll y) { return y ? gcd(y, x % y) : x; }
int ctoi(char c) {return c - '0';}

#endif //JHELPER_EXAMPLE_PROJECT_DEFINITION_HPP

#ifndef JHELPER_EXAMPLE_PROJECT_UNIONFIND_HPP
#define JHELPER_EXAMPLE_PROJECT_UNIONFIND_HPP



struct UnionFind {
    vector<ll> data;
    UnionFind(ll size) : data(size, -1) {}

    ll root(ll x) {
        if (data[x] < 0)
            return x;
        else
            return data[x] = root(data[x]);
    }

    ll size(ll x) { return -data[root(x)]; }

    bool isConnect(ll x, ll y) { return root(x) == root(y); }

    bool connect(ll x, ll y) {
        x = root(x);
        y = root(y);

        if (x == y)
            return false;

        if (data[x] > data[y]) {
            x ^= y;
            y ^= x;
            x ^= y;
        }

        data[x] = data[x] + data[y]; // membersize++
        data[y] = x;
        return true;
    }
};


#endif //JHELPER_EXAMPLE_PROJECT_UNIONFIND_HPP


class ALucky7 {
public:
	void solve(std::istream& in, std::ostream& out) {
	    UnionFind U(5);
	    string N; in >> N;
	    string ans = "No";
	    REP(i, N.size()) {
	        if (N[i] == '7') ans = "Yes";
	    }
	    out << ans << '\n';
	}
};


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

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


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

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

#define REP(i, n) for (ll (i) = 0 ; (i) < (ll)(n) ; ++(i))
#define REPN(i, m, n) for (ll (i) = m ; (i) < (ll)(n) ; ++(i))
#define REP_REV(i, n) for (ll (i) = (ll)(n) - 1 ; (i) >= 0 ; --(i))
#define REPN_REV(i, m, n) for (ll (i) = (ll)(n) - 1 ; (i) >= m ; --(i))

#define INF 2e9
#define INF_LL 1LL<<60
#define ll long long

#define MAX_V 105

#define MAX_N 100
#define MAX_M 100

int main() {
    string s;
    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 <bits/stdc++.h>
using namespace std;
int main()
{
    long long int n,i,j,flag=0;
    cin>>n;
    while(n>0)
    {
        j=n%10;
        n=n/10;
        if(j==7)
        {
           flag=1;
           break;
        }
    }
    if(flag==1)
        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

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
typedef long long ll;
#define rep(i,n) for (int i = 0; i < (n); i++)
#define repe(i,n) for (int i = 0; i <= (n); ++i)
#define repe1(i,n) for (int i = 0; i <= (n); ++i)
#define all(x) (x).begin(),(x).end()
#define pb(x) push_back(x)
#define eb(k,v) emplace_back(k,v)
#define ct(res) cout << res << "\n";
#define vi vector<int>
#define vl vector<ll>
using namespace std;
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
const int INF = 1e9;
const ll MOD = 1000000007;
using Graph = vector<vector<int>>;


int main() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    string n; cin >> n;
    rep(i,n) {
        if (n[i]=='7') {
            ct("Yes");
            return 0;
        }
    }
    ct("No");
}



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

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <utility>
#include <string>
#include <algorithm>
#include <map>
#include <vector>
#include <climits>
#include <numeric>
#include<stdio.h>
#include <queue>
#include <iomanip>
#include <float.h>
#include <set>
#include<functional>
#include <stack>
#include <time.h>
#include <climits>
#include <bitset>
#include <fstream>
#include<map>
#include <cassert>
#include<sstream>
#include<fstream>
#include <cstring>
using namespace std;
typedef pair<int, string>p;
map< int64_t, int > prime_factor(int64_t n) {
	map< int64_t, int > ret;
	for (int64_t i = 2; i * i <= n; i++) {
		while (n % i == 0) {
			ret[i]++;
			n /= i;
		}
	}
	if (n != 1) ret[n] = 1;
	return ret;
}
const int MAX =1;
const int MOD = 998244353;

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

// テーブルを作る前処理
void COMinit() {
	fac[0] = fac[1] = 1;
	finv[0] = finv[1] = 1;
	inv[1] = 1;
	for (int i = 2; i < MAX; i++) {
		fac[i] = fac[i - 1] * i % MOD;
		inv[i] = MOD - inv[MOD%i] * (MOD / i) % MOD;
		finv[i] = finv[i - 1] * inv[i] % MOD;
	}
}

// 二項係数計算
long long COM(int n, int k) {
	if (n < k) return 0;
	if (n < 0 || k < 0) return 0;
	return fac[n] * (finv[k] * finv[n - k] % MOD) % MOD;
}
int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	string s;
	cin >> s;
	string ans = "No";
	for (int i = 0; i < s.length(); i++) {
		if (s[i] == '7')ans = "Yes";
	}
	cout << ans;
}



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

public class Main{
	public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String target = scanner.next();
        boolean flag = false;
        for (int i = 0; i < target.length(); i++) {
            if (target.charAt(i) == '7') {
                flag = true;
                System.out.println("Yese");
                break;
            }
        }
        if (!flag) {
            System.out.println("No");
        }
    }
}

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

#include <iostream>

using namespace std;

int main() {
	
	int exp;
	
	cin >> exp;
	
	bool ok = false;
	
	while (exp!=0) {
		
		int num = exp%10;
		if (num==7){
			ok = true;
			break;
		}
		exp -=num;
		exp/=10;
		
	}
	
	if(ok) {
		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: Java

import java.util.Random;

public class LuckySeven {

	public static void main(String[] args) {
		int max=999;
		int min=100;
		Random random = new Random();
		int N= random.nextInt(max)%(max-min+1)+min;
		System.out.println(N);
		String str= Integer.toString(N);
		if(str.contains("7")) {
			System.out.println("YES");
		}else {
			System.out.println("NO");
		}

}
}

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

//Deep Godhani
//DAIICT

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

#define N 100000000000
#define PI acos(-1)
#define INF LONG_LONG_MAX
#define NINF LONG_LONG_MIN
#define ll long long int
#define ld long double
#define precision(x,d) cout << fixed << setprecision(d) << x
#define FAST ios_base::sync_with_stdio(false),cin.tie(0),cout.tie(0);srand(time(NULL))

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

bool checkPrime(int n)
{
	for(int i=0;i<=sqrt(n);i++)
	{
		if(n%i == 0)
		{
			return false;
		}
	}
	return true;
}


void solve()
{
	int n;
	cin >> n;
	if(n%10 == 7 || n%100 == 7 && n%1000 == 7)
	{
		cout << "Yes" << endl;
	}
	else
	{
		cout << "No" << endl;
	}
}
int main()
{
    FAST;
    ll t=1;
    //cin >> t;
    while(t--)
    {
      //cout << "************" << endl;
      solve();
      //cout << "************"  << endl;
    }
		return 0;
}


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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define IO ios::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define pb push_back
#define ff first
#define ss second
#define mod 1000000007
 
int32_t main() 
{
    IO;
    int n;
    cin>>n;
    bool f = false;
    while(n > 0)
    {
        int x = n%10;
        if(x == 7)
        {
            f = true;
            break;
        }
        x /= 10;
    }
    if(f)
    cout<<"Yes"
    else
    cout<<"No";
	return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:27:16: error: expected ';' before 'else'
   27 |     cout<<"Yes"
      |                ^
      |                ;
   28 |     else
      |     ~~~~
Language: C

#include <iostream>

using namespace std;

int main() {
	
	string exp;
	
	cin >> exp;
	
	bool ok = false;
	
	for (int i=0; i<(int)exp.size(); i++) {
		
		if (exp[i]=='7'){
			ok = true;
		}
		
	}
	
	if(ok) {
		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.