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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  string s; 
  cin >> s;
  
  if(s[0] == "7") cout << "Yes" << endl;
  if(s[1] == "7") cout << "Yes" << endl;
  if(s[2] == "7") cout << "Yes" << endl;
  else 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(s[0] == "7") cout << "Yes" << endl;
a.cc:9:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    9 |   if(s[1] == "7") cout << "Yes" << endl;
a.cc:10:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   10 |   if(s[2] == "7") cout << "Yes" << endl;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'n' was not declared in this scope
    8 |   if(n[0] == "7") cout << "Yes" << endl;
      |      ^
a.cc:9:6: error: 'n' was not declared in this scope
    9 |   if(n[1] == "7") cout << "Yes" << endl;
      |      ^
a.cc:10:6: error: 'n' was not declared in this scope
   10 |   if(n[2] == "7") cout << "Yes" << endl;
      |      ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: invalid types 'int[int]' for array subscript
    8 |   if(n[0] == 7) cout << "Yes" << endl;
      |       ^
a.cc:9:7: error: invalid types 'int[int]' for array subscript
    9 |   if(n[1] == 7) cout << "Yes" << endl;
      |       ^
a.cc:10:7: error: invalid types 'int[int]' for array subscript
   10 |   if(n[2] == 7) cout << "Yes" << endl;
      |       ^
Language: Java

