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

import java.util.Scanner;

public class CompetitiveProgramming {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
}

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

import java.util.Scanner;

public class CompetitiveProgramming {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        boolean hasNextInt = scanner.hasNextInt();
        int x = scanner.nextInt();
        if(hasNextInt) {
            while(x > 0) {
                if(x % 10 == 7) {
                    System.out.println("Yes");
                    break;
                } else {
                    x /= 10;
                }
                if(x == 0) {
                    System.out.println("No");
                }
            }
        }
        scanner.close();
    }
}

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

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:56: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
    8 |   cout << (s[0]=='7'||s[1]=='7'||s[2]=='7')?"Yes":"No" << endl;
      |                                                   ~~~~~^~~~~~~
Language: Java


public class Main {
    public static void main(String[] args) throws FileNotFoundException {

//    	File file = new File("src/in.txt");

        //コード
//    	Scanner sc = new Scanner(file);
    	Scanner sc = new Scanner(System.in);

    	int N = sc.nextInt();

    	String s = String.valueOf(N);

    	boolean flag = s.contains("7");

    	if(flag) {
    		System.out.println("Yes");
    	} else {
    		System.out.println("No");
    	}


    }
}

Compiler output:
Main.java:3: error: cannot find symbol
    public static void main(String[] args) throws FileNotFoundException {
                                                  ^
  symbol:   class FileNotFoundException
  location: class Main
Main.java:9: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	^
  symbol:   class Scanner
  location: class Main
Main.java:9: error: cannot find symbol
    	Scanner sc = new Scanner(System.in);
    	                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

import java.util.Scanner;
public class MAin {

	public static void main(String[] args) {

	//入力の読み込み処理
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();

		//Nの各桁数だけ取り出す
		int a = N % 10;  //1の位
		int b = N / 100;  //100の位
		int c = (N - a - b*100) / 10;  //10の位

	//各桁数の確認
		//System.out.println(a);
		//System.out.println(b);
		//System.out.println(c);

	//if文で処理を決める
		if(a == 7 || b == 7 || c == 7) {
			System.out.print("Yes");
		}
		else {
		System.out.print("No");
		}
	}
}


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


import java.util.Scanner;

public class Main {



	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scan = new Scanner(System.in);

		String N = scan.next();

      	if(N.length==3)	
        {
        	
          if(N.contains("7")) {
              System.out.println("YES");
          }
          else {
              System.out.println("NO");
          }
        }


	}
}


Compiler output:
Main.java:15: error: cannot find symbol
      	if(N.length==3)	
      	    ^
  symbol:   variable length
  location: variable N of type String
