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

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

int main()
{
  int n;
  bool check=false;
  cin >> n;
  while (n>0)
  {
    if (n%10==7)
    {
      check=true;
      break;
    }
    n/=10;
  }
  if (check) cout << "Yes";
  else cout << "No";
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: expected '}' at end of input
   15 |     return 0;
      |              ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C

#include <stdio.h>

int main(){
  
  char a[3];
  int b = 0;
  
  
  scanf_s("%s",a);
  
  if(a[0] == 7){
    b = 1;
  }
  
  if(a[1] == 7){
    b = 1;
  }
  
  if(a[2] == 7){
    b = 1;
  }  
  
  if(b == 1){
    printf("Yes");
  }else{
    printf("No");
  }
    
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |   scanf_s("%s",a);
      |   ^~~~~~~
      |   scanf
Language: C++

# include <iostream>

using namespace std;

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



}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before string constant
   11 |   else cout"No"
      |            ^~~~
      |            ;
Language: C

#include <iostream>
using namespace std;

int main()
{
  int n;
  bool check=false;
  cin >> n;
  while (n>0)
  {
    if (n%10==7)
    {
      check=true;
      break;
    }
    n/10;
  }
  if (bool) cout << "Yes";
  else cout << "No";
}
    

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 Solution
{
	
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        String s = scan.nextLine();
        if (s.contains("7")) System.out.println("Yes");
        else System.out.println("No");
 
    }
    
}

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

#include<iostream>
#include<string>
#include<cstdio>
#include<algorithm>
#include<cstdlib>
#include<cmath>
#include<vector>
#include<utility>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<unordered_set>
#include<unordered_map>
#include<bitset>
using namespace std;
#define INF 2000000007
#define LINF 100000000000000007
#define MOD 1000000007
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define repb(i, n) for (int i = n - 1; i >= 0; i--)
#define MODE 0
#ifdef MODE
#define DEB(X) cout<< #X <<": "<<X<<" ";
#define ARDEB(i,X) cout<< #X <<"["<<i<<"]: "<<X[i]<<" ";
#define END cout<<endl;
#else
#define DEB(X) {}
#define ARDEB(i,X) {}
#define END {}
#endif
typedef long long ll;
typedef pair<int,int> P;
struct edge{int to,cost;};
int ceil2(int a,int b){if(a%b){return a/b+1;}else{return a/b;}}
using namespace std;

int n,m,ans;

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

