criyle/codenet-compile-errors huggingface dataset:
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() {
  int n;
  rep(i,n) {
    cin >> n[i];
    if (n[i] = 7) 
    cout << "Yes" << endl;
  } cout << "No" << endl;
  return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |     cin >> n[i];
      |             ^
a.cc:11:10: error: invalid types 'int[int]' for array subscript
   11 |     if (n[i] = 7)
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string str;
  cin >> str;
  bool ans = false;
  
  for(int i=0;i<3;i++){
    if(str.at(i) == '7'){
      ans = true;
    }
  }
  
  if(ans==true) 
    cout<<"Yes"<<endl
  else
    cout<<"No"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:22: error: expected ';' before 'else'
   16 |     cout<<"Yes"<<endl
      |                      ^
      |                      ;
   17 |   else
      |   ~~~~
Language: C++

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

int main() {
  srring s;
  cin >> s;
  string ans = "No";
  
  for(int i=0; i < 3;i++){
    if(s.at(i) == 7){
      ans = "Yes";
    }
  }
  
  cout << ans << endl;
	return 0;
}


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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: invalid types 'int[int]' for array subscript
    9 |    if (N[i] == '7') ans = "Yes";
      |         ^
Language: C++

#include<iostream>
using namespace std;

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

Compiler output:
a.cc:6:16: warning: multi-character character constant [-Wmultichar]
    6 |   string ans = 'No';
      |                ^~~~
a.cc: In function 'int main()':
a.cc:6:16: error: conversion from 'int' to non-scalar type 'std::string' {aka 'std::__cxx11::basic_string<char>'} requested
a.cc:9:9: error: invalid types 'int[int]' for array subscript
    9 |    if (N[i] == '7') ans = "Yes";
      |         ^
Language: C++

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

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

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

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

Compiler output:
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'Yes' << endl;
      |             ^~~~~
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |   cout << 'No' << endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:9:8: error: expected '(' before 'str'
    9 |     if str.at(i)=='7';
      |        ^~~
      |        (
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char str[100];
  char *adr;
  scanf("%s",str);
  adr = strchr(str,(int)'7');
  if(adr != '\0'){
		printf("Yes");
  }eles{
    printf("No");
  }
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:10: warning: comparison between pointer and zero character constant [-Wpointer-compare]
    8 |   if(adr != '\0'){
      |          ^~
main.c:8:6: note: did you mean to dereference the pointer?
    8 |   if(adr != '\0'){
      |      ^
main.c:10:4: error: 'eles' undeclared (first use in this function)
   10 |   }eles{
      |    ^~~~
main.c:10:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: expected ';' before '{' token
   10 |   }eles{
      |        ^
      |        ;
Language: C

#include<stdio.h>
#include<string.h>
int main(void){
  char str;
  char *adr;
  scanf("%s",str);
  adr = strchr(str,(int)'7');
  if(adr != '\0'){
		printf("Yes");
  }eles{
    printf("No");
  }
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:16: error: passing argument 1 of 'strchr' makes pointer from integer without a cast [-Wint-conversion]
    7 |   adr = strchr(str,(int)'7');
      |                ^~~
      |                |
      |                char
In file included from main.c:2:
/usr/include/string.h:246:34: note: expected 'const char *' but argument is of type 'char'
  246 | extern char *strchr (const char *__s, int __c)
      |                      ~~~~~~~~~~~~^~~
main.c:8:10: warning: comparison between pointer and zero character constant [-Wpointer-compare]
    8 |   if(adr != '\0'){
      |          ^~
main.c:8:6: note: did you mean to dereference the pointer?
    8 |   if(adr != '\0'){
      |      ^
main.c:10:4: error: 'eles' undeclared (first use in this function)
   10 |   }eles{
      |    ^~~~
main.c:10:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:10:8: error: expected ';' before '{' token
   10 |   }eles{
      |        ^
      |        ;
Language: Java


import java.util.Scanner;
public class Mains {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        String s = String.valueOf(n);
        for(int i=0;i<s.length();i++){
        if (s.charAt(i) == '7') {
            System.out.println("Yes");
           return;  
        }
        }
            System.out.println("No");
      
      
    }

}


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




import java.util.Scanner;

public class MainA {

    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        String s = Integer.toString(n);
        if (s.charAt(0) == '7') {
            System.out.println("Yes");
        } else if (s.charAt(1) == '7') {
            System.out.println("Yes");
        } else if (s.charAt(2) == '7') {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }

    }

}


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

#include <stdio.h>
typedef long long ll;
char txt[4];
int gcd(int a, int b){
	return a%b?gcd(b,a%b):b;
}
int main(){
	int SW = 0;
	if(SW == 0){
		scanf("%s",txt);
		for(int i=0;i<3;i++) f|=txt[i]=='7';
		printf("%s",f?"Yes":"No");
	}
	else if(SW==1){
		ll N;scanf("%lld",&N);
		ll ret = N*(N+1)/2;
		ret -= 3*(N/3)*(N/3+1)/2;
		ret -= 5*(N/5)*(N/5+1)/2;
		ret += 15*(N/15)*(N/15+1)/2;
		printf("%lld",ret);
	}
	else{
		ll K;scanf("%lld",&K);
		ll sum=0;
		for(ll i=1;i<=K;i++){
			for(int j=1;j<=K;j++){
				for(int k=1;k<=K;k++){
					sum+=gcd(gcd(i,j),k);
				}
			}
		}
		printf("%lld",sum);
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:38: error: 'f' was not declared in this scope
   11 |                 for(int i=0;i<3;i++) f|=txt[i]=='7';
      |                                      ^
a.cc:12:29: error: 'f' was not declared in this scope
   12 |                 printf("%s",f?"Yes":"No");
      |                             ^
Language: Java

import java.util.*;

public class abc162a {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        String n = scan.nextLine();
        String[] array = n.split("");

        int frag = 0;
        for(String a : array){
            if(a.equals("7")){
                frag = 1;
            }
        }

        if(frag == 1){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected ')' before ';' token
   10 |   cout<<"Yes"<<endl;
      |                    ^
      |                    )
a.cc:9:23: note: to match this '('
    9 |   if(a==7||b==7||c==7)(
      |                       ^
a.cc: At global scope:
a.cc:12:5: error: expected unqualified-id before 'else'
   12 |     else{
      |     ^~~~
a.cc:14:5: error: expected declaration before '}' token
   14 |     }
      |     ^
Language: C++

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

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


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

#include<stdio.h>
int main()
{
  int N,r,count=0;
  char r[4];
  N=r[4];
  scanf("%d",&N);
  while(N>0)
  {
    r=N%10;
    if(r%7==0)
    {
      count++;
    }
    N=N/10;
  }
  if(count>0)
    printf("Yes");
  else
    printf("No");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:5:8: error: conflicting types for 'r'; have 'char[4]'
    5 |   char r[4];
      |        ^
main.c:4:9: note: previous declaration of 'r' with type 'int'
    4 |   int N,r,count=0;
      |         ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String []N = sc.next();
      	N=new String[3];
		
      	
        
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
        System.out.println("Yes");}
      	else{
        System.out.println("No");}
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to String[]
		String []N = sc.next();
		                    ^
Main.java:11: error: bad operand types for binary operator '||'
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	            ^
  first type:  char
  second type: String
Main.java:11: error: bad operand types for binary operator '||'
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	                        ^
  first type:  char
  second type: String
Main.java:11: error: incompatible types: String cannot be converted to boolean
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	       ^
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String N[] = sc.next();
		
      	
        
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
        System.out.println("Yes");}
      	else{
        System.out.println("No");}
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to String[]
		String N[] = sc.next();
		                    ^
Main.java:10: error: bad operand types for binary operator '||'
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	            ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '||'
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	                        ^
  first type:  char
  second type: String
Main.java:10: error: incompatible types: String cannot be converted to boolean
      	if(N[0]='7' || N[1]='7' || N[2]='7'){
      	       ^
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String N[] = sc.next();
		
      	
        
      	if(N[0]=='7' || N[1]=='7' || N[2]=='7'){
        System.out.println("Yes");}
      	else{
        System.out.println("No");}
	}
}

Compiler output:
Main.java:6: error: incompatible types: String cannot be converted to String[]
		String N[] = sc.next();
		                    ^
Main.java:10: error: bad operand types for binary operator '=='
      	if(N[0]=='7' || N[1]=='7' || N[2]=='7'){
      	       ^
  first type:  String
  second type: char
Main.java:10: error: bad operand types for binary operator '=='
      	if(N[0]=='7' || N[1]=='7' || N[2]=='7'){
      	                    ^
  first type:  String
  second type: char
Main.java:10: error: bad operand types for binary operator '=='
      	if(N[0]=='7' || N[1]=='7' || N[2]=='7'){
      	                                 ^
  first type:  String
  second type: char
4 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		Sring N[] = sc.next();
		
      	
        
      	if(N[0]=='7' || N[1]=='7' || N[2]=='7'){
        System.out.println("Yes");}
      	else{
        System.out.println("No");}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Sring N[] = sc.next();
		^
  symbol:   class Sring
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
      	int hundred=N/100;
        int ten=(N-hundred)/10;
        int one=(N-hundred-ten);
        
      	if(one=7||ten=7||hundred=7){
        System.out.println("YES");}
      	else{
        System.out.println("NO");}
	}
}

Compiler output:
Main.java:12: error: bad operand types for binary operator '||'
      	if(one=7||ten=7||hundred=7){
      	        ^
  first type:  int
  second type: int
Main.java:12: error: bad operand types for binary operator '||'
      	if(one=7||ten=7||hundred=7){
      	               ^
  first type:  int
  second type: int
Main.java:12: error: incompatible types: int cannot be converted to boolean
      	if(one=7||ten=7||hundred=7){
      	      ^
3 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String N = sc.next();
		
      	int hundred=N/100;
        int ten=(N-hundred)/10;
        int one=(N-hundred-ten);
        
      	if(one=7||ten=7||hundred=7){
        System.out.println("YES");}
      	else{
        System.out.println("NO");}
	}
}

Compiler output:
Main.java:8: error: bad operand types for binary operator '/'
      	int hundred=N/100;
      	             ^
  first type:  String
  second type: int
Main.java:9: error: bad operand types for binary operator '-'
        int ten=(N-hundred)/10;
                  ^
  first type:  String
  second type: int
Main.java:10: error: bad operand types for binary operator '-'
        int one=(N-hundred-ten);
                  ^
  first type:  String
  second type: int
Main.java:12: error: bad operand types for binary operator '||'
      	if(one=7||ten=7||hundred=7){
      	        ^
  first type:  int
  second type: int
Main.java:12: error: bad operand types for binary operator '||'
      	if(one=7||ten=7||hundred=7){
      	               ^
  first type:  int
  second type: int
Main.java:12: error: incompatible types: int cannot be converted to boolean
      	if(one=7||ten=7||hundred=7){
      	      ^
6 errors
Language: C++

#define _CRT_SECURE_NO_WARNINGS

#include <stdio.h>
#include <stdlib.h>
#include <assert.h>

void main(void)
{
	int a;
	scanf("%d", &a);
	if ((100 <= a && a <= 999) && ((a / 100 == 7) || (a / 10 == 7) || (a % 10 == 7)))
	{
		printf("Yes\n");
	}
	else
	{
		printf("No\n");
	}
}

Compiler output:
a.cc:7:1: error: '::main' must return 'int'
    7 | void main(void)
      | ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define FOR(i, n, m) for (int i = m; i < n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()

typedef long long ll;

/**
 * 不安なら ll を使う.
 * 小数は double を忘れない.
 * nC2の求め方 (1/2)*n*(n-1)
 * vector<型> 変数名(要素数, 初期値)
 * pair<型, 型> 変数名
 * map<型, 型> 変数名  // 連想配列
 * priority_queue<型> 変数名  // 最大値から出てくるヒープ
 * 比較するときは型まで注意
 * 区間の計算は累積和
 * 整数同士の割り算は整数に丸められるのでdoubleでキャストする
*/

/* ===== コーナーケースに気をつけろ ===== */

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


Compiler output:
Main.java:11: error: int cannot be dereferenced
    if (N.contains("7")){
         ^
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanner scan;
    int N
    
    scan = new Scanner(System.in);
    N = scan.nextInt();
    
    if (N.contains("7")){
    System.out.println("Yes");
    }else{
      System.out.println("No");
    }
  }
}


Compiler output:
Main.java:6: error: ';' expected
    int N
         ^
1 error
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanner scan;
    int N
    
    scan = new Scanner(System.in);
    N = scan.nextInt();
    
    if (N.contains("7")){
    System.out.println("Yes")
    }else{
      System.out.println("No")
    }
  }
}


Compiler output:
Main.java:6: error: ';' expected
    int N
         ^
Main.java:12: error: ';' expected
    System.out.println("Yes")
                             ^
Main.java:14: error: ';' expected
      System.out.println("No")
                              ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String args[]){
    Scanner scan;
    int N
    
    scan = new Scanner(System.in);
    N = scan.nextInt();
    
    if (N.contains(7)){
    System.out.println("Yes")
    }else{
      System.out.println("No")
    }
  }
}


Compiler output:
Main.java:6: error: ';' expected
    int N
         ^
Main.java:12: error: ';' expected
    System.out.println("Yes")
                             ^
Main.java:14: error: ';' expected
      System.out.println("No")
                              ^
3 errors
Language: C

A = input("3numbers")
if A in [7]:
    print("yes")
else:
    print("no")

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

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    int N;
    std::cin >> N;
    std::string strN = std::to_string(N);
    bool isOK = false;
    for (int i =0;i<3;i++){
        if(strN[i] == "7"){isOK = true;}
    }
     
    if(isOK == true){
        std::cout << "Yes" << std::endl;
    }
    else{std::cout << "No" << std::endl;}


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(strN[i] == "7"){isOK = true;}
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    int N;
    std::cin >> N;
    std::string strN = std::to_string(N)
    bool isOK = false;
    for (int i =0;i<3;i++){
        if(strN[i] == "7"){isOK = true;}
    }
     
    if(isOK == true){
        std::cout << "Yes" << std::endl;
    }
    else{std::cout << "No" << std::endl;}


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'bool'
    8 |     bool isOK = false;
      |     ^~~~
a.cc:10:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |         if(strN[i] == "7"){isOK = true;}
a.cc:10:28: error: 'isOK' was not declared in this scope
   10 |         if(strN[i] == "7"){isOK = true;}
      |                            ^~~~
a.cc:13:8: error: 'isOK' was not declared in this scope
   13 |     if(isOK == true){
      |        ^~~~
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    int N;
    std::cin >> N;
    std::string strN = std::to_string(N)
    if(strN[0] == "7" || strN[1] == "7" || strN[2] == "7"){
        std::cout << "Yes" << std::endl;
    }
    else{std::cout << "No" << std::endl;}


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if(strN[0] == "7" || strN[1] == "7" || strN[2] == "7"){
      |     ^~
a.cc:11:5: error: 'else' without a previous 'if'
   11 |     else{std::cout << "No" << std::endl;}
      |     ^~~~
Language: C++

#include <iostream>
#include <string>
#include <bits/stdc++.h>
#include <vector>
#include <algorithm>
#include <functional>
#include <stdio.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:13:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(n.at(0) == "7" || n.at(1) == "7" || n.at(2) == "7"){
      |      ~~~~~~~~^~~~~~
a.cc:13:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(n.at(0) == "7" || n.at(1) == "7" || n.at(2) == "7"){
      |                        ~~~~~~~~^~~~~~
a.cc:13:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   13 |   if(n.at(0) == "7" || n.at(1) == "7" || n.at(2) == "7"){
      |                                          ~~~~~~~~^~~~~~
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 == ){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:32: error: expected primary-expression before ')' token
    7 |   if (a == 7 || b == 7 || c == ){
      |                                ^
Language: C++

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

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

for(i=s.begin();i<s.end();i++)

{
if(s[i]==7)
cout<<"YES";
else
cout<<"NO";
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'i' was not declared in this scope
   10 | for(i=s.begin();i<s.end();i++)
      |     ^
Language: C++

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

Compiler output:
a.cc:3:1: error: 'main' declared as function returning a function
    3 | int main(void)()
      | ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using namespace std;
 
#define ll long long
#define f(i,a,b) for(ll i=a;i<b;i++)
#define endl '\n'
#define spc " "
#define pb push_back
#define mp make_pair
#define mod 1000000007

vector<vector<ll> >vii;

int main() 

{
    ios::sync_with_stdio(0);
    cin.tie(0);
    //freopen("in.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    ll n,haa=0;
    cin>>n;
    while(n>0){
        k=n%10;
        n=n/10;
        if(k==7){
            haa=1;
            break;
        }
    }
    if(haa==1) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'k' was not declared in this scope
   25 |         k=n%10;
      |         ^
Language: C++

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

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

Compiler output:
a.cc: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()
{
  char s[3]={};
  scanf("%s",s);
  int i,n=strlen(s),flag=0;
  for(i=0;i<n;i++)
  { if(s[i]==7)
  {
    flag==1;
  }}
  if(flag==1) puts("YES\n);
                   else 
                   puts("NO\n);
                        }

Compiler output:
a.cc:13:20: warning: missing terminating " character
   13 |   if(flag==1) puts("YES\n);
      |                    ^
a.cc:13:20: error: missing terminating " character
   13 |   if(flag==1) puts("YES\n);
      |                    ^~~~~~~~
a.cc:15:25: warning: missing terminating " character
   15 |                    puts("NO\n);
      |                         ^
a.cc:15:25: error: missing terminating " character
   15 |                    puts("NO\n);
      |                         ^~~~~~~
a.cc: In function 'int main()':
a.cc:14:20: error: expected primary-expression before 'else'
   14 |                    else
      |                    ^~~~
Language: C++

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

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

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

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

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

int main() {
  string n;
  cin >> n;
  string ans;
  for (int i=0; i < 3;i++) {
    if (n.at(i) == "7") {
      ans = "Yes";
      break;
    }
    else {
      ans = "No";
    }    
  cout << ans << endl;  
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (n.at(i) == "7") {
      |         ~~~~~~~~^~~~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

int main() {
  string n;
  cin >> n;
  string ans;
  for (int i=0; i < 3;i++) {
    if (n.at(i) == "7") {
      ans = "Yes";
      break;
    }
    else {
      ans = "No";
    }    
  cout << ans << endl;  
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'string' was not declared in this scope
    2 |   string n;
      |   ^~~~~~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> n;
      |   ^~~
a.cc:3:10: error: 'n' was not declared in this scope
    3 |   cin >> n;
      |          ^
a.cc:4:9: error: expected ';' before 'ans'
    4 |   string ans;
      |         ^~~~
      |         ;
a.cc:7:7: error: 'ans' was not declared in this scope
    7 |       ans = "Yes";
      |       ^~~
a.cc:11:7: error: 'ans' was not declared in this scope
   11 |       ans = "No";
      |       ^~~
a.cc:13:3: error: 'cout' was not declared in this scope
   13 |   cout << ans << endl;
      |   ^~~~
a.cc:13:11: error: 'ans' was not declared in this scope
   13 |   cout << ans << endl;
      |           ^~~
a.cc:13:18: error: 'endl' was not declared in this scope
   13 |   cout << ans << endl;
      |                  ^~~~
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:1:12: note: to match this '{'
    1 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string n;
  cin >> n;
  string ans;
  for (int i=0; i<=n.size();i++) {
    if (n.at(i) == "7") {
      ans = "Yes";
      break;
    }
    else {
      ans = "No";
    }    
  cout << ans << endl;  
  return 0;
}  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |     if (n.at(i) == "7") {
      |         ~~~~~~~~^~~~~~
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0] == '7' || N[1] == '7' || N[2] == '7'){
      |       ^
a.cc:7:22: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0] == '7' || N[1] == '7' || N[2] == '7'){
      |                      ^
a.cc:7:37: 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() {
int N;
  cin >> N;
  if(N[0] == 7 || N[1] == 7 || N[2] == 7){
cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0] == 7 || N[1] == 7 || N[2] == 7){
      |       ^
a.cc:7:20: error: invalid types 'int[int]' for array subscript
    7 |   if(N[0] == 7 || N[1] == 7 || N[2] == 7){
      |                    ^
a.cc:7:33: 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() {
int N
  cin >> N;
  if(N[0] == 7 || N[1] == 7 || N[2] == 7){
cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> N;
      |   ^~~
a.cc:7:6: error: 'N' was not declared in this scope
    7 |   if(N[0] == 7 || N[1] == 7 || N[2] == 7){
      |      ^
Language: C++

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

	
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:17: error: 'else' without a previous 'if'
   12 |                 else cout<<"No";
      |                 ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int N ;
  cin  >> N;
  int A, B;
  if (N / 100 == 7)
    cout << "Yes" << endl;
  A = N / 100;
  else if ((N - A)/10 == 7)
    cout << "Yes" << endl;
  B = (N - A)/10;
  else if (N - A - B == 7)
    cout << "Yes" << endl;
  else 
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:3: error: 'else' without a previous 'if'
   10 |   else if ((N - A)/10 == 7)
      |   ^~~~
a.cc:13:3: error: 'else' without a previous 'if'
   13 |   else if (N - A - B == 7)
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int N ;
  cin  >> N;
  if (N / 100 == 7)
    cout << "Yes" << endl;
  int A = N / 100;
  else if ((N - A)/10 == 7)
    cout << "Yes" << endl;
  int B = (N - A)/10;
  else if (N - A - B == 7)
    cout << "Yes" << endl;
  else 
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if ((N - A)/10 == 7)
      |   ^~~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else if (N - A - B == 7)
      |   ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main (){
  int N ;
  cin N;
  if (N / 100 == 7)
    cout << "Yes" << endl;
  int A = N / 100;
  else if ((N - A)/10 == 7)
    cout << "Yes" << endl;
  int B = (N - A)/10;
  else if (N - A - B == 7)
    cout << "Yes" << endl;
  else 
    cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:6: error: expected ';' before 'N'
    5 |   cin N;
      |      ^~
      |      ;
a.cc:9:3: error: 'else' without a previous 'if'
    9 |   else if ((N - A)/10 == 7)
      |   ^~~~
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else if (N - A - B == 7)
      |   ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |   if(N.at(0) == 7)
      |        ^~
a.cc:8:14: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |   else if (N.at(1) == 7)
      |              ^~
a.cc:10:14: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |   else if (N.at(2) == 7)
      |              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: request for member 'at' in 'N', which is of non-class type 'int'
    6 |   if(N.at(0) = 7)
      |        ^~
a.cc:8:14: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |   else if (N.at(1) = 7)
      |              ^~
a.cc:10:14: error: request for member 'at' in 'N', which is of non-class type 'int'
   10 |   else if (N.at(2) = 7)
      |              ^~
Language: C++

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

int main()
{
  string N;
  cin >> N;
  string result = "No";
  for (int i = 0; i < N.size(); i++) {
  	if (N[i] == "7") {
    	result = "Yes";
        break;
    }
  }

  cout << result << endl;
}

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

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


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

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


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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: expected ',' or ';' before 'for'
    7 |   for (int i = 0; i < 3; i++){
      |   ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |   for (int i = 0; i < 3; i++){
      |                   ^
Language: Java

import java.util.*;
 
public class Main{
      public static void main(String[] args) {
            Scanner sc = new Scanner(System.in);
            String str = sc.next();
            String[] str2 = str.split("");
            for(int i = 0; i < str2.length; i++){
              if("7".equals(str2[0] || "7".equals(str[1]) || "7".equals(str[2])){
                System.out.println("Yes");
              } else {
                System.out.println("No");
              }
            }
          }
}

Compiler output:
Main.java:9: error: ')' expected
              if("7".equals(str2[0] || "7".equals(str[1]) || "7".equals(str[2])){
                                                                                ^
1 error
Language: C

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

int main()
{
  string n;
  cin >> n;
  cout << (n.find("7") != string::npos ? "Yes" : "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;
typedef long long ll;
using P = pair<int,int>;
/* ちゃんと考えてわかって実装 */

int main(void){
    string n;
    cin >> n;
    int flag == 0;
    for(int i=0; i<3; i++){
        if(n[i] == 7){
            cout << "Yes" << endl;
            flag = 1;
            break;
        }
    }

    if(flag == 0) cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected initializer before '==' token
   10 |     int flag == 0;
      |              ^~
a.cc:14:13: error: 'flag' was not declared in this scope
   14 |             flag = 1;
      |             ^~~~
a.cc:19:8: error: 'flag' was not declared in this scope
   19 |     if(flag == 0) cout << "No" << endl;
      |        ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int,int>;
/* ちゃんと考えてわかって実装 */

int main(void){
    string n;
    cin >> n;
    int flag == 0;
    for(int i=0; i<3; i++){
        if(n[i] == 7){
            cout << "Yes" << endl;
            flag == 1;
            break;
        }
    }

    if(flag == 0) cout << "No" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected initializer before '==' token
   10 |     int flag == 0;
      |              ^~
a.cc:14:13: error: 'flag' was not declared in this scope
   14 |             flag == 1;
      |             ^~~~
a.cc:19:8: error: 'flag' was not declared in this scope
   19 |     if(flag == 0) cout << "No" << endl;
      |        ^~~~
Language: C++

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

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

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

{
	int m,n,i,k,q,sum;
	string p;
	cin>>n;
	p=to_string(n);
	q=p.size();
	for(i=0;i<q;i++)
	{
		if(p[i]=='7')
		{
			cout<<"Yes";
			break;
		}
	}
	if(i==q)
	{
		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++

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

int main(){
  string N;
  cin >> N;
  for(int i=0;i<3;i++){
    if(N.at(i) == "7"){
      cout << "Yes" << endl;
      break;
    }
  
  }
  cout << "No" << endl;
}


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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: expected ';' before 'c'
    8 |   b=(N%100)/10
      |               ^
      |               ;
    9 |   c=b%10
      |   ~            
a.cc:12:4: error: 'else' without a previous 'if'
   12 |   }else{
      |    ^~~~
Language: C++

#include <bits/stdc++.h?
using namespace std;
int main(){

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

}


Compiler output:
a.cc:1:25: error: missing terminating > character
    1 | #include <bits/stdc++.h?
      |                         ^
a.cc:1:10: fatal error: bits/stdc++.h?: No such file or directory
    1 | #include <bits/stdc++.h?
      |          ^
compilation terminated.
Language: C++

#include<stdio.h>
int main()
{
	char a[3];
	int i,flag=0;
	gets(a);
	for(i=0;i<3;i++)
	{
		if(a[i]=='7')
		{
		flag++;
		}
	}
	if(flag==0) printf("No");
	else printf("Yes");
	return 0;
} 

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

#include<stdio.h>
int main()
{
	char a[3];
	int i,flag=0;
	gets(a);
	for(i=0,i<3;i++)
	{
		if(a[i]=='7')
		{
		flag++;
		}
	}
	if(flag=0) printf("No");
	else printf("Yes");
	return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'gets' was not declared in this scope; did you mean 'getw'?
    6 |         gets(a);
      |         ^~~~
      |         getw
a.cc:7:24: error: expected ';' before ')' token
    7 |         for(i=0,i<3;i++)
      |                        ^
      |                        ;
Language: C++

#include<cstdio>
#include<cstdlib>
#include<cstring>
#include<iostream>
using namespace std;

int main() {
	char a[4];
	gets(a);
	int p= 0;
	for (int i = 0; i < 3; i++)
		if (a[i] == '7')
			p= 1;
	if (p)
		printf("Yes\n");
	else
		printf("No\n");
	
}

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

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

int main() {
	char a[4];
	gets(a);
	int p= 0;
	for (int i = 0; i < 3; i++)
		if (a[i] == '7')
			p= 1;
	if (p)
		printf("Yes\n");
	else
		printf("No\n");
	
}


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

#ifdef DEBUG

#else

#    pragma GCC optimize("O3,no-stack-protector")
#    pragma GCC optimize("unroll-loops")

#    if __cplusplus >= 201703L
#        pragma GCC target("avx2")
#    else
#        pragma GCC target("avx")
#    endif

#endif
// 実数の場合
// #pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,tune=native")

#define _USE_MATH_DEFINES
#include <bits/stdc++.h>
#define dump(x) cout << x << endl
typedef int64_t Int;
typedef long double Ld;

using namespace std;
using Graph = vector<vector<Int>>;

const double pi = M_PI;
const Int MOD = 1000000007;

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

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

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

int main() {
  
  int c;
  
  cin >> c;
  
  string s = to_string(c);
  
  bool ans = false;
  
  for(int i=0;i<3;i++){
    if(s.at(i) == "7"){
      ans = true;
    }
  }
  
  if(ans){
    cout << "Yes" <<endl;
  }else{
    cout << "No" <<endl;
  }
  
  return 0;
  
}


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

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

int main() {
  
  int c;
  
  cin >> c;
  
  string str=to_string(c);
  
  bool ans = false;
  
  for(int i=0;i<3;i++){
    if(str.at(i) == "7"){
      ans = true;
    }
  }
  
  if(ans){
    cout << "Yes" <<endl;
  }else{
    cout << "No" <<endl;
  }
  
  
}


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

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

int main() {
  
  string str;
  
  cin >> str;
  
  bool ans = false;
  
  for(int i=0;i<3;i++){
    if(str.at(i) == "7"){
      ans = true;
    }
  }
  
  if(ans){
    cout << "Yes" <<endl;
  }else{
    cout << "No" <<endl;
  }
  
  
}


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

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

int main() {
  
  string str;
  
  cin >> str;
  
  bool ans = false;
  
  for(i=0;i<3;i++){
    if(str.at(i) == "7"){
      ans = true
    }
  }
  
  if(ans){
    cout << "Yes" <<endl;
  }else{
    cout << "No" <<endl;
  }
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   for(i=0;i<3;i++){
      |       ^
a.cc:14:17: error: expected ';' before '}' token
   14 |       ans = true
      |                 ^
      |                 ;
   15 |     }
      |     ~
Language: C++

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

int main() {
  
  string str;
  
  cin >> str;
  
  
  
  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:12:36: error: lvalue required as left operand of assignment
   12 |   if(str.at(0)="7" ||str.at(1)="7" || str.at(2)="7"){
      |                                ~~~~^~~~~~~~~~~~
Language: C++

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

int main() {
  
  string str;
  
  cin >> str;
  
  
  
  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:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str.at(0)=="7" ||str.at(1)=="7" || str.at(2)=="7"){
      |      ~~~~~~~~~^~~~~
a.cc:12:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str.at(0)=="7" ||str.at(1)=="7" || str.at(2)=="7"){
      |                       ~~~~~~~~~^~~~~
a.cc:12:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |   if(str.at(0)=="7" ||str.at(1)=="7" || str.at(2)=="7"){
      |                                         ~~~~~~~~~^~~~~