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

#include <stdio.h>
int main(void){
int N[3]
  scanf("%s", &N);
  if (N[0]=='7'||N[1]=='7'||N[2]=='7'){
    printf("Yes\n");
  }
  else 
    printf ("No\n");
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |   scanf("%s", &N);
      |   ^~~~~
main.c:4:16: error: 'N' undeclared (first use in this function)
    4 |   scanf("%s", &N);
      |                ^
main.c:4:16: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: lvalue required as left operand of assignment
    6 |     if(k%7=0){
      |           ^
main.c:7:7: error: 'flag' undeclared (first use in this function)
    7 |       flag=1;
      |       ^~~~
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:6:11: error: lvalue required as left operand of assignment
    6 |     if(k%7=0){
      |           ^
main.c:7:7: error: 'flag' undeclared (first use in this function)
    7 |       flag=1;
      |       ^~~~
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namepsace std;

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

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namepsace'
    3 | using namepsace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> n;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout << "Yes" << endl;
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:11:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |       cout << "Yes" << endl;
      |                        ^~~~
      |                        std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << "No" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << "No" << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: Java

//package com.company;

import java.io.*;
import java.util.*;

//public class Giveaway {
    public class Main {
//    public static boolean getSum(int n)
    {
        int sum = 0;
    
        while (n != 0)
        {
            sum = n % 10;
            n = n/10;
            if(sum==7)
                return true;
        }
    
        return false;
    }
    public static void main(String[] args) {

        out = new PrintWriter(new BufferedOutputStream(System.out));
        MyScanner sc = new MyScanner();//start
        out.println(getSum(sc.nextInt())?"Yes":"No");
        out.close();
    }


    //-----------PrintWriter for faster output---------------------------------
    public static PrintWriter out;

    //-----------MyScanner class for faster input----------
    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
//--------------------------------------------------------

}


Compiler output:
Main.java:12: error: cannot find symbol
        while (n != 0)
               ^
  symbol:   variable n
  location: class Main
Main.java:14: error: cannot find symbol
            sum = n % 10;
                  ^
  symbol:   variable n
  location: class Main
Main.java:15: error: cannot find symbol
            n = n/10;
            ^
  symbol:   variable n
  location: class Main
Main.java:15: error: cannot find symbol
            n = n/10;
                ^
  symbol:   variable n
  location: class Main
Main.java:17: error: return outside method
                return true;
                ^
Main.java:20: error: return outside method
        return false;
        ^
Main.java:26: error: cannot find symbol
        out.println(getSum(sc.nextInt())?"Yes":"No");
                    ^
  symbol:   method getSum(int)
  location: class Main
7 errors
Language: Java

//package com.company;

import java.io.*;
import java.util.*;

public class Giveaway {
    public class Main {
//    public static boolean getSum(int n)
    {
        int sum = 0;
    
        while (n != 0)
        {
            sum = n % 10;
            n = n/10;
            if(sum==7)
                return true;
        }
    
        return false;
    }
    public static void main(String[] args) {

        out = new PrintWriter(new BufferedOutputStream(System.out));
        MyScanner sc = new MyScanner();//start
        out.println(getSum(sc.nextInt())?"Yes":"No");
        out.close();
    }


    //-----------PrintWriter for faster output---------------------------------
    public static PrintWriter out;

    //-----------MyScanner class for faster input----------
    public static class MyScanner {
        BufferedReader br;
        StringTokenizer st;

        public MyScanner() {
            br = new BufferedReader(new InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }

    }
//--------------------------------------------------------

}


Compiler output:
Main.java:79: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include<iostream.h>
 
using namespace std;
#define newl '\n'

void solve(){
  int n ;
  cin >> n;
  int flag = 0;
  while( n != 0){
    int q = n % 10;
    if(q == 7){
      flag = 1;
    }
    n /= 10;
  }
  if(flag == 0){
    cout<< "No" <<endl;
  }
  else{
    cout<< "Yes" <<endl;
  }

}


int main(){
  
  solve();

}

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

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

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

    vector<int> a(n);
    rep(i,n) {
        if (s[i] == 'R') a[i] = 0;
        if (s[i] == 'G') a[i] = 1;
        if (s[i] == 'B') a[i] = 2;
    }

    vector<ll> cnt(3);
    rep(i,n) cnt[a[i]]++;
    ll ans = 1;
    rep(i,3) ans *= cnt[i];
    rep(i,m)
    rep(j,n)rep(i,j) {
        int k = j + (j-i);
        if (k < n) {
            if (a[i] == a[j]) continue;
            if (a[i] == a[k]) continue;
            if (a[k] == a[j]) continue;
            ans--;
        }
    }

	cout << ans << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:11: error: 'm' was not declared in this scope
   23 |     rep(i,m)
      |           ^
a.cc:2:37: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0; i<(n); i++)
      |                                     ^
Language: C++

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

int main () {
    int n;
	cin >> s;
    if (s.find("7") != string::npos) cout << "Yes" << endl;
    else cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: 's' was not declared in this scope
    8 |         cin >> s;
      |                ^
Language: C++

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

int main () {
    string s;
	cin >> s;
    if (s.find("7") != string::npos) cout << "Yes" << endl;
    else cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'long'
    4 | using long long ll;
      |       ^~~~
Language: C++

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

int main () {
    int n;
	cin >> s;
    if (s.find("7") != string::npos) cout << "Yes" << endl;
    else cout << "No" << endl;

	return 0;
}


Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'long'
    4 | using long long ll;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:8:16: error: 's' was not declared in this scope
    8 |         cin >> s;
      |                ^
Language: C++

#include<iostream>
using namespace std;
 
int main() {
    char n[4];
    for(int i=0;i<4;i++){cin>>n[i];}
  for(j=0;j<4;j++){
        if (n[j] == '7') {
            cout<<"yes";
            return 0;
        }
    }
    cout<<"No";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: 'j' was not declared in this scope
    7 |   for(j=0;j<4;j++){
      |       ^
Language: C++

#include<iostream>
#include<string>
int main() {
String str;
cin>>str;
	
		if(str.find(7) {
			cout<<"yes";

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:1: error: 'String' was not declared in this scope
    4 | String str;
      | ^~~~~~
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | cin>>str;
      | ^~~
      | std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:5:6: error: 'str' was not declared in this scope; did you mean 'std'?
    5 | cin>>str;
      |      ^~~
      |      std
a.cc:11:17: error: expected primary-expression before 'else'
   11 |                 else {
      |                 ^~~~
a.cc:10:18: error: expected ')' before 'else'
   10 |                 }
      |                  ^
      |                  )
   11 |                 else {
      |                 ~~~~
a.cc:7:19: note: to match this '('
    7 |                 if(str.find(7) {
      |                   ^
Language: C++

#include<iostream>
#include<vector>
#include<string>

using namespace std;

int main(void){
	
  int n;
  int flag = 0;
  cin >> n;
  for(int i = 0; i < 3; i++){
    if(n%10 == 7)flag++;
    n /= 10;
  }
  
  if(flag == 0)cout << Yes;
  else cout << No;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:24: error: 'Yes' was not declared in this scope
   17 |   if(flag == 0)cout << Yes;
      |                        ^~~
a.cc:18:16: error: 'No' was not declared in this scope
   18 |   else cout << No;
      |                ^~
Language: C

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

int main(void){
 char num[3]
   
  scanf("%s",num);
  if(num[0] == '7' || num[1] == '7' || num[2] == '7'){
  	printf("Yes");
  }else{
  	printf("No");
  }
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%s",num);
      |   ^~~~~
main.c:7:14: error: 'num' undeclared (first use in this function)
    7 |   scanf("%s",num);
      |              ^~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

int main(void){
 char num[3]
   
  scanf("%s",num);
  if(num[0] == '7' || num[1] == '7' || num[2] == '7'){
  	prinf("Yes");
  }else{
  	printf("No");
  }
  
  return 0
}


Compiler output:
main.c: In function 'main':
main.c:7:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    7 |   scanf("%s",num);
      |   ^~~~~
main.c:7:14: error: 'num' undeclared (first use in this function)
    7 |   scanf("%s",num);
      |              ^~~
main.c:7:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:9: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    9 |         prinf("Yes");
      |         ^~~~~
      |         printf
main.c:14:11: error: expected ';' before '}' token
   14 |   return 0
      |           ^
      |           ;
   15 | }
      | ~
Language: C

int main(void){
 char num[3]
   
  scanf("%s",num);
  if(num[0] == '7' || num[1] == '7' || num[2] == '7'){
  	prinf("Yes");
  }else{
  	printf("No");
  }
  
  return 0
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    4 |   scanf("%s",num);
      |   ^~~~~
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%s",num);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:4:14: error: 'num' undeclared (first use in this function)
    4 |   scanf("%s",num);
      |              ^~~
main.c:4:14: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:9: error: implicit declaration of function 'prinf' [-Wimplicit-function-declaration]
    6 |         prinf("Yes");
      |         ^~~~~
main.c:8:9: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    8 |         printf("No");
      |         ^~~~~~
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:8:9: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:8:9: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:11:11: error: expected ';' before '}' token
   11 |   return 0
      |           ^
      |           ;
   12 | }
      | ~
Language: C++

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

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







}

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

#include<stdio.h>
int main(void)
{
    char N[4];
    int i;
  
    scanf("%s",N);
  
    for(i=0;i<3;i++){
      if(S[i]=='7'){
        printf("Yes\n");
        return 0;
      }
    }
  
    printf("No\n");
    
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:10: error: 'S' undeclared (first use in this function)
   10 |       if(S[i]=='7'){
      |          ^
main.c:10:10: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void)
{
    char N[4];
  
    scanf("%s",S);
  
    for(i=0;i<3;i++){
      if(S[i]=='7'){
        printf("Yes\n");
        return 0;
      }
    }
  
    printf("No\n");
    
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:16: error: 'S' undeclared (first use in this function)
    6 |     scanf("%s",S);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:9: error: 'i' undeclared (first use in this function)
    8 |     for(i=0;i<3;i++){
      |         ^
Language: C++

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

int main() {
   int N;
   cin >> N;
   int a, b, c;
   N = 100 * a + 10 * b + c;

   if(a == 7) {
      cout << "Yes" << endl;
      return 0;
   if(b == 7) {
      cout << "Yes" << endl;
      return 0;
   if(c == 7) {
      cout << "Yes" << endl;
      return 0;
   }

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

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

#include<iostream>

int gcd(int a,int b){
    int c=1;
    if(a<b){
        c=a;a=b;b=c;
    }
    while(c!=0){
        c=a%b;
        a=b;
        b=c;
    }
   return a;
}


int main(){
    
    int k;
    std::cin>>kx=0;
    for(int s=1;s<=s;s++)
        for(int t=1;t<=k;t++)
            for(int u=1;u<=k;u++){
                x=x+gcd(gcd(s,t),u);
            }
    std::cout<<x<<std::endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:15: error: 'kx' was not declared in this scope; did you mean 'k'?
   20 |     std::cin>>kx=0;
      |               ^~
      |               k
a.cc:24:17: error: 'x' was not declared in this scope
   24 |                 x=x+gcd(gcd(s,t),u);
      |                 ^
a.cc:26:16: error: 'x' was not declared in this scope
   26 |     std::cout<<x<<std::endl;
      |                ^
Language: C++

#include<iostream>

int gcd(int a,int b){
    int c=1;
    if(a<b){
        c=a;a=b;b=c;
    }
    while(c!=0){
        c=a%b;
        a=b;
        b=c;
    }
   return a;
}


int main(){
    
    int k;
    std::cin>>k;
    int x=0;
    for(int s=1;i<=s;s++)
        for(int t=1;t<=k;t++)
            for(int u=1;u<=k;u++){
                x=x+gcd(gcd(s,t),u);
            }
    std::cout<<x<<std::endl;
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: request for member 'at' in 'A', which is of non-class type 'int'
    8 |   if(A.at(0)==7||A.at(1)==7||A.at(2)==7){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
      |        ^~
a.cc:8:20: error: request for member 'at' in 'A', which is of non-class type 'int'
    8 |   if(A.at(0)==7||A.at(1)==7||A.at(2)==7){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
      |                    ^~
a.cc:8:32: error: request for member 'at' in 'A', which is of non-class type 'int'
    8 |   if(A.at(0)==7||A.at(1)==7||A.at(2)==7){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}
      |                                ^~
Language: C

#include <stdio.h>
int main(void){
    int N, a, b, c, cnt = 0;
    
    scanf("%d", &N);
    
    a = n / 100;
    b = n/10;
    c = n%100;
    if(a == 7 || b == 7 || c == 7){
        cnt = cnt + 1;
    }else if(a != 7 && b != 7 && c != 7){
        cnt = cnt - 1;
    }
    if(cnt > 0){
        printf("Yes\n");
    }else if(cnt < 0){
        printf("No\n");
    }
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: 'n' undeclared (first use in this function)
    7 |     a = n / 100;
      |         ^
main.c:7:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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

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

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: lvalue required as left operand of assignment
    8 |   if (N.at(0) = 7 || N.at(1) = 7 || N.at(2) = 7) {
      |                                ~~^~~~~~~~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected initializer before '.' token
    9 |     if (int N.at(i) == 7) {
      |              ^
a.cc:9:14: error: expected ')' before '.' token
    9 |     if (int N.at(i) == 7) {
      |        ~     ^
      |              )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: 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;
  bool abc = false;
  for (int i = 0; i < N.size(); i++) {
    if (N.at(i) == 7) {
      abc =true;
    }
  }
  
  if (abc) {
    cout << "Yes" << endl;
  }
  
  else {
    cout << "No" << endl;
  }
}
    

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

import java.util.*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    String N = sc.next();
    System.out.println(contains("7") ? "Yes" : "No");
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
    System.out.println(contains("7") ? "Yes" : "No");
                       ^
  symbol:   method contains(String)
  location: class Main
1 error
Language: C

#include<stdio.h>
int main(void)
{
	int a,flg;
	flg=0;
	scanf("%d",&a);
	if(a%10==7){
		flg=1;
	}
	a=a/10;
	if(a%10==7){
		flg=1
	}
	a=a/10;
	if(a%10==7){
		flg=1;
	}
	if(flg==1){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ';' before '}' token
   12 |                 flg=1
      |                      ^
      |                      ;
   13 |         }
      |         ~
Language: C

#include<stdio.h>
int main(void)
{
	int a,flg;
	scanf("%d",&a);
	flg=0;
	if(a%10==7){
		flg=1;
	}
	a=a/10;
	if(a%10==7){
		flg=1
	}
	a=a/10;
	if(a%10==7){
		flg=1
	}
	if(flg==1){
		printf("Yes\n");
	}
	else{
		printf("No\n");
	}
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:22: error: expected ';' before '}' token
   12 |                 flg=1
      |                      ^
      |                      ;
   13 |         }
      |         ~             
main.c:16:22: error: expected ';' before '}' token
   16 |                 flg=1
      |                      ^
      |                      ;
   17 |         }
      |         ~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:3:7: error: two or more data types in declaration specifiers
    3 |  char char[4];
      |       ^~~~
main.c:3:11: error: expected identifier or '(' before '[' token
    3 |  char char[4];
      |           ^
main.c:4:13: error: expected expression before 'char'
    4 |  scanf("%s",char);
      |             ^~~~
main.c:5:5: error: expected expression before 'char'
    5 |  if(char[0]=='7'||char[1]=='7'||char[2]=='7')
      |     ^~~~
Language: C++

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

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

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

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

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

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
  String n; cin >> n;
  if (n.find("7")) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'String' was not declared in this scope
    7 |   String n; cin >> n;
      |   ^~~~~~
a.cc:7:20: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |   String n; cin >> n;
      |                    ^
      |                    yn
Language: C

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
typedef long long ll;
 
int main() {
  String n; cin >> n;
  if (n.find("7")) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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

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

int main() {
  int n; cin >> n;
  if (n.find("7")) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

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

#include <stdio.h>
using namespace std;
int main(){
char s[4];
scanf("%s",s);
if(s[0]=='7'||s[1]=='7'||s[2]=='7')puts("Yes");
else puts("No");
return 0;
}

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

#include <bits/stdc++.h>

using namepace std;

int main(){
  
  vector<char> A(3);
  for( int i=0; i<3; i++){
    cin >> A[i];
    if( A[i] == 7 ){
      printf("Yes\n");
      return 0;
    }
  }
      printf("No\n");
      return 0;
}

Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'namepace'
    3 | using namepace std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<char> A(3);
      |   ^~~~~~
a.cc:7:3: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:7:10: error: expected primary-expression before 'char'
    7 |   vector<char> A(3);
      |          ^~~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin >> A[i];
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:12: error: 'A' was not declared in this scope
    9 |     cin >> A[i];
      |            ^
Language: C

#include<stdio.h>
int main()
{
    int N,a,b,c,y,z;
    scanf("%d",&N);
    a=N%10;
    y=N/10;
    b=y%10;
    z=y/10;
    c=z%10;

    if(a==7)
    {
         printf("Yes\n");
     }
     else if (b==7)
    {
         printf("Yes\n");
    }
    else if(c==7)
    {
        printf("Yes\n");
     }
    else
    {
         printf("No\n");
     }
     return 0;

Compiler output:
main.c: In function 'main':
main.c:28:6: error: expected declaration or statement at end of input
   28 |      return 0;
      |      ^~~~~~
Language: C

#include<stdio.h>
int main()
{
     int N,a,b,c,y,z ;
     scanf("%d",&N);
     a=N%10;
     y=N/10;
     b=y%10;
     z=y/10;
     c=z%10;

     if(a==7)
     {
         printf("Yes\n");
     }
     else if (b==7)
     {
         printf("Yes\n");
      }
      else if (c==7)
     {
         printf("Yes\n");
      }
      else
      {
         printf("No\n");
      }
     return 0;

Compiler output:
main.c: In function 'main':
main.c:28:6: error: expected declaration or statement at end of input
   28 |      return 0;
      |      ^~~~~~
Language: C

#include<stdio.h>
int main()
{
    int N,a,b,c,y,z;
    scanf("%d",&N);
    a=N%10;
    y=N/10;
    b=y%10;
    z=y/10;
    c=z%10;

    if (a==7)
    {
         printf("Yes\n");
    }
    else if (b==7)
   {
         printf("Yes\n");
    }
   else if (c==7)
   {
         printf("Yes\n");
   }
  else
   {
        printf("No\n");
    }
 return 0; 

Compiler output:
main.c: In function 'main':
main.c:28:2: error: expected declaration or statement at end of input
   28 |  return 0;
      |  ^~~~~~
Language: C

#include<stdio.h>
int main ()
{
    int N /10 ;
    scanf ("%d",&N) ;   
    int a = N/10;
    int b= N/10 ;
    N=N%10 ;
    a=a%10 ;
    b=b%10 ;
    if (N==7||a==7||b==7)
    {
         printf("Yes\n");
    }
    else 
    {
        printf("No\n");
    }
    return 0 ;
}

Compiler output:
main.c: In function 'main':
main.c:4:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '/' token
    4 |     int N /10 ;
      |           ^
main.c:4:11: error: expected expression before '/' token
main.c:5:18: error: 'N' undeclared (first use in this function)
    5 |     scanf ("%d",&N) ;
      |                  ^
main.c:5:18: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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


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

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

#include <stdio.h>
main()
{
    int N;
    scanf("%d",&N);
    N=N%7;
    if(N contains 7)
    {
         printf("Yes",%d);
    }
    else
    { 
        printf("No",%d);
    }
    return 0;
}

Compiler output:
main.c:2:1: error: return type defaults to 'int' [-Wimplicit-int]
    2 | main()
      | ^~~~
main.c: In function 'main':
main.c:7:9: error: expected ')' before 'contains'
    7 |     if(N contains 7)
      |       ~ ^~~~~~~~~
      |         )
main.c:9:23: error: expected expression before '%' token
    9 |          printf("Yes",%d);
      |                       ^
main.c:13:21: error: expected expression before '%' token
   13 |         printf("No",%d);
      |                     ^
Language: C++

#include<stdio.h>

int main() {
    int N;
    scanf("%d",& N);

   int digits = N;
    if (digits = 7) {
    printf("Yes");
}
   else (digits != 7) {
    printf("No");
    }

    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: expected ';' before '{' token
   11 |    else (digits != 7) {
      |                      ^~
      |                      ;
Language: C++

#include<bits/stdc++.h>
using namespace std ; 
int main
{
int n ; cin >> n ;
int flag = 0 ; 
for(int i = 0 ; i < 3 ; i++)
{
int temp = n % 10 ; 
if(temp == 7)
flag =1 ; 

n = n/10 ; 
}
if(flag) 
cout << "YES" ; 
else 
cout << "NO ; 

}



Compiler output:
a.cc:18:9: warning: missing terminating " character
   18 | cout << "NO ;
      |         ^
a.cc:18:9: error: missing terminating " character
   18 | cout << "NO ;
      |         ^~~~~ 
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main
      |     ^~~~
a.cc:5:1: error: expected primary-expression before 'int'
    5 | int n ; cin >> n ;
      | ^~~
a.cc:5:1: error: expected '}' before 'int'
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
a.cc:5:9: error: 'cin' does not name a type
    5 | int n ; cin >> n ;
      |         ^~~
a.cc:7:1: error: expected unqualified-id before 'for'
    7 | for(int i = 0 ; i < 3 ; i++)
      | ^~~
a.cc:7:17: error: 'i' does not name a type
    7 | for(int i = 0 ; i < 3 ; i++)
      |                 ^
a.cc:7:25: error: 'i' does not name a type
    7 | for(int i = 0 ; i < 3 ; i++)
      |                         ^
a.cc:15:1: error: expected unqualified-id before 'if'
   15 | if(flag)
      | ^~
a.cc:17:1: error: expected unqualified-id before 'else'
   17 | else
      | ^~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     cin >> n;
      |     ^~~
      |     std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |             cout << "Yes\n";
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |     cout << "No\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

import java.util.*;

public class main {
	public static void main(String args[]) {
    	Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
      	for (char c : s.toCharArray()) {
        	if (c == '7') {
            	System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}

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

import java.util.*;

public class main {
	public static void main(string args[]) {
    	Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
      	for (char c : s.toCharArray()) {
        	if (c == '7') {
            	System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
	public static void main(string args[]) {
	                        ^
  symbol:   class string
  location: class main
2 errors
Language: Java

import java.util.*;

public class main {
	public static void main(string args[]) {
    	Scanner sc = new Scanner(System.in);
        String s = sc.nextLine();
      	for (char c : s.toCharArray) {
        	if (c == '7') {
            	System.out.println("Yes");
                return;
            }
        }
        System.out.println("No");
    }
}

Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
Main.java:4: error: cannot find symbol
	public static void main(string args[]) {
	                        ^
  symbol:   class string
  location: class main
Main.java:7: error: cannot find symbol
      	for (char c : s.toCharArray) {
      	               ^
  symbol:   variable toCharArray
  location: variable s of type String
3 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'a' was not declared in this scope
    7 |   a = N/100;
      |   ^
a.cc:8:3: error: 'b' was not declared in this scope
    8 |   b = N/10%10;
      |   ^
a.cc:9:3: error: 'c' was not declared in this scope
    9 |   c = N%10;
      |   ^
a.cc:12:40: error: expected '}' at end of input
   12 |   else{ std::cout << "No" <<std::endl;}
      |                                        ^
a.cc:3:1: note: to match this '{'
    3 | {
      | ^
Language: C++

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'c'
    8 |   b = N/10%10
      |              ^
      |              ;
    9 |   c = N%10
      |   ~           
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else{ std::cout << "No" <<std::endl;}
      |   ^~~~
Language: C++

#include <iostream>
int main()
{
  int N;
  std::cin >> N;
  int a,b,c;
  a = N/100;
  b = N/10%10
  c = N%10
  
  if( a==7 || b==7 || c==7){ std::cout << "OK" <<std::endl;}
  else{ std::cout << "NG" <<std::endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 'c'
    8 |   b = N/10%10
      |              ^
      |              ;
    9 |   c = N%10
      |   ~           
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else{ std::cout << "NG" <<std::endl;}
      |   ^~~~
Language: C++

#include <iostream>

void check(int data){
  int target = (int)(data / 100);
  if(target == 7){
    std::cout << "Yes";
  }
  
  data = data - target;
  target = (int)(data / 10);
  if(target == 7){
    std::cout << "Yes";
  }
  
  data = data - target;
  if(data == 7){
    std::cout << "Yes";
  } 
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

bool check_method(int data){
  int hundreds_plce;
  hundreds_place = (int)(data / 100);
  if(hundreds_place == 7){
  	return true;
  }
  
  data = data - hundreds_palce * 100;
  int tens_palce = (int)(data / 100);
  if(tens_place == 7){
    return true
  }
  
  data = (data - tens_place) / 10;
  if(data == 7){
    return true;
  }
  return false;
}

Compiler output:
a.cc: In function 'bool check_method(int)':
a.cc:3:3: error: 'hundreds_place' was not declared in this scope; did you mean 'hundreds_plce'?
    3 |   hundreds_place = (int)(data / 100);
      |   ^~~~~~~~~~~~~~
      |   hundreds_plce
a.cc:8:17: error: 'hundreds_palce' was not declared in this scope; did you mean 'hundreds_plce'?
    8 |   data = data - hundreds_palce * 100;
      |                 ^~~~~~~~~~~~~~
      |                 hundreds_plce
a.cc:10:6: error: 'tens_place' was not declared in this scope; did you mean 'tens_palce'?
   10 |   if(tens_place == 7){
      |      ^~~~~~~~~~
      |      tens_palce
a.cc:11:16: error: expected ';' before '}' token
   11 |     return true
      |                ^
      |                ;
   12 |   }
      |   ~             
a.cc:14:18: error: 'tens_place' was not declared in this scope; did you mean 'tens_palce'?
   14 |   data = (data - tens_place) / 10;
      |                  ^~~~~~~~~~
      |                  tens_palce
Language: C++

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

int main(int argc, char *argv[]) { ios::sync_with_stdio(false);cin.tie(nullptr);cout.tie(nullptr);

  string n;cin>>n;
  for(int i=0;i<3;i++){
    if(n[i]=='7'){
      puts("Yes");return 0;
    }
  }
  ptus("No");
  
  return 0;
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:14:3: error: 'ptus' was not declared in this scope; did you mean 'puts'?
   14 |   ptus("No");
      |   ^~~~
      |   puts
Language: Java

import java.util.Scanner;

public class FizzBuzzSum {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
		
		Scanner sc=new Scanner(System.in);

		//FizzBuzz列の項目数
		int N=sc.nextInt();
		long count=0;
		
		for(int i=0;i<N;i++) {
			if(i%3==0&&i%5==0) {			
//				System.out.println("FizzBuzz");
			}else if(i%3==0) {
//				System.out.println("Fizz");
			}else if(i%5==0) {
//			System.out.println("Buzz");
			}else {
//				System.out.println(i);
				count+=i;
			}
		}
		System.out.println(count);
	}

}


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

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

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