Compiler output:
main.c:1: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 maximum, K;
  int count=0;
  cin>> K;
  K++;
  for(int i=1; i<K; i++){
    for(int j=1; j<K; j++){
      for(int k=1; k<K; k++){
        maximum = max(i, max(j, k))

        for(int l=maximum; l>0; l--){
          if(i%l==0&&j%l==0&&k%l==0){
            count +=l;
            break;
          }
        }
      }
    }
  }
  cout<<count<<endl;
            
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:36: error: expected ';' before 'for'
   14 |         maximum = max(i, max(j, k))
      |                                    ^
      |                                    ;
   15 | 
   16 |         for(int l=maximum; l>0; l--){
      |         ~~~                         
a.cc:16:28: error: 'l' was not declared in this scope
   16 |         for(int l=maximum; l>0; l--){
      |                            ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main(){
int n;bool f = 1;
cin>>n;
while(n){
    int rmdr;
    rmdr = n%10;
    if(rmdr == 7)
        f = 0;
    n /=10;
}
if(f==0)
    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 <iostream>
using namespace std;
int main()
{
    int n;
    cin >> n;
    cout << (n%10 == 7 || (n/10)%10 == 7 || (n/100)%10 == 7 ? "Yes" : "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>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;


int main() {
  string S;
  cin >> S;
  bool ans = false;
  rep(i, 3) {
    if (S[i] == '7') {
      ans = true;
      break;
    }
  }

  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 <iostream>
#include <math.h>
#include <algorithm>
#include <string>
#include <string.h>
#include <queue>
#include <vector>
#include <set>
#include <map>
#include <tuple>
#include <stdlib.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
#define PI 3.14159265358979
typedef long long int ll;
const int inf=1001001001;
ll absc(ll a,ll b){return (a-b>0?a-b:b-a);
}
ll mini(ll a,ll b){return (a>b?b:a);}
int main()
{
    int a,b,c;
    string s;
    cin>>s;
    if(s[0]=='7'||s[1]=='7'||s[2]=='7')cout<<"Yes";
    else cout<<"No";
}


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

#include<bits/stdc++.h>
using namespace std;
#define ll long long
#define db double
#define pii pair<int,int>
#define pli pair<ll,int>
#define pil pair<int,ll>
#define pll pair<ll,ll>
const int inf = 1 << 30;
const ll linf = 1e18;
template<class T> void chmin(T& x, T y){if(x > y) x = y;}
template<class T> void chmax(T& x, T y){if(x < y) x = y;}

int N;
int main(){
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    cin >> N;
    bool flag = false;
    if(N / 100 == 7) flag = true;
    N %= 100;
    if(N / 10 == 7) flag = true;
    N %= 10;
    if(N == 7) flag = true;
    cout << (flag ? "Yes" : "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(){
	string s;
  cin >> s;
  if(s.count('7'))cout << "Yes";
  else cout << "No";
}

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

#pragma GCC optimize("Ofast")
  
#include <iostream>
#include <algorithm>
#include <vector>
#include <cstring>
#include <string>
#include <map>
#include <unordered_map>
#include <queue>
#include <stack>
#include <deque>
#include <set>
#include <unordered_set>
#include <list>
#include <tuple>
#include <iomanip>
#include <climits>
#include <cstdlib>
#include <cassert>
#include <numeric>
#include <cmath>
#include <bitset>
#include <random>
#include <regex>

using namespace std;
  
#define rep(i,n) for(int i=0;i<(n);++i)
#define reps(i,n) for(int i=1;i<=(n);++i)
#define all(x) (x).begin(),(x).end()
#define Fixed fixed << setprecision(14)
#define int int64_t
using pii = pair<int,int>;
constexpr int INF  = 0x3f3f3f3f;
constexpr long long LINF = 0x3f3f3f3f3f3f3f3fLL;
constexpr int mod1 = 1e9+7; 
constexpr int mod2 = 998244353;
constexpr int dy[] = {0,1,0,-1,1,-1,-1,1};
constexpr int dx[] = {1,0,-1,0,1,1,-1,-1};
 
template <class A, class B> inline bool chmax(A &a, const B &b) { return b > a && (a = b, true); }
template <class A, class B> inline bool chmin(A &a, const B &b) { return b < a && (a = b, true); }

template <class A, class B> inline A updiv(const A a,const B b){ return (a + b - 1) / b; }
template <class A, class B> inline A gcd(const A a,const B b){ return b ? gcd(b,a % b) : a; }
template <class A, class B> inline A lcm(const A a,const B b){ return a / gcd(a,b) * b; }

template <class T> using min_heap = priority_queue<T,vector<T>,greater<T> >;
template <class T> using max_heap = priority_queue<T>;
template <class A,class B> using umap = unordered_map<A,B>;


signed main(void){
    cin.tie(nullptr);
    ios_base::sync_with_stdio(false);

    string n;
    cin >> n;

    if(s[0] == '7' || s[1] == '7' || s[2] == '7'){
        cout << "Yes\n";
    }else{
        cout << "No\n";
    }

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:61:8: error: 's' was not declared in this scope
   61 |     if(s[0] == '7' || s[1] == '7' || s[2] == '7'){
      |        ^
Language: C++

#include<iostream>
#include <algorithm>
#include<iomanip>
#include<math.h>
#define SIZE_OF_ARRAY(array) (sizeof(array)/sizeof(array[0]))
using namespace std;

int main() {
    int N, R = 0, G = 0, B = 0;
    long long wa = 0,s=0;
    char szBuf[10000] = { 'R' };
    cin >> N;
    cin >> szBuf;
    for (int x = 0; x < N; x++) {
        if (szBuf[x] == 'R')R++; 
        if (szBuf[x] == 'G')G++;
        if (szBuf[x] == 'B')B++;
    }
    wa =long long(R) * long long(G) * long long(B);
    for (int x = 0; x < N; x++) {
        for (int y = x + 1; y < N; y++) {
            if (szBuf[x] == 'R' && szBuf[y] == 'G'&&szBuf[2 * y - x] == 'B')s++;
            if (szBuf[x] == 'R' && szBuf[y] == 'B'&&szBuf[2 * y - x] == 'G')s++;
            if (szBuf[x] == 'G' && szBuf[y] == 'B'&&szBuf[2 * y - x] == 'R')s++;
            if (szBuf[x] == 'G' && szBuf[y] == 'R'&&szBuf[2 * y - x] == 'B')s++;
            if (szBuf[x] == 'B' && szBuf[y] == 'R'&&szBuf[2 * y - x] == 'G')s++;
            if (szBuf[x] == 'B' && szBuf[y] == 'G'&&szBuf[2 * y - x] == 'R')s++;
        }
    }
    cout<<wa-s<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: expected primary-expression before 'long'
   19 |     wa =long long(R) * long long(G) * long long(B);
      |         ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
int n;
  cin>>n;
int count=0;
  if(N/100==7){
    count++;
  }
    if(N/10%10==7){
    count++;
  }
    if(N%100%10==7){
    count++;
  }

  if(count>=1){
    cout<<'Yes'<<endl;
  }
  else{
    cout<<'No'<<endl;
  }

}

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

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

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

  int count = 7;
  for (int i = 0; i < str.size(); i++) {
    if (str.at(i) == '7') {
      count++;
       cout << "Yes" << endl;
    break;
      
      for (int i = 0; i < str.size(); i++) {
    if (str.at(i) != '7') {
      count++;
       cout << "No" << endl;
    break;
      
    }
      }
    }
  }
}

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

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

int main() {
  	vector<int> seven;
  	for(int i = 0; i < 3; i++){
  	cin >> seven.at(i);
    }
  	for(int i = 0; i < 3; i++){
    	if(seven.data(i) == 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,k,p,q;


      cin>>n;
      n/100==k;
        (n-k*100)/10==p;
        (n-k*100-p*10)==q;
      if(k=7){
      cout<<"Yes"<<endl;
      }
            if else(p=7){
            cout<<"Yes"<<endl;
            }
            if else(q=7){
            cout<<"Yes"<<endl;}
      else{cout<<"No"<<endl;}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: expected '(' before 'else'
   15 |             if else(p=7){
      |                ^~~~
      |                (
a.cc:18:16: error: expected '(' before 'else'
   18 |             if else(q=7){
      |                ^~~~
      |                (
a.cc:20:7: error: 'else' without a previous 'if'
   20 |       else{cout<<"No"<<endl;}
      |       ^~~~
Language: C

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

int main() {
  	vector<int> seven;
  	for(int i = 0; i < 3; i++){
  	cin >> seven.at(i);
    }
  	for(int i = 0; i < 3; i++){
    	if(data(i) == 7){
        	cout << "Yes" << endl;
        }
      	else{
        	cout << "No" << endl;
        }
    }
  
}


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

# include <iostream>

using namespace std;

int main () {
  int N;
  cin>>N;
  if(N%1000=700) cout"Yes";
  if(N%100=70) cout "Yes";
  if(N%10=7) cout"Yes";
  else cout"NO";  


}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: lvalue required as left operand of assignment
    8 |   if(N%1000=700) cout"Yes";
      |      ~^~~~~
a.cc:8:22: error: expected ';' before string constant
    8 |   if(N%1000=700) cout"Yes";
      |                      ^~~~~
      |                      ;
a.cc:9:7: error: lvalue required as left operand of assignment
    9 |   if(N%100=70) cout "Yes";
      |      ~^~~~
a.cc:9:20: error: expected ';' before string constant
    9 |   if(N%100=70) cout "Yes";
      |                    ^~~~~~
      |                    ;
a.cc:10:7: error: lvalue required as left operand of assignment
   10 |   if(N%10=7) cout"Yes";
      |      ~^~~
a.cc:10:18: error: expected ';' before string constant
   10 |   if(N%10=7) cout"Yes";
      |                  ^~~~~
      |                  ;
a.cc:11:12: error: expected ';' before string constant
   11 |   else cout"NO";
      |            ^~~~
      |            ;
Language: C

list_n = input().split
if 7 in list_n:
    print("Yes")
else:
    print("No")


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | list_n = input().split
      | ^~~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'list_n' [-Wimplicit-int]
main.c:1:10: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | list_n = input().split
      |          ^~~~~
main.c:1:17: error: request for member 'split' in something not a structure or union
    1 | list_n = input().split
      |                 ^
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if 7 in list_n:
      | ^~
Language: C

m=input()
if '7' in m:
    print("Yes")
else:
    print("No")

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

N = int(input("N = "))
if 100 <= N <= 999:
        if "7" in str(N):
            print("Yes")
        else:
            print("No")


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

N = input()
print("Yes" if N.__contains__("7") 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.__contains__("7") else"No")
      | ^~~~~
Language: C++

#include<iostream>
using namespace std;
 
int main() {
 int N,A,B,C;
 double a,b,c;
 cin>>N;
a=N/100;
A=floor(double a);
b=(N-A*100)/10;
B=floor(double b);
c=(b*10)-B*10;
C=floor(double c);
 
 if(A==7||B==7||C==7){
	 cout<<"yes"<<endl;
 }
 else {
	 cout<<"no"<<endl;
 }
 cout<<X<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected primary-expression before 'double'
    9 | A=floor(double a);
      |         ^~~~~~
a.cc:9:3: error: 'floor' was not declared in this scope
    9 | A=floor(double a);
      |   ^~~~~
a.cc:11:9: error: expected primary-expression before 'double'
   11 | B=floor(double b);
      |         ^~~~~~
a.cc:13:9: error: expected primary-expression before 'double'
   13 | C=floor(double c);
      |         ^~~~~~
a.cc:21:8: error: 'X' was not declared in this scope
   21 |  cout<<X<<endl;
      |        ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int total = 0;
    
    for(int i = 0;　N != 0; N--){
      if(N%3 == 0||N%5 == 0){
        total += N;
      }
    }
    System.out.print(total);
    }
  }



Compiler output:
Main.java:9: error: illegal character: '\u3000'
    for(int i = 0;?N != 0; N--){
                  ^
Main.java:9: error: not a statement
    for(int i = 0;?N != 0; N--){
                     ^
Main.java:9: error: ';' expected
    for(int i = 0;?N != 0; N--){
                              ^
3 errors
Language: C

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

int main() {

string a;
string r="No";
cin>>a;
for(int i=0; i<3; i++){
 if(a.at(i)=='7'){
  r="Yes";
  }
 }
 cout<<r;
}


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

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int N = scan.nextInt();
    int total = 0;
    
    for(int i = 0;　N != 0; N--){
      if(N%3 == 0||N%5 == 0){
        total += N;
      }
    System.out.print(total);
    }
  }


Compiler output:
Main.java:9: error: illegal character: '\u3000'
    for(int i = 0;?N != 0; N--){
                  ^
Main.java:9: error: not a statement
    for(int i = 0;?N != 0; N--){
                     ^
Main.java:9: error: ';' expected
    for(int i = 0;?N != 0; N--){
                              ^
Main.java:15: error: reached end of file while parsing
  }
   ^
4 errors
Language: C

list_n = list(map(int, input().split()))
if 7 in list_n:
    print("Yes")
else:
    print("No")


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | list_n = list(map(int, input().split()))
      | ^~~~~~
main.c:1:1: error: type defaults to 'int' in declaration of 'list_n' [-Wimplicit-int]
main.c:1:10: error: implicit declaration of function 'list' [-Wimplicit-function-declaration]
    1 | list_n = list(map(int, input().split()))
      |          ^~~~
main.c:1:15: error: implicit declaration of function 'map' [-Wimplicit-function-declaration]
    1 | list_n = list(map(int, input().split()))
      |               ^~~
main.c:1:19: error: expected expression before 'int'
    1 | list_n = list(map(int, input().split()))
      |                   ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if 7 in list_n:
      | ^~
Language: C

#include<bits/stdc++.h>

using namespace std;

int main()
{
    int n,i,r,s,c=0;

    cin>>n;

    for(i=0;i<3;i++)
    {
        r=n%10;
        if(r==7)
        {
            c=1;
            //break;
        }
        n=n/10;

    }
    if(c)
        cout<<"Yes\n";

    else
        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: C

#include <bits/stdc++.h>
using namespace std;
int main(){
string N;
  cin>>N;
  if(N.at(0)==N.at(1)||N.at(1)==N.at(2)||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

#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" << 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.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<b;++i)
#define REPN(i,a,b) for(int i=a;i<=b;++i)
#define db1(x) cout<<#x<<"="<<x<<'\n'
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<'\n'
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<'\n'
#define ll long long
const int M=1e9+7;



int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    int n;
    cin>>n;
    bool cnt=0;
    while(n)
   {
     int temp=n%10;
     if(temp==7)
    {
      cnt=1;
      break;
    }
    n/=10;
  }
  if(cnt) {
  cout<<"Yes"<<"\n";
}
    else
	 cout<<"No"<<"\n";
	 
      return 0;
}

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

N = input()
print('Yes' if N.__contains__('7') 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.__contains__('7') else 'No')
      | ^~~~~
main.c:2:7: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if N.__contains__('7') else 'No')
      |       ^~~~~
main.c:2:41: warning: multi-character character constant [-Wmultichar]
    2 | print('Yes' if N.__contains__('7') else 'No')
      |                                         ^~~~
Language: C

n=input()
print('Yes') if (n.count('7')) >= 1 else print('No')

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

#include<bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<b;++i)
#define REPN(i,a,b) for(int i=a;i<=b;++i)
#define db1(x) cout<<#x<<"="<<x<<'\n'
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<'\n'
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<'\n'
#define ll long long
const int M=1e9+7;



int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    int n;
    cin>>n;
    bool cnt=0;
    while(n)
   {
     int temp=n%10;
     if(temp==7)
    {
      cnt=1;
      break;
    }
    n/=10;
  }
  if(cnt) {
  cout<<"Yes"<<"\n";
}
    else
	 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: C

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    ll b,c=0,i,j,k;
    char a[10000];
    scanf("%lld %s",&b,&a);
    for(i=0;i<b;i++)
    {
        for(j=i+1;j<b;j++)
        {
            for(k=j+1;k<b;k++)
            {
                if(a[i]!=a[j] && a[i]!=a[k] && a[j]!=a[k] && (j-i)!=(k-j))
                {
                    c++;
                }
            }
        }
    }
    printf("%lld\n",c);
    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 REP(i,a,b) for(int i=a;i<b;++i)
#define REPN(i,a,b) for(int i=a;i<=b;++i)
#define db1(x) cout<<#x<<"="<<x<<'\n'
#define db2(x,y) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<'\n'
#define db3(x,y,z) cout<<#x<<"="<<x<<","<<#y<<"="<<y<<","<<#z<<"="<<z<<'\n'
#define ll long long
const int M=1e9+7;



int main()
{
    ios_base::sync_with_stdio(0);
    cin.tie(NULL);
    int n;
    cin>>n;
    bool cnt=0;
    while(n)
   {
     int temp=n%10;
     if(temp==7)
    {
      cnt=1;
      break;
    }
    n/=10;
  }
  if(cnt) {
  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

n = [int(_) for _ in input()]
print('YNeos'[not 7 in n::2])

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n = [int(_) for _ in input()]
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:5: error: expected expression before '[' token
    1 | n = [int(_) for _ in input()]
      |     ^
main.c:2:1: error: expected ',' or ';' before 'print'
    2 | print('YNeos'[not 7 in n::2])
      | ^~~~~
main.c:2:7: warning: multi-character literal with 5 characters exceeds 'int' size of 4 bytes
    2 | print('YNeos'[not 7 in n::2])
      |       ^~~~~~~
Language: C++

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

void solve()
{
    int n;
    cin>>n;
    for(int i=0;i<n.length();i++)
    {
        if(n[i]=='7')
        {cout<<"Yes"<<endl;return;}
    }
    cout<<"No"<<endl;
}

int main()
{
    int t;
    t=1;
    while(t--)
        solve();
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:8:21: error: request for member 'length' in 'n', which is of non-class type 'int'
    8 |     for(int i=0;i<n.length();i++)
      |                     ^~~~~~
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |         if(n[i]=='7')
      |             ^
Language: C

x = input()
if '7' in x:
	print("Yes")
else:
	print("No")

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

using namespace std;
int main()
{
 int c;
  int n;
  cin>>n;
  while(n>0)
  {

n=n%10;
n=n/10;
  }
     if(n==7)
      cout<<"Yes";

    else
      cout<<"No";

  

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>n;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:7: error: 'cout' was not declared in this scope
   14 |       cout<<"Yes";
      |       ^~~~
a.cc:14:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:7: error: 'cout' was not declared in this scope
   17 |       cout<<"No";
      |       ^~~~
a.cc:17:7: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main(){
     int n;
     int sum=0;
    cin>>n;
   for(int i=1;i<=n;i++){
     if((i%3==0)||(i%5==0)){
       continue;
     }else{
        sum += i
     }
   }
   cout<<sum;
	 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: expected ';' before '}' token
   14 |         sum += i
      |                 ^
      |                 ;
   15 |      }
      |      ~
Language: C++

#include <stdio.h>
#include <iostream>

using namespace std;

int main(){
     int n;
     int sum=0;
    cin>>n;
   for(i=1;i<=n;i++){
     if((i%3==0)||(i%5==0)){
       continue;
     }else{
        sum += i
     }
   }
   cout<<sum;
	 
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: 'i' was not declared in this scope
   10 |    for(i=1;i<=n;i++){
      |        ^
Language: C

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

int main(){
    string n;
    cin >> n;
    if(n.find('7') != string::npos){
        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(0)!=N.at(1)&&N.at(1)!=N.at(2)&&N.at(2)!=7){
  cout<<"No"<<endl;
  }
else if(N.at(0)==N.at(1)&&N.at(1)==N.at(2)&&N.at(2)!=7)){
cout<<"No"<<endl;
}
  else{
  cout<<"Yes"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:56: error: expected primary-expression before ')' token
    9 | else if(N.at(0)==N.at(1)&&N.at(1)==N.at(2)&&N.at(2)!=7)){
      |                                                        ^
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        
        String strnum = String.valueOf(a);
        System.out.println("strnum : " + strnum); 
            if (str.contains(strnum))
            {
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }      
    }
}

Compiler output:
Main.java:10: error: cannot find symbol
            if (str.contains(strnum))
                ^
  symbol:   variable str
  location: class Main
1 error
Language: C

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

int main(){
  int n;
  cin >> n;
  while(n){
    if(n%10 == 7){
      cout << "Yes" << endl;
      return 0;
    }
    n /= 10;
  }
  cout << "No" << endl;
}

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

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

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

#include <stdio.h>
using namespace std;
 
int main(){
     int n;
    cin>>n;
  
    if ((n/100)==7)
	{
		cout<<"Yes";
	}else if((n%100)%70==0){
          cout<<"Yes";
	}else if((n-7)%10==0){
           cout<<"Yes";
	}else{
		cout<<"No";
	}
	
	 
    return 0;
}
#include <stdio.h>
#include <iostream>

using namespace std;

int main(){
     int n;
    cin>>n;
  
    if ((n/100)==7)
	{
		cout<<"Yes";
	}else if((n%100)%70==0){
          cout<<"Yes";
	}else if((n-7)%10==0){
           cout<<"Yes";
	}else{
		cout<<"No";
	}
	
	 
    return 0;
}
提出情報

Compiler output:
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:6:5: error: 'cin' undeclared (first use in this function)
    6 |     cin>>n;
      |     ^~~
main.c:6:5: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:17: error: 'cout' undeclared (first use in this function)
   10 |                 cout<<"Yes";
      |                 ^~~~
main.c: At top level:
main.c:23:10: fatal error: iostream: No such file or directory
   23 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>
int main()
{
int N[3];
int falg=0;
scanf("%d",&N);
for(int i=0;i<3;i++)
{
if(N[i]=='7')
 {
  flag=1;
 }
 
}
if(flag) printf("Yes");
else printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:11:3: error: 'flag' undeclared (first use in this function); did you mean 'falg'?
   11 |   flag=1;
      |   ^~~~
      |   falg
main.c:11:3: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

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

int main()
{
    int t;
    t=1;
    while(t--)
        solve();
}


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;s=to_string(n); int flag=0;
  for(int i=0;i<s.length();i++){
  	if(s[i]=='7'){flag=1;break}
  }
  if(flag==0){cout<<"No";}else{cout<<"Yes";}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:35: error: expected ';' before '}' token
    8 |         if(s[i]=='7'){flag=1;break}
      |                                   ^
      |                                   ;
Language: C

N = input()
print('Yes' if '7' in str(N) else 'No')

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

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

int main() {
  int N , a, b ,c;
  cin >> N;
  
  a = N /100;
  b = ( N - a) *100;
  c = N % 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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: invalid types 'int[int]' for array subscript
    7 |   if (n[0]==7 || n[1]==7 || n[2]==7) {
      |        ^
a.cc:7:19: error: invalid types 'int[int]' for array subscript
    7 |   if (n[0]==7 || n[1]==7 || n[2]==7) {
      |                   ^
a.cc:7:30: error: invalid types 'int[int]' for array subscript
    7 |   if (n[0]==7 || n[1]==7 || n[2]==7) {
      |                              ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main() {
  string N="abc";
  cin>>N;
  if('a'=='7'){
    cout<<"Yes"<<endl;
  }
  else if('b'=='7'){
    cout<<"Yes"<<endl;
  }
  else if('c'=='7'){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


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

N = list(input())
if 7 in N:
    print("Yes")
else:
    print("No")


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

#include<iostream>
#include<stdio.h>
#include<string.h>
using namespace std;

int main()
{
    char num[100];
    gets(num);
    int len=strlen(num),flag=0;
    for(int i=0;i<len;i++)
    {

        if(num[i]=='7')
        {
            flag=1;
            break;
        }
        else
        flag=0;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    9 |     gets(num);
      |     ^~~~
      |     getw
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  string N="abc";
  cin>>N;
  if('a'=='7'){
    cout<<"Yes"<<endl;
  }
  else if('b'=='7'){
    cout<<"Yes"<<endl;
  }
  else if('c'=='7'){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<,endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:16: error: expected primary-expression before ',' token
   16 |     cout<<"No"<,endl;
      |                ^
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;
  }
 
  
}
#i#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:
a.cc:26:2: error: invalid preprocessing directive #i; did you mean #if?
   26 | #i#include <bits/stdc++.h>
      |  ^
      |  if
a.cc:29:5: error: redefinition of 'int main()'
   29 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
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;
  }
 
  
}
#i#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

N = input()
ans = 'No'
for _ in N:
  if _ == '7':
    ans = 'Yes'
    
print(ans)

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 'ans'
    2 | ans = 'No'
      | ^~~
main.c:2:7: warning: multi-character character constant [-Wmultichar]
    2 | ans = 'No'
      |       ^~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     ans = 'Yes'
      |           ^~~~~
Language: C++

#include <stdio.h>
int main(){
  int n,t,u;
  scanf("%d",&n);
  t=n-(n/100);
  u=t-(t/10);
  if(n/100==7){
	printf("Yes");
    break;
  }else if(t/10==7){
    printf("Yes");
    break;
  }else if(u==7){
    printf("Yes");
    break;
  }else{
    printf("No")
  }
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: break statement not within loop or switch
    9 |     break;
      |     ^~~~~
a.cc:12:5: error: break statement not within loop or switch
   12 |     break;
      |     ^~~~~
a.cc:15:5: error: break statement not within loop or switch
   15 |     break;
      |     ^~~~~
a.cc:17:17: error: expected ';' before '}' token
   17 |     printf("No")
      |                 ^
      |                 ;
   18 |   }
      |   ~
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

#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <vector>
#include <cmath>
#include <cstring>
#include <numeric>
#include <algorithm>
#include <functional>
#include <fstream>
#include <array>
#include <map>
#include <queue>
#include <time.h>
#include <limits.h>
#include <set>
#include <stack>
#include <random>
#include <complex>
#include <unordered_map>
#include <assert.h>
#include <unordered_set>
#define rep(i,s,n) for(int i = (s); (n) > i; i++)
#define REP(i,n) rep(i,0,n)
#define RANGE(x,a,b) (min(a,b) <= (x) && (x) <= max(a,b)) //hei
#define DUPLE(a,b,c,d) (RANGE(a,c,d) || RANGE(b,c,d) || RANGE(c,a,b) || RANGE(d,a,b))
#define INCLU(a,b,c,d) (RANGE(a,c,d) && (b,c,d))
#define PW(x) ((x)*(x))
#define ALL(x) (x).begin(), (x).end()
#define RALL(x) (x).rbegin(), (x).rend()
#define MODU 998244353LL 
#define bitcheck(a,b)   ((a >> b) & 1)
#define bitset(a,b)      ( a |= (1 << b))
#define bitunset(a,b)    (a &= ~(1 << b))
#define MP(a,b) make_pair((a),(b))
#define Manh(a,b) (abs((a).first-(b).first) + abs((a).second - ((b).second))
#define pritnf printf
#define scnaf scanf
#define itn int
#define PI 3.141592653589
 
 
#define izryt bool
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
template<typename A, size_t N, typename T>
void Fill(A(&array)[N], const T & val) {
	std::fill((T*)array, (T*)(array + N), val);
}
 
//[a, b)
#define Getsum(ar, a,b) (ar[b] - ar[a])
#define INF 10000000000000000LL
#define chmax(a,b) a = max(a,b)
#define chmin(a,b) a = min(a,b)
 
struct Edge {
	int from, to;
	ll w;
	bool operator<(const Edge& rhs) const {
		return MP(w, MP(from, to)) < MP(rhs.w, MP(rhs.from, rhs.to));
	}
 
};
typedef vector<vector<Edge>> Graph;
typedef unsigned long long ull;

ll gcd(ll a, ll b) {
	if (b == 0) return a;
	return gcd(b, a%b);
}

ll lcm(ll m, ll n)
{
	return m * n / gcd(m, n);
}
ll mod_pow(ll x, ll n) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = (res * x) % MODU;
		x = (x*x)%MODU;
		n >>= 1;
	}
	return res;
}
ll divmod(ll a, ll b) { // a/b(mod m)
								  // a/b (mod m)
								  // a*b^-1
								  // b^-1 * b = 1
								  // b^(m-1) = 1 
								  // b^(m-2) * b = 1
								  // b^-1 = b^(m-2)

								  // a/b = a * b^(m-2)

	return (a * mod_pow(b, MODU - 2)) % MODU;
}


ll fmemo[10000] = {};
ll factorial(ll n) {//階乗

	if (n > 0) {
    assert(n < 10000);
if(fmemo[n] != 0) return fmemo[n];
		return fmemo[n] = (n * factorial(n - 1))%MODU;
	}
	else {
		return 1;
	}
}

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

  if(s[0] == '7' || s[1] == '7' || s[2] == '7' )
  cout << "Yes" << endl;
  else
  cout << "No" << endl;
  return 0;
} 

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

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

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