1 error
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string n;
  cin >> n;
  auto pos = n.find("7");
  if(pos == string(npos)) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: 'npos' was not declared in this scope; did you mean 'pos'?
    9 |   if(pos == string(npos)) {
      |                    ^~~~
      |                    pos
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {
  string n;
  cin >> n;
  auto pos = n.find("7");
  if(pos == npos) {
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}


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

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(char(n[0]) == "7" || char(n[1]) == "7" || char(n[2]) == "7") {
      |      ~~~~~~~~~~~^~~~~~
a.cc:8:38: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(char(n[0]) == "7" || char(n[1]) == "7" || char(n[2]) == "7") {
      |                           ~~~~~~~~~~~^~~~~~
a.cc:8:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(char(n[0]) == "7" || char(n[1]) == "7" || char(n[2]) == "7") {
      |                                                ~~~~~~~~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(n[0] == "7" || n[1] == "7" || n[2] == "7" ||) {
a.cc:8:26: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(n[0] == "7" || n[1] == "7" || n[2] == "7" ||) {
a.cc:8:41: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |   if(n[0] == "7" || n[1] == "7" || n[2] == "7" ||) {
a.cc:8:50: error: expected primary-expression before ')' token
    8 |   if(n[0] == "7" || n[1] == "7" || n[2] == "7" ||) {
      |                                                  ^
Language: C

#include <stdio.h>
int main(void)
{
	int num, i, j, k, flag;
	char s[4001] = { 0 };
	long long int rn = 0, gn = 0, bn = 0, ans = 0;
	scanf("%d", &num);
	scanf("%s", s);
	for (i = 0; i < num; i++) {
		if (s[i] == 'R')
			rn++;
		else if (s[i] == 'G')
			gn++;
		else if (s[i] == 'B')
			bn++;
	}
	ans = rn * gn * bn;
 
	for (i = 0; i < num; i++) {
        if(1+n*2>num)
          break;
		for (j = i + 1; j < num; j++) {
			if ((j - i)*2 > num)
				break;
			for (k = j + 1; k < num; k++) {
				if ((s[i] != s[j] && s[j] != s[k]) && s[i] != s[k])
					if (j - i == k - j)
						ans--;
            }
        }
    }
			printf("%lld\n", ans);
			return 0;
		}

Compiler output:
main.c: In function 'main':
main.c:20:14: error: 'n' undeclared (first use in this function); did you mean 'bn'?
   20 |         if(1+n*2>num)
      |              ^
      |              bn
main.c:20:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int x;
  int i,j;
  int yes=0;
  scanf("%d",&x);
  if(700<=x && 800>x){
    prinf("Yes");
    yes=yes+1;
  }
  
  for(i=0;10>i;i++){
    for(j=0;10>j;j++){
      if(100*i+70+j==x){
        printf("Yes");
        yes=yes+1;
      }
    }
  }
          
  for(i=0;10>i;i++){
    for(j=0;10>j;j++){
      if(100*i+10*j+7==x){
        printf("Yes");
        yes=yes+1;
      }
    }
  }
  if(yes==0){
    printf("No");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:5: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    8 |     prinf("Yes");
      |     ^~~~~
      |     printf
Language: C++

　#include <stdio.h>

int main(void)
{
  int N;
  int i,flag=0;
    
  do{
    scanf("%d",&N);
  } while(N<100 || N>999);
  
  for(i=1;i<=3;i++){
    if(N % 10 == 7)
      flag = 1;
    N /= 10;
  }
  if(flag == 1)
    puts("Yes");
  else
    puts("No");
  
  return 0;
}

Compiler output:
a.cc:1:1: error: extended character 　 is not valid in an identifier
    1 | 　#include <stdio.h>
      | ^
a.cc:1:3: error: stray '#' in program
    1 | 　#include <stdio.h>
      |   ^
a.cc:1:1: error: '\U00003000' does not name a type
    1 | 　#include <stdio.h>
      | ^~
Language: C

#include<stdio.h>
int main(void){
  
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");
  
  return 0;
6 }

Compiler output:
main.c: In function 'main':
main.c:4:2: error: expected ';' before 'char'
    4 | 2 char s[4];
      |  ^~~~~
      |  ;
main.c:5:2: error: expected ';' before 'scanf'
    5 | 3 scanf("%s",&s);
      |  ^~~~~~
      |  ;
main.c:6:2: error: expected ';' before 'if'
    6 | 4 if(s[0]=='7'||s[1]=='7'||s[2]=='7')
      |  ^~~
      |  ;
main.c:9:2: error: expected ';' before 'else'
    9 | 5 else
      |  ^~~~~
      |  ;
main.c:13:2: error: expected ';' before '}' token
   13 | 6 }
      |  ^~
      |  ;
Language: C

#include<stdio.h>
int main(void){
  
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");
  
  return 0;
6 }

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

#include <stdio.h>

int main(void)
{
  int a,i,s;
  
  scanf("%d", &a);
  
  for(i=0;i<3;i++) {
     if(a%10==7) 
       s=1;
     n=n/10;
  } 
  
  if(s==1)
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

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

#include <stdio.h>

int main(void)
{
  int a, i;
  
  scanf("%d", &a);
   while(a!=0) {
     if(a%10=0)
       i=1;
     a = a/10;
   }
  
  if(s==1)
    printf("Yes");
  else
    printf("No");
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: lvalue required as left operand of assignment
    9 |      if(a%10=0)
      |         ~^~~
a.cc:14:6: error: 's' was not declared in this scope
   14 |   if(s==1)
      |      ^
Language: C

#include <stdio.h>

int main(void)
{
  	int N=0;
  	int N1=0,N2=0,N3=0;
  
  	scanf("%d",&N);
  	N1=N/100;
  	
  	while(N<100){
    N2=N-100;
    N=N2;
    }
  	N2=N/10;
  
  	while(N<10){
    N3=N-10;
    N=N3;
    }
  	N3=N;
  
  	if(N1==7){
    puts("yes"):
    }else if(N2=7){
    puts("yes");
    }else if(N3=7){
    puts("yea");
    }else{
    puts("no");
    }
  
  	return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:24:16: error: expected ';' before ':' token
   24 |     puts("yes"):
      |                ^
      |                ;
Language: C

#include<stdio.h>
int main (void){
  int N,i,CHECK = 0;
  scanf("%d",&N);
  for(i=0;i<3,i++){
    if(N%10 == 7)
      CHECK = 1;
    N = N/10;
  }
  if(CHECK == 1)
    printf("Yes");
  else
    printf("No");
}


Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |   for(i=0;i<3,i++){
      |                  ^
      |                  ;
Language: C

#include<stdio.h>
int main ()void{
  int N,i,CHECK = 0;
  scanf("%d",&N);
  for(i=0;i<3,i++){
    if(N%10 == 7)
      CHECK = 1;
    N = N/10;
  }
  if(CHECK == 1)
    printf("Yes");
  else
    printf("No");
}

Compiler output:
main.c: In function 'main':
main.c:2:16: error: expected identifier or '(' before '{' token
    2 | int main ()void{
      |                ^
main.c:15: error: expected '{' at end of input
Language: C++

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

int main(){
  int n;
  cin>>n;
  n = std::to_string(n);
  for (auto x : n){
    if (x=='7'){
      cout<<"Yes";
      return 0;
    }
  }
  cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:21: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
    7 |   n = std::to_string(n);
      |       ~~~~~~~~~~~~~~^~~
      |                     |
      |                     std::string {aka std::__cxx11::basic_string<char>}
a.cc:8:17: error: 'begin' was not declared in this scope
    8 |   for (auto x : n){
      |                 ^
a.cc:8:17: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166,
                 from a.cc:1:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:8:17: error: 'end' was not declared in this scope
    8 |   for (auto x : n){
      |                 ^
a.cc:8:17: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: break statement not within loop or switch
    9 |     break;
      |     ^~~~~
a.cc:13:5: error: break statement not within loop or switch
   13 |     break;
      |     ^~~~~
a.cc:17:5: error: break statement not within loop or switch
   17 |     break;
      |     ^~~~~
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
 Scanner eneter = new Scanner(System.in);
  int n = enter.nextInt();
  String s = String.valueOf(n);
  
  if(s.contains(7)){
    Systen.out.println("Yes");
  }
  else{
    System.out.println("No");
  }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
  int n = enter.nextInt();
          ^
  symbol:   variable enter
  location: class Main
Main.java:8: error: incompatible types: int cannot be converted to CharSequence
  if(s.contains(7)){
                ^
Main.java:9: error: package Systen does not exist
    Systen.out.println("Yes");
          ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: Java

import java.util.Scanner;
public class Main{
  public static void main(String args[]){
 Scanner eneter = new Scanner(System.in);
  int n = enter.nextInt();
  String s = String.valueOf(n);
  
  if(s.charAt(0) !=7 || s.charAt(1) !=7 || s.charAt(2) != 7){
    Systen.out.println("No");
  }
  else{
    System.out.println("Yes");
  }
  }
}

Compiler output:
Main.java:5: error: cannot find symbol
  int n = enter.nextInt();
          ^
  symbol:   variable enter
  location: class Main
Main.java:9: error: package Systen does not exist
    Systen.out.println("No");
          ^
2 errors
Language: Java

import java.util.Scanner;
public class Main{
 Scanner eneter = new Scanner(System.in);
  int n = enter.nextInt();
  String s = String.valueOf(n);
  
  if(s.charAt(0) !=7 || s.charAt(1) !=7 || s.charAt(2) != 7){
    Systen.out.println("No");
  }
  else{
    System.out.println("Yes");
  }
  
  
  
  
  
}

Compiler output:
Main.java:7: error: illegal start of type
  if(s.charAt(0) !=7 || s.charAt(1) !=7 || s.charAt(2) != 7){
  ^
Main.java:7: error: <identifier> expected
  if(s.charAt(0) !=7 || s.charAt(1) !=7 || s.charAt(2) != 7){
             ^
Main.java:7: error: illegal start of type
  if(s.charAt(0) !=7 || s.charAt(1) !=7 || s.charAt(2) != 7){
              ^
Main.java:10: error: illegal start of type
  else{
  ^
4 errors
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |     if(A.at(i)==7){
      |          ^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'N' was not declared in this scope
    8 |   for(int i=0;i<N;i++){
      |                 ^
a.cc:9:10: error: request for member 'at' in 'A', which is of non-class type 'int'
    9 |     if(A.at(i)==7){
      |          ^~
Language: C++


#define rep(i, N) for(int i = 0;i < N;i++)
typedef long long ll;

using namespace std;

int main(void) {
	string N;
	cin >> N;
	bool flag = false;
	for (char x : N) {
		if (x == '7') {
			flag = true;
			break;
		}
	}

	cout << (flag ? "Yes" : "No") << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string N;
      |         ^~~~~~
a.cc:1:1: note: 'std::string' is defined in header '<string>'; this is probably fixable by adding '#include <string>'
  +++ |+#include <string>
    1 | 
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> N;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | 
a.cc:9:16: error: 'N' was not declared in this scope
    9 |         cin >> N;
      |                ^
a.cc:18:9: error: 'cout' was not declared in this scope
   18 |         cout << (flag ? "Yes" : "No") << endl;
      |         ^~~~
a.cc:18:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:42: error: 'endl' was not declared in this scope
   18 |         cout << (flag ? "Yes" : "No") << endl;
      |                                          ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 |
Language: C++

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

int main(){
    string s;
  cin >> s;
  bool flag = false;
  for(int i = 0;i < 3;i++){
    if(s[i] == '7'){
      flag = true;
      break;
    }
    if(flag){
      cout << "Yes" << endl;
    }else{
    cout << "No" << endl;
    }
}

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
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<n;i++)
#define all(x) (x).begin(),(x).end()
#define cyes cout<<"YES"<<endl
#define cno cout<<"NO"<<endl
#define sp <<" "<<
#define cst(x) cout<<fixed<<setprecision(x)
#define pi 3.14159265359
#define mod 1000000007
using namespace std;
using ll = long long;
using ld = long double;
using Graph = vector<vector<int>>;
using que_a = priority_queue<int, vector<int>, greater<int> >;
using que_d = priority_queue<int>;
using pint = pair<int,int>;
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; }


int main(){

    string num; cin >> num;
  	bool ex = false;
  	rep(i,num.size()) if(num.at(i) == '7') ex = true;
  	ex? cout<< "Yes"; : cout << "No";
  	cout << endl;
    return 0;   

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: expected ':' before ';' token
   26 |         ex? cout<< "Yes"; : cout << "No";
      |                         ^
      |                         :
a.cc:26:25: error: expected primary-expression before ';' token
a.cc:26:27: error: expected primary-expression before ':' token
   26 |         ex? cout<< "Yes"; : cout << "No";
      |                           ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for(int i=0;i<n;i++)
#define all(x) (x).begin(),(x).end()
#define cyes cout<<"YES"<<endl
#define cno cout<<"NO"<<endl
#define sp <<" "<<
#define cst(x) cout<<fixed<<setprecision(x)
#define pi 3.14159265359
#define mod 1000000007
using namespace std;
using ll = long long;
using ld = long double;
using Graph = vector<vector<int>>;
using que_a = priority_queue<int, vector<int>, greater<int> >;
using que_d = priority_queue<int>;
using pint = pair<int,int>;
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; }


int main(){

    string num; cin >> num;
  	bool ex = false;
  	rep(i,num.size()) if(num.at(i) = '7') ex = true;
  	ex? cout<< "Yes"; : cout << "No";
  	cout << endl;
    return 0;   

}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:25: error: expected ':' before ';' token
   26 |         ex? cout<< "Yes"; : cout << "No";
      |                         ^
      |                         :
a.cc:26:25: error: expected primary-expression before ';' token
a.cc:26:27: error: expected primary-expression before ':' token
   26 |         ex? cout<< "Yes"; : cout << "No";
      |                           ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:21: error: 'emdl' was not declared in this scope
   16 |     cout << "No" << emdl;
      |                     ^~~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  bool fg = false;
  for (int i = 0; i < 2; i++) {
    n %= 10;
  	if (n == 7) {
      fg = true;
    }
  }
  if (fg == true){
    cout << "Yes" << endl;
  } else { cout << "No" << endl;}
   

Compiler output:
a.cc: In function 'int main()':
a.cc:17:34: error: expected '}' at end of input
   17 |   } else { cout << "No" << endl;}
      |                                  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

clude<bits/stdc++.h>
using namespace std;
int main()
{
         string a;
         cin>>a;
         int c=0,i;
         for(i=0;i<a.size();i++)
        {
           if(a[i]=='7') c++;
        }
 
         if(c>0) cout<<"Yes"<<endl;
         else cout<<"No"<<endl;
}

Compiler output:
a.cc:1:1: error: 'clude' does not name a type
    1 | clude<bits/stdc++.h>
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:10: error: 'string' was not declared in this scope
    5 |          string a;
      |          ^~~~~~
a.cc:6:10: error: 'cin' was not declared in this scope
    6 |          cin>>a;
      |          ^~~
a.cc:6:15: error: 'a' was not declared in this scope
    6 |          cin>>a;
      |               ^
a.cc:13:18: error: 'cout' was not declared in this scope
   13 |          if(c>0) cout<<"Yes"<<endl;
      |                  ^~~~
a.cc:13:31: error: 'endl' was not declared in this scope
   13 |          if(c>0) cout<<"Yes"<<endl;
      |                               ^~~~
a.cc:14:15: error: 'cout' was not declared in this scope
   14 |          else cout<<"No"<<endl;
      |               ^~~~
a.cc:14:27: error: 'endl' was not declared in this scope
   14 |          else cout<<"No"<<endl;
      |                           ^~~~
Language: C++

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

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

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define size_of_array(array) (sizeof(array)/sizeof(array[0]))
#define max 100005
using ll =long long;
using namespace std;
using Graph=vector<vector<int>>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected identifier before numeric constant
   10 |     char[3] s;
      |          ^
a.cc:10:10: error: expected ']' before numeric constant
   10 |     char[3] s;
      |          ^
      |          ]
a.cc:10:9: error: structured binding declaration cannot have type 'char'
   10 |     char[3] s;
      |         ^
a.cc:10:9: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:10:9: error: empty structured binding declaration
a.cc:10:13: error: expected initializer before 's'
   10 |     char[3] s;
      |             ^
a.cc:11:10: error: 's' was not declared in this scope
   11 |     cin>>s;
      |          ^
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:21: error: lvalue required as increment operand
    6 |   for(int i =0;i <3i++){
      |                     ^~
main.c:6:23: error: expected ';' before ')' token
    6 |   for(int i =0;i <3i++){
      |                       ^
      |                       ;
Language: Java

import java.util.Scanner;
class Question1{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();
    check_include_7(number);
  }
  static void check_include_7(int number){
    if(number/100 == 7 || number % 10 == 7 || ((number % 100<=79)&&( number % 100 >= 70))){
      System.out.println('YES');
    }else{
      System.out.println('NO');
    }
  }
}


Compiler output:
Main.java:10: error: unclosed character literal
      System.out.println('YES');
                         ^
Main.java:10: error: unclosed character literal
      System.out.println('YES');
                             ^
Main.java:10: error: not a statement
      System.out.println('YES');
                           ^
Main.java:12: error: unclosed character literal
      System.out.println('NO');
                         ^
Main.java:12: error: unclosed character literal
      System.out.println('NO');
                            ^
Main.java:12: error: not a statement
      System.out.println('NO');
                           ^
6 errors
Language: C++

#include<bits/stdc++.h>

using namespace std;
mt19937_64 rng(58);

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    string n;
    cin >> n;
    for (char x : n) {
        if (x == '7') {
            cout << "Yes\n";
            return;
        }
    }
    cout << "No\n";
}

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

import java.util.Scanner;
class Question1{
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    int number = scanner.nextInt();
    check_include_7(number);
  }
  void check_include_7(int number){
    if(number/100 == 7 || number % 10 == 7 || ((number % 100<=79)&&( number % 100 >= 70))){
      System.out.println("YES");
    }else{
      System.out.println("NO");
    }
  }
}

Compiler output:
Main.java:6: error: non-static method check_include_7(int) cannot be referenced from a static context
    check_include_7(number);
    ^
1 error
Language: C

#include<stdio.h>

int main(void){
 	
  char line[4];
  
  scanf("%s",line);
  for(int i = 0;i < 3;i ++){
   	if(char[i] == '7'){
     	printf("Yes");
      	return 0;
    }
  }
  printf("No");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected expression before 'char'
    9 |         if(char[i] == '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:8:9: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |   if (N.at(0) == 7) {
      |         ^~
a.cc:12:14: error: request for member 'at' in 'N', which is of non-class type 'int'
   12 |   else if (N.at(1) == 7) {
      |              ^~
a.cc:16:14: error: request for member 'at' in 'N', which is of non-class type 'int'
   16 |   else if (N.at(2) == 7) {
      |              ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: request for member 'size' in 'N', which is of non-class type 'int'
    8 |   for(int i = 0; i < N.size(); i++) {
      |                        ^~~~
a.cc:9:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |     if(N.at(i) == 7) {
      |          ^~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    9 |     if(N.at(i) == 7) {
      |          ^~
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 pii = pair<int,int>;

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

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

#include <iostream>

using namespace std;

int main()
{
    int n,ans=false;
    cin>>n;
    if(m%10==7)ans=true;
    n/=10;
    if(m%10==7)ans=true;
    n/=10;
    if(m%10==7)ans=true;
    if(ans==true)
    {
        cout<<"Yes"<<endl;
    }
    else{
        cout<<"No"<<endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'm' was not declared in this scope
    9 |     if(m%10==7)ans=true;
      |        ^
a.cc:11:8: error: 'm' was not declared in this scope
   11 |     if(m%10==7)ans=true;
      |        ^
a.cc:13:8: error: 'm' was not declared in this scope
   13 |     if(m%10==7)ans=true;
      |        ^
Language: C++

#include <iostream>
#include <string>

int main()
{
  string N;
  cin >> N;
  
  int have7 = str.find("7");
  
  if (have7 == std::string::npos){
    std::cout<< "No" << std::endl;
  }else{
    std::cout<< "Yes" << std::endl;
  }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'string' was not declared in this scope
    6 |   string N;
      |   ^~~~~~
a.cc:6:3: note: suggested alternatives:
In file included from /usr/include/c++/14/iosfwd:41,
                 from /usr/include/c++/14/ios:40,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/stringfwd.h:77:33: note:   'std::string'
   77 |   typedef basic_string<char>    string;
      |                                 ^~~~~~
In file included from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44:
/usr/include/c++/14/string:76:11: note:   'std::pmr::string'
   76 |     using string    = basic_string<char>;
      |           ^~~~~~
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> N;
      |   ^~~
      |   std::cin
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:10: error: 'N' was not declared in this scope
    7 |   cin >> N;
      |          ^
a.cc:9:15: error: 'str' was not declared in this scope; did you mean 'std'?
    9 |   int have7 = str.find("7");
      |               ^~~
      |               std
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   Integer oi = new Integer(N);
	String str = oi.toString();

   if((str.contains("7")){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}


Compiler output:
Main.java:10: error: ')' expected
   if((str.contains("7")){
                         ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   Integer oi = new Integer(N);
	String str = oi.toString();

   if(str.charAt(0)="7"||str.charAt(1)="7"||str.charAt(2)="7"){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}


Compiler output:
Main.java:7: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
   Integer oi = new Integer(N);
                ^
Main.java:10: error: unexpected type
   if(str.charAt(0)="7"||str.charAt(1)="7"||str.charAt(2)="7"){
                ^
  required: variable
  found:    value
Main.java:10: error: bad operand types for binary operator '||'
   if(str.charAt(0)="7"||str.charAt(1)="7"||str.charAt(2)="7"){
                       ^
  first type:  String
  second type: char
Main.java:10: error: bad operand types for binary operator '||'
   if(str.charAt(0)="7"||str.charAt(1)="7"||str.charAt(2)="7"){
                                          ^
  first type:  String
  second type: char
3 errors
1 warning
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();
   Integer oi = new Integer(N);
	String str = oi.toString();

   if(str.charAt(0)=="7"||str.charAt(1)=="7"||str.charAt(2)=="7"){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}


Compiler output:
Main.java:7: warning: [removal] Integer(int) in Integer has been deprecated and marked for removal
   Integer oi = new Integer(N);
                ^
Main.java:10: error: bad operand types for binary operator '=='
   if(str.charAt(0)=="7"||str.charAt(1)=="7"||str.charAt(2)=="7"){
                   ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
   if(str.charAt(0)=="7"||str.charAt(1)=="7"||str.charAt(2)=="7"){
                                       ^
  first type:  char
  second type: String
Main.java:10: error: bad operand types for binary operator '=='
   if(str.charAt(0)=="7"||str.charAt(1)=="7"||str.charAt(2)=="7"){
                                                           ^
  first type:  char
  second type: String
3 errors
1 warning
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();

   if(N.charAt(0)=7||N.charAt(1)=7||N.charAt(2)=7){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}


Compiler output:
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)=7||N.charAt(1)=7||N.charAt(2)=7){
       ^
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)=7||N.charAt(1)=7||N.charAt(2)=7){
                      ^
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)=7||N.charAt(1)=7||N.charAt(2)=7){
                                     ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int N = sc.nextInt();

   if(N.charAt(0)==7||N.charAt(1)==7||N.charAt(2)==7){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}

Compiler output:
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)==7||N.charAt(1)==7||N.charAt(2)==7){
       ^
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)==7||N.charAt(1)==7||N.charAt(2)==7){
                       ^
Main.java:8: error: int cannot be dereferenced
   if(N.charAt(0)==7||N.charAt(1)==7||N.charAt(2)==7){
                                       ^
3 errors
Language: C++

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

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

  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'str' was not declared in this scope; did you mean 'std'?
    8 |   if (str.at(1 || 2 || 3) == 7) {
      |       ^~~
      |       std
Language: C++

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

string x;

int main() {
	cin>>x;
	if(x[0]=='7' or x[1]=='7' x[2]=='7') cout<<"Yes\n";
    else cout<<"No\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ')' before 'x'
    8 |         if(x[0]=='7' or x[1]=='7' x[2]=='7') cout<<"Yes\n";
      |           ~                      ^~
      |                                  )
Language: C++

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

int main() {
	string S;
  	cin >> S;
  	cout << (contains(S.begin(), S.end(), '7') ? "Yes" : "No") << '\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'contains' was not declared in this scope
    7 |         cout << (contains(S.begin(), S.end(), '7') ? "Yes" : "No") << '\n';
      |                  ^~~~~~~~
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

  // rep(i, 3) {
  //   if (n.at(i) == '7') {
  //     cout << "Yes" << endl;
  //     return 0;
  //     }
  //   }
  
  // 文字列検索
  if (n.find("7" != string::npos)) {
    cout << "Yes" << endl;
  ) else {
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:18: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |   if (n.find("7" != string::npos)) {
      |              ~~~~^~~~~~~~~~~~~~~
a.cc:21:3: error: expected primary-expression before ')' token
   21 |   ) else {
      |   ^
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
  string n;
  rep(i, 3) {
    cin >> n[i];
    if (n[i] == 7) {
      cout << "Yes" << endl;
      }
      else {
        cout << "No" << endl;
      }
    }


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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main() {
  string n;
  cin >> n;
  rep(i, 3) {
    if (n.at(i) != 7) {
       {
        cout << "No" << endl;
      } else {
        cout << "Yes" << endl;
        return 0;
      }
       
      }
    }
};

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected '}' before 'else'
   14 |       } else {
      |         ^~~~
a.cc:11:23: note: to match this '{'
   11 |     if (n.at(i) != 7) {
      |                       ^
a.cc: At global scope:
a.cc:21:1: error: expected declaration before '}' token
   21 | };
      | ^
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;
  cin >> n;
  rep(i, 3) {
    if (n.at(i) = 7) {
      cout << "Yes" << endl;
  cout << "No" << endl;
    } 
    }
  return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     if (n.at(i) = 7) {
      |           ^~
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;
  cin >> n;
  for (int i = 0; i < 3; i++) {
    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:11:13: error: invalid types 'int[int]' for array subscript
   11 |     cin >> n[i];
      |             ^
a.cc:12:10: error: invalid types 'int[int]' for array subscript
   12 |     if (n[i] = 7) {
      |          ^
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;
  cin >> n;
  for (int i = 0; i < n.size(); i++) {
    cin >> n.at(i);
    if (n.at(i) = 7) {
    cout << "Yes" << endl;
  }} cout << "No" << endl;
  return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: request for member 'size' in 'n', which is of non-class type 'int'
   10 |   for (int i = 0; i < n.size(); i++) {
      |                         ^~~~
a.cc:11:14: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     cin >> n.at(i);
      |              ^~
a.cc:12:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   12 |     if (n.at(i) = 7) {
      |           ^~
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;
  cin >> n;
  for (int i = 0; i < n.size(); i++) {
    cin >> n.at(i);
    if (n.at(i) = 7) {
    cout << "Yes" << endl;
  } cout << "No" << endl;
  return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:10:25: error: request for member 'size' in 'n', which is of non-class type 'int'
   10 |   for (int i = 0; i < n.size(); i++) {
      |                         ^~~~
a.cc:11:14: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     cin >> n.at(i);
      |              ^~
a.cc:12:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   12 |     if (n.at(i) = 7) {
      |           ^~
a.cc:16:3: error: expected '}' at end of input
   16 | };
      |   ^
a.cc:7:12: note: to match this '{'
    7 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:19: error: invalid conversion from 'const char*' to '__gnu_cxx::__alloc_traits<std::allocator<char>, char>::value_type' {aka 'char'} [-fpermissive]
   11 |     if (n.at(i) = "7")
      |                   ^~~
      |                   |
      |                   const char*
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;
  for (int i = 0; i < n.size(); i++) {
    cin >> n.at(i);
    if (n.at(i) = 7) 
    cout << "Yes" << endl;
  } cout << "No" << endl;
  return 0;
};

Compiler output:
a.cc: In function 'int main()':
a.cc:9:25: error: request for member 'size' in 'n', which is of non-class type 'int'
    9 |   for (int i = 0; i < n.size(); i++) {
      |                         ^~~~
a.cc:10:14: error: request for member 'at' in 'n', which is of non-class type 'int'
   10 |     cin >> n.at(i);
      |              ^~
a.cc:11:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   11 |     if (n.at(i) = 7)
      |           ^~