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

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:22: error: lvalue required as left operand of assignment
    8 |     if(z[2]=7||z[1]=7||z[0]=7){
Language: C

#include <iostream>
#include <string>

using namespace std;

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


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

#include <iostream>

using namespace std;

int main(){

    int n = 0;
    cin >> n;

    bool contains7 = false;

    while(n!= 0){
        if(n%10 == 7) contains7 =true;
        n = n/10;
    }

    if(contains7){
        cout <<"Yes\n";
    }else cout <<"No\n";

	return 0;
}

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

#include<iostream>
#include<string>

using namespace std;
int main(){
string s;
  cin>>s;
  bool f=false;
  for(int i=0; i<s.length(); i++)
  {
  if(s[i]=="7")
  {
    f=true;
    break;
  }  
  }
  if(f)
    cout<<"Yes"<<endl;
  else
    cout<<"No"<<endl;



}

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

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

int main()
{
    int n;
    cin >> n;
    ll ans = 0;
    for (int i = 1; i <= n; i++) if (i % 3 != 0 && i % 5 != 0) ans += i;
    cout << sum << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'sum' was not declared in this scope
   11 |     cout << sum << endl;
      |             ^~~
Language: C

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

int main() {
  string N;
  cin >> N;
  
  if(N[0]=='7') {
    cout << "Yes" << endl;
  }
  
  else if(N[1]=='7') {
    cout << "Yes" << endl;
  }
  
  else if(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 <bits/stdc++.h>
using namespace std;

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

    string str = to_string(N);
    bool flag = false;

    for(int i=0; i<str.length(); i++){
        if(str[i] == '7') flag = true;
    }
    
    if(flag){
        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>
#define IO_OP std::ios::sync_with_stdio(0); std::cin.tie(0);
#define F first
#define S second
#define V vector
#define PB push_back
#define MP make_pair
#define EB emplace_back
#define ALL(v) (v).begin(), (v).end()
#define debug(x) cerr << #x << " is " << x << endl

using namespace std;

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

const int INF = 1e9 + 7;

signed main()
{
	IO_OP;
	
	string s;
	cin >> s;
	for(char c:s) if(c == '7') {
		cout << "Yes" << endl;
		return 0;
	}	
	cout << "No" << endl;	
}





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


#include<bits/stdc++.h>
#define pb push_back
#define rep(i,a,b) for(int i=a;i<=b;++i)
#define per(i,b,a) for(int i=b;i>=a;--i)
#define gcd(a,b) __gcd(a,b)
#define MEM(a,x) memset(a,x,sizeof(a))
#define VI vector<int>
#define PII pair<int,int>
#define ull unsigned long long
#define ll long long
#define fi first
#define se second
#define INF 0x3f3f3f3f
using namespace std;
const int N=2e5+5;
template<class T>inline void read(T &res)
{
char c;T flag=1;
while((c=getchar())<'0'||c>'9')if(c=='-')flag=-1;res=c-'0';
while((c=getchar())>='0'&&c<='9')res=res*10+c-'0';res*=flag;
}
int n;
int main(){
    cin>>n;
    int ok=0;
    while(n){
        if(n%10==7)ok=1;
        n/=10;
    }
    if(ok)puts("Yes");
    else puts("No");
	return 0;
}


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

#include <bits/stdc++.h>
#include <algorithm>
#define rep(i, n) for (int i=0; i<n; ++i)
#define all(obj) (obj).begin(),(obj).end()
using namespace std;
typedef long long ll;

int main(){
    string N;
    cin >> N;
    rep(i, 2){
        if(N[i]=='7'){
            cout << "Yes" << endl;
            return 0;
    }
    cout << "No" << endl;

}


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

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

public class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int k = Integer.parseInt(br.readLine());

    int sum = 0;
    for (int i = 1; i <= k; i++) {
      for (int j = 1; j <= k; j++) {
        for (int s = 1; s <= k; s++) {
          sum += gcd(i, j, s);
        }
      }
    }
    
    System.out.print(sum);
  }
  
  private static int gcd(int i, int j, int s) {
  	return gcdTwo(gcdTwo(i, j), s);
  }
  
  private static int gcdTwo(int i, int j) {
  	if (j == 0) {
      return i;
    }
    int r = i % j;
    return gcdTwo(j, r);
  }
}


Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    int k = Integer.parseInt(br.readLine());
                                        ^
1 error
Language: C++

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

int gcd(int k,u){
  int e,i;
  for(i=0;i<n;i++){
    if(u!=0){
      e=k%u;
      k=u;
      u=e;
    }
  }
  return k;
}

int main(){

  int i,j,l;
  long int sum;
  int g;
  cin>>n;
  for(i=0;i<n;i++){
    for(j=0;j<n;j++){
      for(l=0;l<n;l++){
        g=gcd(i,gcd(j,l));
        
}

Compiler output:
a.cc:5:15: error: 'u' has not been declared
    5 | int gcd(int k,u){
      |               ^
a.cc: In function 'int gcd(int, int)':
a.cc:8:8: error: 'u' was not declared in this scope
    8 |     if(u!=0){
      |        ^
a.cc: In function 'int main()':
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:24:21: note: to match this '{'
   24 |     for(j=0;j<n;j++){
      |                     ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:23:19: note: to match this '{'
   23 |   for(i=0;i<n;i++){
      |                   ^
a.cc:28:2: error: expected '}' at end of input
   28 | }
      |  ^
a.cc:17:11: note: to match this '{'
   17 | int main(){
      |           ^
Language: C

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define vr vector
#define pb push_back


 int main()
 {
std::ios::sync_with_stdio(false); cin.tie(NULL);
//ll t;
//cin>>t;
//while(t--)
{

ll n,k=0;
cin>>n;
while(n)
{
    ll p=n%10;
    if(p==7)
        k=1;
    n/=10;
}
if(k==1)
    cout<<"Yes";
else
    cout<<"No";

   cout<<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: Java

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

public class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String str = br.readLine();
    
    if (str.contains("7")) {
      System.out.println("Yes");
    } else {
      System.out.println("No");
    } 
  }
}

Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    String str = br.readLine();
                            ^
1 error
Language: C

#A
N = int(input())
Nlist = list(N)
ans = 'No'
for k in Nlist:
    if k == '7':
        ans = 'Yes'
    else:
        pass
print(ans)

Compiler output:
main.c:1:2: error: invalid preprocessing directive #A
    1 | #A
      |  ^
main.c:2:1: warning: data definition has no type or storage class
    2 | N = int(input())
      | ^
main.c:2:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:2:5: error: expected expression before 'int'
    2 | N = int(input())
      |     ^~~
main.c:4:7: warning: multi-character character constant [-Wmultichar]
    4 | ans = 'No'
      |       ^~~~
main.c:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         ans = 'Yes'
      |               ^~~~~
Language: C++

#include<bits/stdc++>;
#define rep(i,n) for(int i = 0 ; i < n; i++)
using namespace std;
int main(){
  int inp;
  int flag=0;
  cin>>inp;
  if(inp%10==7)flag=1;
  if(floor((inp%100)/10)==7)flag=1;
  if(floor(inp/100)==7) flag=1;
  if(flag) cout<<"Yes";
  else cout<<"No";
  return 0;
}
  

Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>;
      |                      ^
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>;
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++>;
#define rep(i,n) for(int i = 0 ; i < n; i++)
using namespace std;
int main(){
  int inp;
  int flag=0;
  cin>>inp;
  if(inp%10==7)flag=1;
  if(floor((inp%100)/10)==7)flag=1;
  if(floor(inp/100)==7) flag=1;
  if(flag) cout<<"Yes";
  else cout<<"No";
  return 0;
}
  
  


Compiler output:
a.cc:1:22: warning: extra tokens at end of #include directive
    1 | #include<bits/stdc++>;
      |                      ^
a.cc:1:9: fatal error: bits/stdc++: No such file or directory
    1 | #include<bits/stdc++>;
      |         ^~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
#define repr(i, a, b) for (int i = a; i < b; i++)
#define rep(i, n) for (int i = 0; i < n; i++)
typedef long long ll;
#define mod 1000000007

ll gcd(ll x,ll y) {return y ? gcd(y,x%y) : x;} 
ll lcm(ll x,ll y) {return x/gcd(x,y)*y;}

int main(){
    string s;
    cin >> s;
    if(s[0]=='7'||s[1]=='7'||s[2]=='7') puts("Yes");
    else puts("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(){
  vector<int> a(3);
  int i;
  bool count =false;
  
  cin>>a.at(0)>>a.at(1)>>a.at(2);
  
  for(int j=0;j<3;j++){
    if(a.at(i) == 7){
      count = true;
      break;
    }else{
    }
  }
  
  if(count==true){
    cout << "Yes";
  }else if(count == false){
    cout << "No";
  }else{
    cout << "Error";
  }
  

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

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

int main(){
  vector<int> a(3);
  int i;
  bool count =false;
  
  cin>>a.at(0)>>a.at(1)>>a.at(2);
  
  for(int j=0;j<3;j++){
    if(a.at(i) == 7){
      count = true;
      break;
    }else{
    }
  }
  
  if(count==true){
    cout << "Yes";
  }else if(count == false){
    cout << "No";
  }else{
    cout << "Error";
  }
  

Compiler output:
a.cc:1:1: error: stray '##' in program
    1 | ##include <bits/stdc++.h>
      | ^~
a.cc:1:3: error: 'include' does not name a type
    1 | ##include <bits/stdc++.h>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'vector' was not declared in this scope
    5 |   vector<int> a(3);
      |   ^~~~~~
a.cc:5:10: error: expected primary-expression before 'int'
    5 |   vector<int> a(3);
      |          ^~~
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin>>a.at(0)>>a.at(1)>>a.at(2);
      |   ^~~
a.cc:9:8: error: 'a' was not declared in this scope
    9 |   cin>>a.at(0)>>a.at(1)>>a.at(2);
      |        ^
a.cc:20:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   20 |     cout << "Yes";
      |     ^~~~
      |     count
a.cc:22:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   22 |     cout << "No";
      |     ^~~~
      |     count
a.cc:24:5: error: 'cout' was not declared in this scope; did you mean 'count'?
   24 |     cout << "Error";
      |     ^~~~
      |     count
a.cc:25:4: error: expected '}' at end of input
   25 |   }
      |    ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C

#include <bits/stdc++.h>
#define REP(i, n) for (int (i) = 0; (i) < (int)(n); i++) 
#define FOR(i, a, b) for(int (i) = a; (i) < (int)b; i++)
#define RREP(i, n) for(int (i)=((int)(n)-1); (i)>=0; i--)
#define RFOR(i, a, b) for(int (i) =((int)(b)-1); (i)>=(int)a; i--)
#define ALL(v) (v).begin(),(v).end()
#define MOD 1000000007
#define NIL -1
#define FI first
#define SE second
#define MP make_pair
#define PB push_back
#define SZ(x)  (int)x.size()
#define SP(x)  setprecision((int)x)


using namespace std ;
typedef long long ll;
using Graph = vector<vector<int>>;
typedef vector<int> vint;
typedef vector<vint> vvint;
typedef vector<string> vstr;
typedef pair<int, int> pii;
const int INF = 1e9;
const ll LINF = 1e18;
const double EPS = 1e-9;
const int dx[4] = {1, 0, -1, 0};
const int dy[4] = {0, 1, 0, -1};
ll gcd(ll a, ll b) {return b ? gcd(b, a % b) : a;} //最大公約数
ll lcm(ll a, ll b) {return a / gcd(a, b) * b;} //最小公倍数

//-------------------------------------------------
// 
void yes(){
  cout <<"Yes"<<endl ;
}
void no(){
  cout <<"No"<<endl ;
}


//-------------------------------------------------
// メモ
/*






*/
//-------------------------------------------------


int main()
{
  cin.tie(0);
  ios::sync_with_stdio(false);
  string  s ;
  cin >>  s ;
  if(s[0]=='7' || s[1]=='7' || s[2]=='7'){
    yes() ;
  }
  else{
    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;

#define ll long long

int main(){

    ios::sync_with_stdio(false);
    cin.tie(0);
    
    ll n;
    cin >> n;

    while (n)
    {
        int d= n%10;
        if(d==7){
            cout << "Yes\n";
            return 0;
        }
        n/=10;
    }
    cout << "No\n";
    return 0;
}

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

include <stdio.h>

#define mod 1000000007
#define ll long long


ll n,k;
ll ans[100010];


ll quickpow(ll a,ll b){ 
        ll ans = 1;
        while(b != 0){ 
                if(b%2 == 1){ 
                        ans = (ans%mod*a%mod)%mod;
                }   
                b = b/2;
                a = (a%mod*a%mod)%mod;
        }   
        return ans;
}


int main(void){

        scanf("%lld %lld",&n,&k);
        for(ll i=k;i>=1;i--){
                ans[i] = quickpow(k/i,n);

                for(ll j=(ll)2*i;j<=k;j+=i){
                        ans[i] = (ans[i]-ans[j]+mod)%mod;
                }   
        }   

        ll res = 0;
        for(ll i=1;i<=k;i++){
                res = (res+i*ans[i])%mod;
        }   
        printf("%lld\n",res);
}


Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
main.c: In function 'main':
main.c:26:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   26 |         scanf("%lld %lld",&n,&k);
      |         ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include <stdio.h>
main.c:26:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   26 |         scanf("%lld %lld",&n,&k);
      |         ^~~~~
main.c:26:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:26:28: error: 'n' undeclared (first use in this function)
   26 |         scanf("%lld %lld",&n,&k);
      |                            ^
main.c:26:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:26:31: error: 'k' undeclared (first use in this function)
   26 |         scanf("%lld %lld",&n,&k);
      |                               ^
main.c:39:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   39 |         printf("%lld\n",res);
      |         ^~~~~~
main.c:39:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:39:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:39:9: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

int main(){
2 char s[4];
3 scanf("%s",s);
4 if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes");
5 else puts("No");
6 }

Compiler output:
a.cc: In function 'int main()':
a.cc:2:2: error: expected ';' before 'char'
    2 | 2 char s[4];
      |  ^~~~~
      |  ;
a.cc:3:2: error: expected ';' before 'scanf'
    3 | 3 scanf("%s",s);
      |  ^~~~~~
      |  ;
a.cc:4:2: error: expected ';' before 'if'
    4 | 4 if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes");
      |  ^~~
      |  ;
a.cc:5:2: error: expected ';' before 'else'
    5 | 5 else puts("No");
      |  ^~~~~
      |  ;
a.cc:6:2: error: expected ';' before '}' token
    6 | 6 }
      |  ^~
      |  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%s",s);
      |   ^~~~~
a.cc:4:38: error: 'puts' was not declared in this scope
    4 |   if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes");
      |                                      ^~~~
a.cc:5:8: error: 'puts' was not declared in this scope
    5 |   else puts("No");
      |        ^~~~
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for (int i = (0); i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(x) (x).begin(),(x).end()
#define rrng(x) (x).rbegin(),(x).rend()
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define show(x) cout << #x << " = " << (x) << endl
#define show2(x,y) cout << #x << " = " << (x) << ", " << #y << " = " << (y) << endl
#define show3(x,y,z) cout << #x << " = " << (x) << ", " << #y << " = " << (y) <<  ", " << #z << " = " << (z) << endl
#define showv(v) rep(i,v.size()) printf("%d%c", v[i], i==v.size()-1?'\n':' ')
#define showv2(v) rep(j,v.size()) showv(v[j])
#define showt(t,n) rep(i,n) printf("%d%c", t[i], i==n-1?'\n':' ')
#define showt2(t,r,c) rep(j,r) showt(t[j],c)
#define showvp(p) rep(i,p.size()) printf("%d %d\n", p[i].first, p[i].second);
#define printv(v) rep(i,v.size()) printf("%d\n", v[i])
#define printt(t,n) rep(i,n) printf("%d\n", t[i])
#define incl(v,x) find(rng(v),x)!=v.end()
#define incls(s,c) s.find(c)!=string::npos
#define fi first
#define se second
#define pb push_back
#define eb emplace_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define bit(n,k) ((n>>k)&1) // nのk bit目
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define uni(x) x.erase(unique(rng(x)),x.end())
#define SP << " " <<
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
using ll = long long;
using vi = vector<int>;
using vvi = vector<vi>;
using vl = vector<ll>;
using vs = vector<string>;
using P = pair<int, int>;
using T = tuple<int, int, int>;
using vp = vector<P>;
using vt = vector<T>;
const int mod = 1000000007;
const double EPS = 1e-9;
//const long double EPS = 1e-14;
const int INF = (1<<30)-1;
const ll LINF = (1LL<<62)-1;
#define dame { puts("No"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
inline int in() { int x; scanf("%d",&x); return x;}
//template<class T = int> inline T in() { T x; cin >> x; return (x);}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
char itoa(int n) { return n + '0';}
ll gcd(ll a, ll b) { return b ? gcd(b,a%b) : a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

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

int main(){
  int a[3];
  scanf("%d%d%d",&a[0],&a[1],&a[2]);
  if(a[0]==7||a[1]==7||a[2]==7){
    pritnf("Yes");
  }
  else
    printf("No");
}


Compiler output:
main.c: In function 'main':
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%d%d%d",&a[0],&a[1],&a[2]);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%d%d%d",&a[0],&a[1],&a[2]);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:5:5: error: implicit declaration of function 'pritnf' [-Wimplicit-function-declaration]
    5 |     pritnf("Yes");
      |     ^~~~~~
main.c:8:5: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |     printf("No");
      |     ^~~~~~
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:5: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    string str;
    cin>>str;
    int i=0;
    while(i<3)
    {
        if(str[i]=='7')
        {
            break;
        }
        i++;
    }  
    if(i==3)
    {
        cout<<"No"<<endl;
    }
    else
    {
        cout<<"Yes"<<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>
#define PB push_back
#define MP make_pair
#define F first
#define S second
#define MOD	1000000007
#define int	long long
#define pii pair<int,int> 
#define vi vector<int>
using namespace std;

int32_t main(){
	string s;
	cin >> s;
	
	if(s.find('7') != string::npos){
		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 <bits/stdc++.h>
#include <string>
#include <math.h>
#include <vector>
#include <algorithm>
using namespace std;
int main(){
   int n; cin>>n;
   int a,b,c;
   a=n/100;
   b=(n-a*100)/10;
   c=n-a*100-b*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

n = str(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 = str(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 'str' [-Wimplicit-function-declaration]
    1 | n = str(input())
      |     ^~~
main.c:1:9: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | n = str(input())
      |         ^~~~~
main.c:1:5: error: initializer element is not constant
    1 | n = str(input())
      |     ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if "7" in n:
      | ^~
Language: C

#include <bits/stdc++.h>

#define all(x) (x).begin(),(x).end()

#define MOD 1000000007

using namespace std;

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

	for( int i=0; i<3; i++ ){
		if( n % 10 == 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: Java

import java.util.Scanner;
class test{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int N = sc.nextInt();
        sc.close();
    	int N100 = N/100;//100のけた
      	int N10 = (N/10)%10;//
        int N1 = N%10;//1のけた
        if(N1 == 7 || N10 == 7 || N100 == 7){
          System.out.printlm("Yes");
        }else{
          System.out.printlm("No");
        }
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
          System.out.printlm("Yes");
                    ^
  symbol:   method printlm(String)
  location: variable out of type PrintStream
Main.java:13: error: cannot find symbol
          System.out.printlm("No");
                    ^
  symbol:   method printlm(String)
  location: variable out of type PrintStream
2 errors
Language: C

//#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<int, int> pii;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef vector<bool> vb;
#define pb push_back
#define fi first
#define se second
#define in insert
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define speed ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
const int mod = 1e9 + 7;
void solve(){
    string s;
    cin >> s;
    for (char x : s) if (x == '7') {
        cout << "Yes";
        return;
    }
    cout << "No";
}
int main(){
    speed;
    int t = 1;
    //cin >> t;
    for (int i = 1; i <= t; ++i) {
        solve();
    }
}

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

#include <iostream>
#include <stack>
#include <math.h>
#include <vector>
#include <algorithm>

#define rep(i,n) for(int i=0; i < n; i++)
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;
    return 0;
}

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

#pragma region
#include<bits/stdc++.h>
#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define repr(i, n) for (int i = n; i >= 0; i--)
#define repc(i, m, n) for (int i = m; i < n; i++)
#define reprc(i, m, n) for (int i = m; i > n; i--)
#define all(v) v.begin(), v.end()
#define INF 1e9
#define EPS 1e-10
using namespace std;
typedef long long ll;
#pragma endregion

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

    string s;
    s = to_string(N);

    rep(i, 3){
        if(s.at(i) == '7'){
            cout << "Yes" << endl;
            return;
        }
    }

    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:13: error: return-statement with no value, in function returning 'int' [-fpermissive]
   26 |             return;
      |             ^~~~~~
Language: C

#include<iostream>
#include<string>
#include<cstdio>
#include<vector>
#include<cmath>
#include<algorithm>
#include<functional>
#include<iomanip>
#include<queue>
#include<ciso646>
#include<random>
#include<map>
#include<set>
#include<bitset>
#include<stack>
#include<unordered_map>
#include<utility>
#include<cassert>
#include<complex>
#include<numeric>
using namespace std;

//#define int long long
typedef long long ll;

typedef unsigned long long ul;
typedef unsigned int ui;
ll mod = 1000000007;
const ll INF = mod * mod;
typedef pair<int, int>P;
#define stop char nyaa;cin>>nyaa;
#define rep(i,n) for(int i=0;i<n;i++)
#define per(i,n) for(int i=n-1;i>=0;i--)
#define Rep(i,sta,n) for(int i=sta;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
#define per1(i,n) for(int i=n;i>=1;i--)
#define Rep1(i,sta,n) for(int i=sta;i<=n;i++)
#define all(v) (v).begin(),(v).end()
typedef pair<ll, ll> LP;
typedef long double ld;
typedef pair<ld, ld> LDP;
const ld eps = 1e-12;
const ld pi = acos(-1.0);

ll mod_pow(ll a, ll n, ll m = mod) {
	ll res = 1;
	while (n) {
		if (n & 1)res = res * a%m;
		a = a * a%m; n >>= 1;
	}
	return res;
}

struct modint {
	ll n;
	modint() :n(0) { ; }
	modint(ll m) :n(m) {
		if (n >= mod)n %= mod;
		else if (n < 0)n = (n%mod + mod) % mod;
	}
	operator int() { return n; }
};
bool operator==(modint a, modint b) { return a.n == b.n; }
modint operator+=(modint &a, modint b) { a.n += b.n; if (a.n >= mod)a.n -= mod; return a; }
modint operator-=(modint &a, modint b) { a.n -= b.n; if (a.n < 0)a.n += mod; return a; }
modint operator*=(modint &a, modint b) { a.n = ((ll)a.n*b.n) % mod; return a; }
modint operator+(modint a, modint b) { return a += b; }
modint operator-(modint a, modint b) { return a -= b; }
modint operator*(modint a, modint b) { return a *= b; }
modint operator^(modint a, int n) {
	if (n == 0)return modint(1);
	modint res = (a*a) ^ (n / 2);
	if (n % 2)res = res * a;
	return res;
}

ll inv(ll a, ll p) {
	return (a == 1 ? 1 : (1 - p * inv(p%a, a)) / a + p);
}
modint operator/(modint a, modint b) { return a * modint(inv(b, mod)); }
const int max_n = 10000;
modint fact[max_n], factinv[max_n];
void init_f() {
	fact[0] = modint(1);
	for (int i = 0; i < max_n - 1; i++) {
		fact[i + 1] = fact[i] * modint(i + 1);
	}
	factinv[max_n - 1] = modint(1) / fact[max_n - 1];
	for (int i = max_n - 2; i >= 0; i--) {
		factinv[i] = factinv[i + 1] * modint(i + 1);
	}
}
modint comb(int a, int b) {
	if (a < 0 || b < 0 || a < b)return 0;
	return fact[a] * factinv[b] * factinv[a - b];
}

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


void solve() {
	string n; cin >> n;
	for (char c : n) {
		if (c == '7') {
			cout << "Yes\n"; return;
		}
	}
	cout << "No\n";
}


signed main() {
	ios::sync_with_stdio(false);
	cin.tie(0);
	//cout << fixed << setprecision(7);
	//init_f();
	//init();
	//int t; cin >> t; rep(i, t)solve();
	solve();
	stop
		return 0;
}


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

n = input()
if n.count('7')>0:
    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 n.count('7')>0:
      | ^~
main.c:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
Language: C

#include<bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

bool isLucky(string &s) {
	for (char ch : s)
		if(ch=='7') return true;
	return false;
}
int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	string s; cin>>s;
	cout<<(isLucky(s) ? "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>
#include <ext/pb_ds/assoc_container.hpp>

bool isLucky(string &s) {
	for (char ch : s)
		if(ch=='7') return true;
	return false;
}

int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	string s; cin>>s;
	cout<<(isLucky(s) ? "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>
#include <ext/pb_ds/assoc_container.hpp>
using namespace __gnu_pbds;
using namespace std;

bool isLucky(string &s) {
	for (char ch : s)
		if(ch=='7') return true;
	return false;
}

int main() {
	cin.tie(0); cout.tie(0); ios_base::sync_with_stdio(0);
	string s; cin>>s;
	cout<<(isLucky(s) ? "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<iostream>
using namespace std;
int main()
{
  int n;
  cin>>n;
  while(n>0){
    int k = n%10;
    if(k==7){cout<<"Yes";
    return 0;}
    n=n/10;
  }
  cout<<"No";
}


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 n;
  cin>>n;
  while(n>0){
    int k = n%10;
    if(k==7){cout<<"Yes";
    return 0;}
    n=n/10;
  }
  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: Java

import java.util.*;
class Main {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        String s = input.next();
        String ans = "No";
        for (int i = 0; i < 3; i++){
            char c = s.charAt(i);
            if (c.equals('7')){
                ans = "Yes";
            }
        }
        System.out.println(ans);
    }
}

Compiler output:
Main.java:9: error: char cannot be dereferenced
            if (c.equals('7')){
                 ^
1 error
Language: C

// Created by arvybhatt

#include <bits/stdc++.h>
#define fast ios::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define F first
#define S second
#define p_b push_back
#define m_p make_pair
#define rep(i,n) for(int i=0;i<(n);++i)
#define repA(i,a,n) for(int i=a;i<=(n);++i)
#define repD(i,a,n) for(int i=a;i>=(n);--i)

using namespace std;
using ll = long long;

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

    cout<<"No";
    return 0;
    
    return 0;
}


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

/*
   Created by Rahul Goel.
*/

#include <iostream>
#include <vector>
#include <cstring>
#include <string>
#include <queue>
#include <deque>
#include <stack>
#include <algorithm>
#include <cmath>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>

using namespace std;
typedef long long ll;
ll mod = 1000000007;
const int INF = 1e9;
const ll LINF = 1e18;

#define fastio ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define all(c) (c).begin(), (c).end()
#define pii pair < int, int >
#define vi vector < int >
#define vb vector < bool >
#define vvi vector < vector < int > >
#define vvb vector < vector < bool > >
#define vpii vector < pair < int, int > >
#define vvpii vector < vector < pair < int, int > > >
#define pb push_back
#define f first
#define s second
#define mp make_pair

int main(){
    fastio;

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

    return 0;
}


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

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

int main(){

  vector<char> data(3);
   for(int i=0; i<3; i++){
  cin >> data.at(i);
  }
  
  if(data.at(1)=='7'|data.at(2)=='7'|data.at(3)=='7'){
  cout << "Yes";
  }
  else{
  cout << "No";
  }
}

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

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

int main(){

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

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

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

int main(){

  int data[3];
  for(int i=0; i<3; i++){
  cin >> data.at(i);
  }
  
  if(data.at(1)==7|data.at(2)==7|data.at(3)==7){
  cout << "Yes";
  }
  else{
  cout << "No";
  }
}

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

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

int main(){

  char data[3];
  for(int i=0; i<3; i++){
  cin >> data.at(i);
  }
  
  if(data.at(1)=='7'|data.at(2)=='7'|data.at(3)=='7'){
  cout << "Yes";
  }
  else{
  cout << "No";
  }
}

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

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

int main(){

  char data[3];
  for(int i=0; i<3; i++){
  cin >> data.at(i);
  }
  
  if(data.at(1)=='7'|data.at(2)=='7'|data.at(3)=='7'){
  cout << "Yes";
  }
  els{
  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(){

  char data[3];
  for(int i=0; i<3; i++){
  cin >> data[i];
  }
  
  if(a==data[1]|b==data[2]|c==data[3]){
  cout << "Yes";
  }
  els{
  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(){

  char a,b,c;
  cin >> a >> b >> c;
  
  if(a=='7'|b=='7'|c=='7'){
  cout << "Yes";
  }
  els{
  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.at(0) == '7' || N.at(1) == '7' || 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 a,b,c;
  cin >> a >> b >> c;
  
  if(a=="7"|b=="7"|c=="7"){
  cout << "Yes";
  }
  els{
  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 a,b,c;
  cin >> a >> b >> c;
  
  if(a=='7'|b=='7'|c=='7'){
  cout << 'Yes';
  }
  els{
  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(){

  char a,b,c;
  cin >> a >> b >> c;
  
  if(a=='7'|b=='7'|c=='7'){
  cout << 'Yes';
  }
  els{
  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: Java

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

public class Main {
  public static void main(String[] args) {
  	BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
    String str = reader.readLine();
    int n = Integer.parseInt(str);
    
    int sum = 0;
    for (int i = 1; i <= n; i++) {
      if (i % 3 == 0 || i % 5 == 0)
        continue;
      sum += i;
    }
    
    System.out.println(sum);
  }
}


Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    String str = reader.readLine();
                                ^
1 error
Language: C

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

int main(){

  int a,b,c;
  cin >> a >> b >>c;
  
  if(a==7|b==7|c==7){
  cout << 'Yes';
  }
  els{
  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>

void main()
{
	int num = 0;
	cin >> num;
  	num = num-777;
  	if(num == 0 || num % 10 == 0 || (num /10)%10 == 0 || (num/100)==0)
    {
  		std::cout<<"Yes";
    }
  	std::cout << "No";
    return 0;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> num;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

#include <iostream>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   15 |   cout <"No" << endl;
      |         ~~~~~^~~~~~~
Language: C

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <fstream>
#include <numeric>
using namespace std;
typedef long long int ll;

#define EPS (1e-7)
#define INF 1e18
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define PI (acos(-1))

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

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

#include <iostream>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <algorithm>
#include <string>
#include <sstream>
#include <complex>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <fstream>
#include <numeric>
using namespace std;
typedef long long int ll;

#define EPS (1e-7)
#define INF 1e18
#define max(p,q)((p)>(q)?(p):(q))
#define min(p,q)((p)<(q)?(p):(q))
#define PI (acos(-1))

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

int main() {
    string s;
    cin >> s;
    string ans = s[0] == '7' || s[1] == '7' || s[2] == '7' ? "Yes" : "No";
    cout << ans << 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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Main {
  BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
  String str = reader.readLine();
  
  if (str.contains("7")) {
  	System.out.println("Yes");
  } else {
  	System.out.println("No");
  }
}

Compiler output:
Main.java:9: error: illegal start of type
  if (str.contains("7")) {
  ^
Main.java:9: error: <identifier> expected
  if (str.contains("7")) {
                  ^
Main.java:9: error: illegal start of type
  if (str.contains("7")) {
                   ^
Main.java:11: error: illegal start of type
  } else {
    ^
4 errors
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   str=std::to_string(N);
      |   ^~~
      |   std
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   str=to_string(N);
      |   ^~~
      |   std
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected primary-expression before ')' token
   14 |   else () {
      |         ^