public class Main {
  public static void main(String[] args) {
    String N = new java.util.Scanner(System.in).nextLine();
    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:4: error: bad operand types for binary operator '=='
    if (N.charAt(0) == "7" || N.charAt(1) == "7" || N.charAt(2) == "7") {
                    ^
  first type:  char
  second type: String
Main.java:4: error: bad operand types for binary operator '=='
    if (N.charAt(0) == "7" || N.charAt(1) == "7" || N.charAt(2) == "7") {
                                          ^
  first type:  char
  second type: String
Main.java:4: error: bad operand types for binary operator '=='
    if (N.charAt(0) == "7" || N.charAt(1) == "7" || N.charAt(2) == "7") {
                                                                ^
  first type:  char
  second type: String
3 errors
Language: Java

public class Main {
  public static void main(String[] args) {
    int N = new java.util.Scanner(System.in).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:4: error: int cannot be dereferenced
    if (N.charAt(0) == '7' || N.charAt(1) == '7' || N.charAt(2) == '7') {
         ^
Main.java:4: error: int cannot be dereferenced
    if (N.charAt(0) == '7' || N.charAt(1) == '7' || N.charAt(2) == '7') {
                               ^
Main.java:4: error: int cannot be dereferenced
    if (N.charAt(0) == '7' || N.charAt(1) == '7' || N.charAt(2) == '7') {
                                                     ^
3 errors
Language: Java

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


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

public class Main {
  public static void main(String[] args) {
    int N = new java.util.Scanner(System.in).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:4: error: int cannot be dereferenced
    if (N.charAt(0) == 7 || N.charAt(1) == 7 || N.charAt(2) == 7) {
         ^
Main.java:4: error: int cannot be dereferenced
    if (N.charAt(0) == 7 || N.charAt(1) == 7 || N.charAt(2) == 7) {
                             ^
Main.java:4: 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.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
}


Compiler output:
Main.java:7: error: cannot find symbol
		String[] list = s.split("");
		                ^
  symbol:   variable s
  location: class Main
Main.java:9: error: cannot find symbol
      	for(int i=0; i<s.length(); i++){
      	               ^
  symbol:   variable s
  location: class Main
2 errors
Language: Java

import java.util.*;

public class Main {
	public static void main(String[] args) throws Exception{
		Scanner scn = new Scanner(System.in);
		String n = scn.next();
		String[] list = s.split("");
      	int check = 0;
      	for(int i=0; i<s.length(); i++;){
          if(list[i].equals("7")) check=1;
        }
      	if(check==0) System.out.println("No");
      	else System.out.println("Yes");
	}
}

Compiler output:
Main.java:9: error: ')' expected
      	for(int i=0; i<s.length(); i++;){
      	                              ^
Main.java:9: error: illegal start of expression
      	for(int i=0; i<s.length(); i++;){
      	                               ^
2 errors
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 's' was not declared in this scope
    7 |     if(s.at(i)=='7'){
      |        ^
Language: Java

import java.util.Scanner;
public class A162 {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		char[] s = sc.next().toCharArray();
		boolean c = false;
		for(int i = 0; i < s.length; i++) {
			if(s[i] == '7') {
				c = true;
				break;
			}
		}
		if(c) {
			System.out.println("Yes"); //C == true;
		}else{
			System.out.println("No"); //c == false の場合
		}
	}

	/*boolean true/false
			true = 正しい
			false = 間違ってる

			c = 7が入ってるかいなか
			7が入ってたら→OK			true
			7が入ってなかったら→だめ	false

			c == true いらない
			c ture ←trueが基準
			!c false
	*/
}


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

#include<stdio.h>
int main(void){
  long int n,k,s;
  scanf("%ld",&n);
  k=n/15;
  s=60*(k+2)*k);
  switch(n%15){
    case 0:break;   
    case 1:s=s+1;break;  
    case 2:
    case 3:
      s=s+3;break;
    case 4:
    case 5:
    case 6:
      s=s+7;break;
    case 7:
      s=s+14;break;
    case 8:
    case 9:
    case 10:
      s=s+22;break;
    case 11:
    case 12:
      s=s+33;break;
    case 13:s=s+46;break;
    default:s=s+60;break;
  }
  printf("%ld",s);
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:6:15: error: expected ';' before ')' token
    6 |   s=60*(k+2)*k);
      |               ^
      |               ;
main.c:6:15: error: expected statement before ')' token
Language: C

#include<stdio.h>
int main(void){
  char a[3];
  scanf("%s",a);
  for(i=0;i<3;i++){
    if(a[i]=='7'){ puts("Yes");return 0;}
  }
  puts("NO");
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<3;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  char a[3];
  scanf("%s",&a);
  for(i=0;i<3;i++){
    if(a[i]=='7'){ puts("Yes");return 0;}
  }
  puts("NO");
 return 0; 
}


Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<3;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;

int main(){
  int n;
  cin >> n;
  for(int i = 0;i < 3;i++){
    if(n[i] == 7){
      cout << "Yes";
      break;
    }
    if(n[2] != 7){
      cout << "No";
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: invalid types 'int[int]' for array subscript
    8 |     if(n[i] == 7){
      |         ^
a.cc:12:9: error: invalid types 'int[int]' for array subscript
   12 |     if(n[2] != 7){
      |         ^
Language: C++

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

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

}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:19: error: expected primary-expression before '||' token
    7 |   if(X.at(0)=='7')||X.at(1)=='7'||X.at(2)=='7')
      |                   ^~
Language: C++

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

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

}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '||' token
    7 |   if(X.at(0)==7)||X.at(1)==7||X.at(2)==7)
      |                 ^~
Language: C++

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

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

}
 


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: request for member 'at' in 'X', which is of non-class type 'int'
    7 |   if(X.at(0)==7)||X.at(1)==7||X.at(2)==7)
      |        ^~
a.cc:7:17: error: expected primary-expression before '||' token
    7 |   if(X.at(0)==7)||X.at(1)==7||X.at(2)==7)
      |                 ^~
a.cc:7:21: error: request for member 'at' in 'X', which is of non-class type 'int'
    7 |   if(X.at(0)==7)||X.at(1)==7||X.at(2)==7)
      |                     ^~
a.cc:7:33: error: request for member 'at' in 'X', which is of non-class type 'int'
    7 |   if(X.at(0)==7)||X.at(1)==7||X.at(2)==7)
      |                                 ^~
Language: C++

#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
typedef int64_t lint;
using namespace std;
using ll = long long;
using P = pair<ll,ll>;

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
#define debug(x) cerr << #x << ": " << x << "\n"//手動デバッグ
#define YES(c) cout<<((c)?"YES\n":"NO\n"),0
#define Yes(c) cout<<((c)?"Yes\n":"No\n"),0
#define O(p) cout<<p<<"\n",0
#define OS(p) cout<<p<<" ",0
#define ON(p) cout<<p,0
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define inf 2147483647 //int値の最大値
#define MOD 1000000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
#define endl "\n"//endlを置き換える
//略記
#define PB emplace_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素
#define CST(x) cout<<fixed<<setprecision(x)//小数点以下の桁数指定

const int dy[4]={1,0,-1,0};
const int dx[4]={0,1,0,-1};//^>v<

template<class T=int> T in(){
    T x;
    cin>>x;
    return (x);
}
template<class T> inline bool chmin(T& a, T b) {
    if (a > b) {
        a = b;
        return true;
    }
    return false;
}
template<class T> inline bool chmax(T& a, T b) {
    if (a < b) {
        a = b;
        return true;
    }
    return false;
}
int gcd(int a, int b) {
    if (b==0) return a;
    else return gcd(b, a%b);
}
int lcm(int a, int b) {
    return a * b / gcd(a, b);
}
int two(int n){
	ll ans=1;
	rep(i,n){
		ans*=2;
	}
	return ans;
}
//------------------------------------------------------------




//------------------------------------------------------------
int main() {
	ios::sync_with_stdio(false);
	std::cin.tie(nullptr);
//------------------------------------------------------------
    
    string s=in<string>();
  	Yes(s[0]=="7"||s[1]=="7"||s[2]=="7");
    
    
    
    
    
    
    
    
    
//------------------------------------------------------------
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:88:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   88 |         Yes(s[0]=="7"||s[1]=="7"||s[2]=="7");
a.cc:23:24: note: in definition of macro 'Yes'
   23 | #define Yes(c) cout<<((c)?"Yes\n":"No\n"),0
      |                        ^
a.cc:88:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   88 |         Yes(s[0]=="7"||s[1]=="7"||s[2]=="7");
a.cc:23:24: note: in definition of macro 'Yes'
   23 | #define Yes(c) cout<<((c)?"Yes\n":"No\n"),0
      |                        ^
a.cc:88:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   88 |         Yes(s[0]=="7"||s[1]=="7"||s[2]=="7");
a.cc:23:24: note: in definition of macro 'Yes'
   23 | #define Yes(c) cout<<((c)?"Yes\n":"No\n"),0
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  bool t=true;
  for(int i=0;i<s.size();i++){
   if(s[i]=="7"){
     t=false;
     cout << "Yes" << endl;
     break;
  }
  if(t)cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(s[i]=="7"){
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  string s;
  cin >> s;
  bool t=true;
  for(int i=0;i<s.size();i++){
   if(s[i]=="7"){
     t=false;
     cout << "Yes" << endl;
     break;
  }
  if(t)cout << "No" << enld;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |    if(s[i]=="7"){
a.cc:13:24: error: 'enld' was not declared in this scope
   13 |   if(t)cout << "No" << enld;
      |                        ^~~~
a.cc:14:2: error: expected '}' at end of input
   14 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else
      |     ^~~~
a.cc:8:21: note: to match this '{'
    8 |     if(s[i] == '7') {
      |                     ^
a.cc: At global scope:
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: expected ';' before 'else'
   11 |       return 0
      |               ^
      |               ;
   12 |     else
      |     ~~~~       
a.cc:12:5: error: expected '}' before 'else'
   12 |     else
      |     ^~~~
a.cc:9:21: note: to match this '{'
    9 |     if(s[i] == '7') {
      |                     ^
a.cc:14:15: error: expected ';' before '}' token
   14 |       return 0
      |               ^
      |               ;
   15 |     }
      |     ~          
a.cc: At global scope:
a.cc:17:1: error: expected declaration before '}' token
   17 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc:9:15: warning: multi-character character constant [-Wmultichar]
    9 |       cout << 'Yes' << endl;
      |               ^~~~~
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |       cout << 'No' << endl;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:7:7: error: 'i' was not declared in this scope
    7 |   for(i = 0; i < 3; i++){
      |       ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:32: error: too many initializers for 'char [2]'
    5 |   char str1[2] = {'0', '0', '0'};
      |                                ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:15: error: expected primary-expression before ']' token
    6 |   cin >> str1[];
      |               ^
Language: C++

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

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


Compiler output:
a.cc:5:22: error: extended character 　 is not valid in an identifier
    5 |   char str1[] = {'0',　'0',　'0'};
      |                      ^
a.cc:5:28: error: extended character 　 is not valid in an identifier
    5 |   char str1[] = {'0',　'0',　'0'};
      |                            ^
a.cc: In function 'int main()':
a.cc:5:22: error: '\U00003000' was not declared in this scope
    5 |   char str1[] = {'0',　'0',　'0'};
      |                      ^~
a.cc:5:24: error: expected '}' before '0'
    5 |   char str1[] = {'0',　'0',　'0'};
      |                 ~      ^~~
a.cc: At global scope:
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> str1[];
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(str1[0] == '7' || str1[1] == '7' || str1[2] == '7')
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else
      |   ^~~~
a.cc:11:3: error: expected unqualified-id before 'return'
   11 |   return 0;
      |   ^~~~~~
a.cc:12:1: error: expected declaration before '}' token
   12 | }
      | ^
Language: C++

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

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


Compiler output:
a.cc:5:17: error: extended character 　 is not valid in an identifier
    5 |   char str1['0',　'0',　'0'];
      |                 ^
a.cc:5:23: error: extended character 　 is not valid in an identifier
    5 |   char str1['0',　'0',　'0'];
      |                       ^
a.cc: In function 'int main()':
a.cc:5:16: error: expected ']' before ',' token
    5 |   char str1['0',　'0',　'0'];
      |                ^
      |                ]
a.cc:5:19: error: expected initializer before '0'
    5 |   char str1['0',　'0',　'0'];
      |                   ^~~
a.cc:6:10: error: 'str1' was not declared in this scope
    6 |   cin >> str1[];
      |          ^~~~
a.cc:6:15: error: expected primary-expression before ']' token
    6 |   cin >> str1[];
      |               ^
Language: C++

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

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


Compiler output:
a.cc:5:17: error: extended character 　 is not valid in an identifier
    5 |   char str1['0',　'0',　'0']
      |                 ^
a.cc:5:23: error: extended character 　 is not valid in an identifier
    5 |   char str1['0',　'0',　'0']
      |                       ^
a.cc: In function 'int main()':
a.cc:5:16: error: expected ']' before ',' token
    5 |   char str1['0',　'0',　'0']
      |                ^
      |                ]
a.cc:5:19: error: expected initializer before '0'
    5 |   char str1['0',　'0',　'0']
      |                   ^~~
a.cc:7:6: error: 'str1' was not declared in this scope
    7 |   if(str1[0] == '7' || str1[1] == '7' || str1[2] == '7')
      |      ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: expected ']' before ',' token
    5 |   char str1['0','0','0']
      |                ^
      |                ]
a.cc:5:17: error: expected unqualified-id before '0'
    5 |   char str1['0','0','0']
      |                 ^~~
a.cc:7:6: error: 'str1' was not declared in this scope
    7 |   if(str1[0] == '7' || str1[1] == '7' || str1[2] == '7')
      |      ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:14: error: expected ']' before ',' token
    5 |   char str1[0,0,0]
      |              ^
      |              ]
a.cc:5:15: error: expected unqualified-id before numeric constant
    5 |   char str1[0,0,0]
      |               ^
a.cc:7:6: error: 'str1' was not declared in this scope
    7 |   if(str1[0] == '7' || str1[1] == '7' || str1[2] == '7')
      |      ^~~~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str1[0] == "7" || str1[1] == "7" || str1[2] == "7")
      |      ~~~~~~~~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str1[0] == "7" || str1[1] == "7" || str1[2] == "7")
      |                        ~~~~~~~~^~~~~~
a.cc:7:50: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(str1[0] == "7" || str1[1] == "7" || str1[2] == "7")
      |                                          ~~~~~~~~^~~~~~
a.cc:11:12: error: expected '}' at end of input
   11 |   return 0;
      |            ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  string n;
  cin>>n;
  int x=0;
  for(int i=0;i<n.size();i++){
    if(n.at(i)=="7"){
      x+=1;}
  }
  if(x>0){
   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(i)=="7"){
      |        ~~~~~~~^~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'std::string' {aka 'class std::__cxx11::basic_string<char>'} has no member named 't'; did you mean 'at'?
   10 |     else if (n.t(2)!=7){
      |                ^
      |                at
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void){
  
  string n;
  cin>>n;
  
  char c =n[0,2];
  
  if(n[0,2] == '7'){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
  }


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

#include <bits/stdc++.h>
using namespace std;
int main(void){
  
  string n;
  cin>>n;
  
  char c =n[0,2];
  
  if(n[0,2] == '7'){
    cout<<"Yes"<<endl;
  }else{
    cout<<"No"<<endl;
    return 0;
  }
  

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

#include <iostream>
using namespace std;
int main(){
 	string s;
  	bool have = false;
  	cin>>s;
  	for(int i = 0; i < size(s); i++){
     	 if(s[i]=="7")bool=true;
    }
  	if(have){
     	cout<<"Yes";
    }
  	else cout<<"No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    8 |          if(s[i]=="7")bool=true;
a.cc:8:27: error: expected unqualified-id before '=' token
    8 |          if(s[i]=="7")bool=true;
      |                           ^
Language: C++

#include <stdio.h>

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

	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ';' before '}' token
   10 |                 printf("No\n")
      |                               ^
      |                               ;
   11 |         }
      |         ~
Language: C++

#include <stdio.h>

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

	return 0;
	
}

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

#include <stdio.h>

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

	return 0;
	
}

Compiler output:
main.c: In function 'main':
main.c:8:28: error: expected ';' before 'c'
    8 |         b = (num / 100) %10
      |                            ^
      |                            ;
    9 |         c = num % 10
      |         ~
Language: C++

int main(){
	int n;
	int n1, n2, n3;
	scanf("%d", &n);
	
	n1 = n/100;
	n2 = (n%100)/10;
	n3 = n%10;
	
	if (n1 == 7 || n2 == 7 || n3 == 7){
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d", &n);
      |         ^~~~~
a.cc:11:17: error: 'printf' was not declared in this scope
   11 |                 printf("Yes\n");
      |                 ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main(){
a.cc:14:17: error: 'printf' was not declared in this scope
   14 |                 printf("No\n");
      |                 ^~~~~~
a.cc:14:17: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

#include <stdio.h>

int main(){
	int n;
	int n1, n2, n3;
	scanf("%d", &n);
	
	n = n/100;
	n1 = (n%100)/10;
	n2 = n1%10;
	
	if (n1 == 7 || n2 == 7 || n3 == 7){
		printf("Yes\n");
	}
	else {
		printf("No\n")
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:31: error: expected ';' before '}' token
   16 |                 printf("No\n")
      |                               ^
      |                               ;
   17 |         }
      |         ~
Language: C++

#include
int main(){
	int a;
	scanf("%d" , &a);
	if (a%10 == 7 || (a/10) %10 == 7 || n/100 == 7) {
		puts("yes\n");
	} 
	else{
		puts("no\n");
	}
	return 0;
}

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include
      |         ^
a.cc: In function 'int main()':
a.cc:4:9: error: 'scanf' was not declared in this scope
    4 |         scanf("%d" , &a);
      |         ^~~~~
a.cc:5:45: error: 'n' was not declared in this scope
    5 |         if (a%10 == 7 || (a/10) %10 == 7 || n/100 == 7) {
      |                                             ^
a.cc:6:17: error: 'puts' was not declared in this scope
    6 |                 puts("yes\n");
      |                 ^~~~
a.cc:9:17: error: 'puts' was not declared in this scope
    9 |                 puts("no\n");
      |                 ^~~~
Language: C++

#include <stdio.h>
#include <string.h>

int main(){
	int N;
	scanf("%d",&N);
	int a;
	int b;
	int c;
	a = N%10;
	b = N/10%10;
	c = N/100;
	if(a==7||b==7||c=77777777=7){
		printf("Yes");
	}else{
		printf("No");
	}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: lvalue required as left operand of assignment
   13 |         if(a==7||b==7||c=77777777=7){
      |                          ^~~~~~~~
Language: C++

#include <stdio.h>
#include <string.h>

int main(){
	int N;
	scanf("%d",&N);
	int a;
	int b;
	int c;
	a = N%10;
	b = N/10%10;
	c = N/100;
	if(a==7||b==7||c=77777777=7){
		printf("Yes");
	}else{
		printf("No");
	}
retu

Compiler output:
a.cc: In function 'int main()':
a.cc:13:26: error: lvalue required as left operand of assignment
   13 |         if(a==7||b==7||c=77777777=7){
      |                          ^~~~~~~~
a.cc:18:1: error: 'retu' was not declared in this scope
   18 | retu
      | ^~~~
a.cc:18:5: error: expected '}' at end of input
   18 | retu
      |     ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <stdio.h>

// lucky 7 

int main () {

int num, num1, num2, num3;
scanf("%d", num);

num1 = num/100
num2 = (num - num1 *100)/10;
num3 = num % (num1 * 100 + num2 *10);

if(num1 == 7 || num2 == 7 || num3 == 7) {
	puts("Yes");
} else {
	puts("No")
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: expected ';' before 'num2'
   10 | num1 = num/100
      |               ^
      |               ;
   11 | num2 = (num - num1 *100)/10;
      | ~~~~           
a.cc:17:19: error: expected ';' before '}' token
   17 |         puts("No")
      |                   ^
      |                   ;
   18 | }
      | ~
Language: C++

#include <stdio.h>

// lucky 7 

int main (); {

int n; 

if(n%10 == 7 || (n/10) %10 == 7|| n/100 == 7) {
	
	printf("yes\n");
	
	
} else { 
	puts ("no\n");
}
return 0 ;
}


Compiler output:
a.cc:5:14: error: expected unqualified-id before '{' token
    5 | int main (); {
      |              ^
Language: C++

#include <stdio.h>
int main(){
	int n, n1, n2, n3;
	scanf("%d", &n);
	n1=n%10;
	n2=(n/10)%10;
	n3=n/100;
		if(n1==7){
		puts("Yes");
}
		else if(n2==7){
		puts("Yes");			
}
		else if(n3==7){
		puts("Yes");
}
		else{77777
		puts("No");
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:27: error: expected ';' before 'puts'
   17 |                 else{77777
      |                           ^
      |                           ;
   18 |                 puts("No");
      |                 ~~~~
Language: C++

#include <stdio.h>
int main(){
	int n, n1, n2, n3;
	scanf("%d", &n);
	n1=n%10;
	n2=(n-100)%10;
	n3=(n-n1)%100
		if(n1==7){
		puts("Yes");
}
		else if(n2==7){
		puts("Yes");			
}
		else if(n3==7){
		puts("Yes");
}
		else{
		puts("No");
}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:22: error: expected ';' before 'if'
    7 |         n3=(n-n1)%100
      |                      ^
      |                      ;
    8 |                 if(n1==7){
      |                 ~~    
a.cc:11:17: error: 'else' without a previous 'if'
   11 |                 else if(n2==7){
      |                 ^~~~
Language: C++

#include <stdio.h>

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

    int first = n / 100;
    int second = (n / 10) % 10;
    int third = n % 10;

    while ( n > 0) {
        if ( firstDigit == 7) {
            puts("YES");
            break;
        }
        else if ( secondDigit == 7) {
            puts("YES");
            break;
        }
        else if ( thirdDigit == 7) {
            puts("YES");
            break;
        }
        else {
            puts("NO");
            break;
        }
    } 
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'firstDigit' was not declared in this scope
   12 |         if ( firstDigit == 7) {
      |              ^~~~~~~~~~
a.cc:16:19: error: 'secondDigit' was not declared in this scope
   16 |         else if ( secondDigit == 7) {
      |                   ^~~~~~~~~~~
a.cc:20:19: error: 'thirdDigit' was not declared in this scope
   20 |         else if ( thirdDigit == 7) {
      |                   ^~~~~~~~~~
Language: C++

#include <stdio.h>

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

    int first;
    int second;
    int third;

    while ( n > 0) {
        if ( n / 100 == 7) {
            puts("YES");
            break;
        }
        else if ( (n / 10) % 10 == 7) {
            puts("YES");
            break;
        }
        else if ( n % 10 == 7) {
            puts("YES");
            break;
        }
        else {
            puts("NO");
            break;
        }
    } 

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

#include <stdio.h>

int main() {
	int N;
	scanf("%d", &N);
	if(N / 100 = 7 ) {
		puts("YES");
	}
	if(N / 10 % 10 == 7);
		puts("YES");
	else if (N % 10 == 7) {
		puts("YES");
	}
	else {
		puts("NO");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: lvalue required as left operand of assignment
    6 |         if(N / 100 = 7 ) {
      |            ~~^~~~~
a.cc:11:9: error: 'else' without a previous 'if'
   11 |         else if (N % 10 == 7) {
      |         ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:35: error: implicit declaration of function 'Printf'; did you mean 'printf'? [-Wimplicit-function-declaration]
    5 | if(N[0]='7'||N[1]=='7'||N[2]=='7')Printf("Yes");
      |                                   ^~~~~~
      |                                   printf
Language: C

#include <stdio.h>

int main() {
  int N;
  scanf("%d",&N);
    for(int i=0;i<3;i++) {
      N = N%10;
      if(N==7) {
	printf("Yes");
	break;
      }
    }
    if(N!=7) {
      printf("No");
    }
  }
  return 0;
}

Compiler output:
main.c:17:3: error: expected identifier or '(' before 'return'
   17 |   return 0;
      |   ^~~~~~
main.c:18:1: error: expected identifier or '(' before '}' token
   18 | }
      | ^
Language: C++

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

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


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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (a=="7" || b=="7" || c=="7") {
      |         ~^~~~~
a.cc:11:20: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (a=="7" || b=="7" || c=="7") {
      |                   ~^~~~~
a.cc:11:30: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if (a=="7" || b=="7" || c=="7") {
      |                             ~^~~~~
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:16: 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:32: 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:48: 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<stdio.h>
int main(void)
{
int num;
do{

printf(“3桁の自然数を入力してください”);  scanf(“N=%d”,num);

}while(num<1000&&num>99);


if(num/100||(num/10)%10||n%10){

printf(“Yes”);

}

else {
printf(“No”);



return 0;


}







Compiler output:
main.c:1:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | ＃include<stdio.h>
      |          ^
main.c:7:8: error: stray '\342' in program
    7 | printf(<U+201C>3<U+6841><U+306E><U+81EA><U+7136><U+6570><U+3092><U+5165><U+529B><U+3057><U+3066><U+304F><U+3060><U+3055><U+3044><U+201D>);  scanf(<U+201C>N=%d<U+201D>,num);
      |        ^~~~~~~~
main.c:7:9: error: invalid suffix "桁の自然数を入力してください" on integer constant
    7 | printf(“3桁の自然数を入力してください”);  scanf(“N=%d”,num);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
main.c:7:38: error: stray '\342' in program
    7 | printf(<U+201C>3<U+6841><U+306E><U+81EA><U+7136><U+6570><U+3092><U+5165><U+529B><U+3057><U+3066><U+304F><U+3060><U+3055><U+3044><U+201D>);  scanf(<U+201C>N=%d<U+201D>,num);
      |                                                                                                                                 ^~~~~~~~
main.c:7:49: error: stray '\342' in program
    7 | printf(<U+201C>3<U+6841><U+306E><U+81EA><U+7136><U+6570><U+3092><U+5165><U+529B><U+3057><U+3066><U+304F><U+3060><U+3055><U+3044><U+201D>);  scanf(<U+201C>N=%d<U+201D>,num);
      |                                                                                                                                                   ^~~~~~~~
main.c:7:54: error: stray '\342' in program
    7 | printf(<U+201C>3<U+6841><U+306E><U+81EA><U+7136><U+6570><U+3092><U+5165><U+529B><U+3057><U+3066><U+304F><U+3060><U+3055><U+3044><U+201D>);  scanf(<U+201C>N=%d<U+201D>,num);
      |                                                                                                                                                               ^~~~~~~~
main.c:14:8: error: stray '\342' in program
   14 | printf(<U+201C>Yes<U+201D>);
      |        ^~~~~~~~
main.c:14:12: error: stray '\342' in program
   14 | printf(<U+201C>Yes<U+201D>);
      |                   ^~~~~~~~
main.c:19:8: error: stray '\342' in program
   19 | printf(<U+201C>No<U+201D>);
      |        ^~~~~~~~
main.c:19:11: error: stray '\342' in program
   19 | printf(<U+201C>No<U+201D>);
      |                  ^~~~~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:8:8: error: expected expression before '%' token
    8 |   b=(n/%100)/10;
      |        ^
Language: C

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

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

#include <stdio.h>
int main(void)
{
    int  n,a,b,c;
n/100=a,(n-a*100)/10=b,n%10=c;
    
if(a=7)
printf("Yes");
else if(b=7)
printf("Yes");
else if(c=7)
printf("Yes");
else
printf("No");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c;
      |      ^
main.c:5:21: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c;
      |                     ^
main.c:5:28: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c;
      |                            ^
Language: C

#include <stdio.h>
int main(void)
{
    int  n,a,b,c;
n/100=a,(n-a*100)/10=b,n%10=c
    
if(a=7)
printf("Yes");
else if(b=7)
printf("Yes");
else if(c=7)
printf("Yes");
else
printf("No");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:6: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c
      |      ^
main.c:5:21: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c
      |                     ^
main.c:5:28: error: lvalue required as left operand of assignment
    5 | n/100=a,(n-a*100)/10=b,n%10=c
      |                            ^
main.c:5:30: error: expected ';' before 'if'
    5 | n/100=a,(n-a*100)/10=b,n%10=c
      |                              ^
      |                              ;
    6 | 
    7 | if(a=7)
      | ~~                            
main.c:9:1: error: 'else' without a previous 'if'
    9 | else if(b=7)
      | ^~~~
Language: C

#include<stdio.h>

int main(void)
{
  int n, i, total=0;
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    if(i%3==0||i%5==0||i%15==0)
    else
      total+=i;
  }
  
  printf("%d",total);
  
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:11:5: error: expected expression before 'else'
   11 |     else
      |     ^~~~
Language: C

#include<stdio.h>

int main(void)
{
  int n, i, total;
  
  scanf("%d",&n);
  
  for(i=0;i<n;i++){
    if(i%3==0||i%5==0||i%15==0);
    else
      totsl+=i;
  }
  
  printf("%d",total);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:12:7: error: 'totsl' undeclared (first use in this function); did you mean 'total'?
   12 |       totsl+=i;
      |       ^~~~~
      |       total
main.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include <stdio.h>
      |         ^
Language: C

#include <stdio.h>

int lucky(int n)
{
  int flg=0;
  if(n%10==7){
    return 1;
  }else{
    if(n>=10){
      lucky(n/10);
    }else{
      return 0;
    }
    
}
int main()
{
  int n,flg=0;
  scanf("%d",&n);
  flag=lucky(n);
  if(flag==0)
    printf("No");
  else
    printf("Yes");
  
  return 0;
  
}

Compiler output:
main.c: In function 'main':
main.c:20:3: error: 'flag' undeclared (first use in this function); did you mean 'flg'?
   20 |   flag=lucky(n);
      |   ^~~~
      |   flg
main.c:20:3: note: each undeclared identifier is reported only once for each function it appears in
main.c: In function 'lucky':
main.c:28:1: error: expected declaration or statement at end of input
   28 | }
      | ^
Language: C

#include<stdio.h>

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

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

#include <stdio.h>
void main (){
  int i,j=0,k;
  scanf("%d",&k);
  for(i=0;i<3;i++){
    if(k%7=0){
      j=1;
    }
    k%=10;
  }
  if(j==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){
      |           ^
Language: C

#include <stdio.h>
void main (){
  int i,j=0,k;
  scanf("%d",k);
  for(i=0;i<3;i++){
    if(k%7=0){
      j=1;
    }
    k%=10;
  }
  if(j==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){
      |           ^