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

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

int main ()
{
	//整数の入力
	int N;
	cin >> N;

	string Fizz;
	string Bizz;
	string FizzBizz;


	int sum = 0;
	int ai = 0;
	for(i=0;i<N;i++){
		ai = ai + 1;
	}


	//出力
	for(i=0;i<N;i++){
		if((ai%3 ==0) && (ai%5 != 0)){
			ai = Fizz;
		}else if((ai%3 !=0) && (ai%5 == 0)){
			ai = Bizz;
		}else if((ai%3 ==0) && (ai%5 == 0)){
			ai = FizzBizz;
		}else{
			sum = sum + ai;
		}}

	cout << sum << endl;
	
	return 0;
}
		
		
	
	

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: 'i' was not declared in this scope; did you mean 'ai'?
   17 |         for(i=0;i<N;i++){
      |             ^
      |             ai
a.cc:23:13: error: 'i' was not declared in this scope; did you mean 'ai'?
   23 |         for(i=0;i<N;i++){
      |             ^
      |             ai
a.cc:25:30: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   25 |                         ai = Fizz;
      |                              ^~~~
      |                              |
      |                              std::string {aka std::__cxx11::basic_string<char>}
a.cc:27:30: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   27 |                         ai = Bizz;
      |                              ^~~~
      |                              |
      |                              std::string {aka std::__cxx11::basic_string<char>}
a.cc:29:30: error: cannot convert 'std::string' {aka 'std::__cxx11::basic_string<char>'} to 'int' in assignment
   29 |                         ai = FizzBizz;
      |                              ^~~~~~~~
      |                              |
      |                              std::string {aka std::__cxx11::basic_string<char>}
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<<"No"<<endl;
  }
else{
cout<<"Yes"<<endl;
}
}

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

#include <stdio.h>

#define TRUE 1
#define FALSE 0

int judgeSeven_100(int input){
	int hundredsPlace = input / 100;
  	int isSeven = FALSE;
  
  if(hundredsPlace == 7){
  	isSeven = TRUE;
  }
  	
  return isSeven;
}

int judgeSeven_10(int input){
	int tensPlace = (input % 100) / 10;
	int isSeven = FALSE;
  
  if(tensPlace == 7){
    isSeven = TRUE;
  }
  
	return isSeven;
}

int judgeSeven_1(int input){
	int onesPlace = (input % 10);
  int isSeven = FALSE;
  
  if(onesPlace == 7){
  	isSeven = TRUE;
  }

  return isSeven;
}

int main(void){
  int input;
  char output = "No";
  
  scanf("%d", &input);
  
  if(judgeSeven_100(input) == true){
    output = "YES";
  }
  else if(judgeSeven_10(input) == true){
  	output = "YES";
  }
  else if(judgeSeven_1(input) == true){
    output = "YES";
  }
  
   printf("%d\n", output);
  
  return 0;
}  


Compiler output:
main.c: In function 'main':
main.c:41:17: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   41 |   char output = "No";
      |                 ^~~~
main.c:45:31: error: 'true' undeclared (first use in this function)
   45 |   if(judgeSeven_100(input) == true){
      |                               ^~~~
main.c:2:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:45:31: note: each undeclared identifier is reported only once for each function it appears in
   45 |   if(judgeSeven_100(input) == true){
      |                               ^~~~
main.c:46:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   46 |     output = "YES";
      |            ^
main.c:49:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   49 |         output = "YES";
      |                ^
main.c:52:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   52 |     output = "YES";
      |            ^
Language: C

#include <cstdio>
#include <cstring>
#include <iostream>

using namespace std;

int main(int argc, char const *argv[])
{
    int n;
    int param = 0;

    cin >> n;
    if ((n>=700&&n<800))
    {
        param = 1;
    }
    n-=(n/100)*100;
    
    if ((n>=70&&n<80))
    {
        param = 1;
    }

    n-=(n/10)*10;
    if (n==7)
    {
        param = 1;
    }
    

    if (param==1)
    {
        cout << "Yes";
    }
    else
    {
        cout << "No";
    }
    
    
    
    return 0;
}


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

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

int main() {
  int i,N;
  
    i=0;
    cin >> N;
  if ( N.at(0) == '7') {
    i++;
  }
  if ( N.at(1) == '7') {
    i++;
  }
  if ( N.at(2) == '7') {
    i++;
  }
  
  if (i>0) {
    cout << "yes" << endl;
  }
  else {
    cout << "no" << endl;
  }
  
}


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

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

/*vector<int> p(n);
cin >> p[i]*/

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

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

    return 0;
}

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

#define TRUE 1
#define FALSE 0

int judgeSeven_100(int input){
	int hundredsPlace = input / 100;
  	int isSeven = FALSE;
  
  if(hundredsPlace == 7){
  	isSeven = TRUE;
  }
  	
  return isSeven;
}

int judgeSeven_10(int input){
	int tensPlace = (input % 100) / 10;
	int isSeven = FALSE;
  
  if(tensPlace == 7){
    isSeven = TRUE;
  }
  
	return isSeven;
}

int judgeSeven_1(int input){
	int onesPlace = (input % 10);
  int isSeven = FALSE;
  
  if(onesPlace == 7){
  	isSeven = TRUE;
  }

  return isSeven;
}

int main(void){
  int input;
  char output = "No";
  
  scanf("%d", &input);
  
  if(judgeSeven_100(input) == true){
    output = "YES";
  }
  else if(judgeSeven_10(input) == true){
  	output = "YES";
  }
  else if(judgeSeven_1(input) == true){
    output = "YES";
  }
  
   printf("%d\n", output);
  
  return 0;
}  


Compiler output:
main.c: In function 'main':
main.c:39:17: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   39 |   char output = "No";
      |                 ^~~~
main.c:41:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   41 |   scanf("%d", &input);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #define TRUE 1
main.c:41:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   41 |   scanf("%d", &input);
      |   ^~~~~
main.c:41:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:43:31: error: 'true' undeclared (first use in this function)
   43 |   if(judgeSeven_100(input) == true){
      |                               ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | #define TRUE 1
main.c:43:31: note: each undeclared identifier is reported only once for each function it appears in
   43 |   if(judgeSeven_100(input) == true){
      |                               ^~~~
main.c:44:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   44 |     output = "YES";
      |            ^
main.c:47:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   47 |         output = "YES";
      |                ^
main.c:50:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   50 |     output = "YES";
      |            ^
main.c:53:4: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   53 |    printf("%d\n", output);
      |    ^~~~~~
main.c:53:4: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:53:4: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:53:4: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include <bits/stdc++.h>

int mian(){
	int n;
  std::cin >> n;
  while(n > 0){
  	int d = n %10;
    n /= 10;
    if(d == 7) std::cout << "yes" << endl;
  }
  std:: cout << "no" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:9:38: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |     if(d == 7) std::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,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |   std:: 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: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(0);
    int x;
	cin >> x;
	if(x % 10 == 7 || x / 100 == 7 || x / 10 % 10 == 7) cout<<"Yes";
	else cout<<"No"; 
    return 0;
}


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

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

inline int read()
{
	int sum=0,ff=1; char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-') ff=-1;
		ch=getchar();
	}
	while(isdigit(ch))
		sum=sum*10+(ch^48),ch=getchar();
	return sum*ff;
}

char ch[10001];

int mian()
{
	scanf("%s",ch+1);
	for ( int i=1;i<=strlen(ch+1);i++ )
		if((ch[i]^48)==7) 
			return printf("Yes\n"),0;
	printf("No\n");
	return 0;
}



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++

# include <iostream>

using namespace std;

int main () {
  int N;
  cin>>N;
  if(N%1000=700) cout"Yes";
  else if(N%100=70) cout "Yes";
  else if(N%10=7) cout"Yes";
  else cout"NO";  


}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: lvalue required as left operand of assignment
    8 |   if(N%1000=700) cout"Yes";
      |      ~^~~~~
a.cc:8:22: error: expected ';' before string constant
    8 |   if(N%1000=700) cout"Yes";
      |                      ^~~~~
      |                      ;
a.cc:9:12: error: lvalue required as left operand of assignment
    9 |   else if(N%100=70) cout "Yes";
      |           ~^~~~
a.cc:9:25: error: expected ';' before string constant
    9 |   else if(N%100=70) cout "Yes";
      |                         ^~~~~~
      |                         ;
a.cc:10:12: error: lvalue required as left operand of assignment
   10 |   else if(N%10=7) cout"Yes";
      |           ~^~~
a.cc:10:23: error: expected ';' before string constant
   10 |   else if(N%10=7) cout"Yes";
      |                       ^~~~~
      |                       ;
a.cc:11:12: error: expected ';' before string constant
   11 |   else cout"NO";
      |            ^~~~
      |            ;
Language: C++

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

int main() {
  int 999>=N>=100;
  else if ((N/100）＝＝7) {
    cout <<Yes<< endl;
  }
 else if (((N-N/100*100)/10)==7) {
    cout <<Yes<< endl;
  }
 else if (((N-N/100*100-N/10*10)==7){
    cout <<Yes<< endl;
 else {
    cout <<NO<<endl;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:5:7: error: expected unqualified-id before numeric constant
    5 |   int 999>=N>=100;
      |       ^~~
a.cc:6:3: error: 'else' without a previous 'if'
    6 |   else if ((N/100）＝＝7) {
      |   ^~~~
a.cc:6:13: error: 'N' was not declared in this scope
    6 |   else if ((N/100）＝＝7) {
      |             ^
a.cc:6:15: error: unable to find numeric literal operator 'operator""\U0000ff09\U0000ff1d\U0000ff1d7'
    6 |   else if ((N/100）＝＝7) {
      |               ^~~~~~~~~~
a.cc:6:26: error: expected ')' before '{' token
    6 |   else if ((N/100）＝＝7) {
      |           ~              ^~
      |                          )
a.cc:16:3: error: expected statement at end of input
   16 |  }
      |   ^
a.cc:16:3: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

N = input("")
N = str(N)
if int(N) in range(100, 999):
    if int(N[0]) == 7 or int(N[1]) == 7 or int(N[2]) == 7:
        print("Yes")
    else:
        print("No")

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

#include <bits/stdc++.h>
using namespace std;
#define IOS ios::sync_with_stdio(0); cin.tie(0); cout.tie(0);
typedef long long ll;
#define INF LONG_LONG_MAX
#define MINF LONG_LONG_MIN
#define MAX_INT 100000
#define MOD 1000000007
#define forf(i,a,b) for(int i=a;i<=b;i++)

void solve()
{
    ll n;cin>>n;
    cin>>n;
    
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    n=n/10;
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    n=n/10;
    if(n%10==7) {std::cout << "Yes" << std::endl;return ;}
    cout<<"No";
    
}
    
    
int main()
{
    IOS;
    
    //ll t;cin>>t;while(t--)
        solve();
 
    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

N = input()
N = str(N)
if int(N) in range(100, 999):
    if int(N[0]) == 7 or int(N[1]) == 7 or int(N[2]) == 7:
        print("Yes")
    else:
        print("No")

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

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

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

}
提出情報

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

#include <string.h>
using namespace std;

int main() {
  char A,B,C;
  std::cin>>A>>B>>C;
  if(A!='7' && B!='7' && C!='7'){
        std::cout >>"No">>endl;
  }
  else{
    std::cout>> "Yes">>endl;
    
  

    
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'cin' is not a member of 'std'
    6 |   std::cin>>A>>B>>C;
      |        ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:14: error: 'cout' is not a member of 'std'
    8 |         std::cout >>"No">>endl;
      |              ^~~~
a.cc:8:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:27: error: 'endl' was not declared in this scope
    8 |         std::cout >>"No">>endl;
      |                           ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:10: error: 'cout' is not a member of 'std'
   11 |     std::cout>> "Yes">>endl;
      |          ^~~~
a.cc:11:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:24: error: 'endl' was not declared in this scope
   11 |     std::cout>> "Yes">>endl;
      |                        ^~~~
a.cc:11:24: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<cstring>
using namespace std;
int main()
{
    int a;
    for(int i=1;i<=1;i++)
    {
    	cin>>a[i];
    	if(a[i]==7)
    	{
	  		cout<<"Yes";
    	}
    	else if(a[i]!=7)
    	{
      	    cout<<"No";
    	}
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: invalid types 'int[int]' for array subscript
    9 |         cin>>a[i];
      |               ^
a.cc:10:13: error: invalid types 'int[int]' for array subscript
   10 |         if(a[i]==7)
      |             ^
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |         else if(a[i]!=7)
      |                  ^
Language: C

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

	cin >> n;

	if (n[0] == 7 || n[1] == 7 || n[2] == 7) {
		cout << "Yes" << endl;
	}
	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 pb push_back
using namespace std;

inline int read()
{
	int sum=0,ff=1; char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-') ff=-1;
		ch=getchar();
	}
	while(isdigit(ch))
		sum=sum*10+(ch^48),ch=getchar();
	return sum*ff;
}

char ch[100001];

int mian()
{
	scanf("%s",ch+1);
	for ( int i=1;i<=strlen(ch+1);i++ )
		if((ch[i]^48)==7) 
			return printf("Yes\n"),0;
	printf("No\n");
}



Compiler output:
a.cc: In function 'int mian()':
a.cc:26:15: warning: control reaches end of non-void function [-Wreturn-type]
   26 |         printf("No\n");
      |         ~~~~~~^~~~~~~~
/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

N = str(input())
if int(N[0]) == 7 or int(N[1]) == 7 or int(N[2]) == 7:
    print('Yes')
else:
    print('No')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = str(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    1 | N = str(input())
      |     ^~~
main.c:1:9: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N = str(input())
      |         ^~~~~
main.c:1:5: error: initializer element is not constant
    1 | N = str(input())
      |     ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if int(N[0]) == 7 or int(N[1]) == 7 or int(N[2]) == 7:
      | ^~
main.c:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('Yes')
      |           ^~~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('No')
      |           ^~~~
Language: C++

#include <string.h>
using namespace std;

int main() {
  char A,B,C;
  cin>>A>>B>>C;
  if(A!='7' && B!='7' && C!='7'){
        cout >>"No">>endl;
  }
  else{
    cout>> "Yes">>endl;
    
  

    
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>A>>B>>C;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout >>"No">>endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout >>"No">>endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout>> "Yes">>endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:19: error: 'endl' was not declared in this scope
   11 |     cout>> "Yes">>endl;
      |                   ^~~~
a.cc:11:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<string.h>
#include<vector>
using namespace std;


int main(){
        cin >>int N;
        String str = Integer.toString(N);
        String []resultArray = str.split("");
        for(int i = 0; i < resultArray.length; i++){
            System.out.println(resultArray[i]);
        }
        for(i=0;i<2;i++){
          if(resultArray[i]==7){
            cout <<'Yes'<<endl;
            break;
          }else{cout << 'No'<<endl;
               }
          
}

Compiler output:
a.cc:16:20: warning: multi-character character constant [-Wmultichar]
   16 |             cout <<'Yes'<<endl;
      |                    ^~~~~
a.cc:18:25: warning: multi-character character constant [-Wmultichar]
   18 |           }else{cout << 'No'<<endl;
      |                         ^~~~
a.cc: In function 'int main()':
a.cc:8:15: error: expected primary-expression before 'int'
    8 |         cin >>int N;
      |               ^~~
a.cc:9:9: error: 'String' was not declared in this scope
    9 |         String str = Integer.toString(N);
      |         ^~~~~~
a.cc:10:17: error: expected primary-expression before ']' token
   10 |         String []resultArray = str.split("");
      |                 ^
a.cc:11:28: error: 'resultArray' was not declared in this scope
   11 |         for(int i = 0; i < resultArray.length; i++){
      |                            ^~~~~~~~~~~
a.cc:12:13: error: 'System' was not declared in this scope; did you mean 'system'?
   12 |             System.out.println(resultArray[i]);
      |             ^~~~~~
      |             system
a.cc:14:13: error: 'i' was not declared in this scope
   14 |         for(i=0;i<2;i++){
      |             ^
a.cc:15:14: error: 'resultArray' was not declared in this scope
   15 |           if(resultArray[i]==7){
      |              ^~~~~~~~~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:7:11: note: to match this '{'
    7 | int main(){
      |           ^
Language: C

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

int main() {
    int N;

vector<int> vec(N);
    cin >> N;
    if (vec.at(1) == 7 || vec.at(2) == 7 || vec.at(3) == 7) {
        cout << "Yes" << endl;
    }
    

    else
    {
        cout << "No" << endl;
    }

    }

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


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

int main() {int n,k,l,o;


      cin>>n;
      n/100=k;
        (n-k*100)/10=l;
        (n-k*100-l*10)=o;
      if(k=7){
      cout<<"Yes"<<endl;
      }
            if(l=7){
            cout<<"Yes"<<endl;
            }
            if(o=7){
            cout<<"Yes"<<endl;}
      else{cout<<"No"<<endl;}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: lvalue required as left operand of assignment
    9 |       n/100=k;
      |       ~^~~~
a.cc:10:18: error: lvalue required as left operand of assignment
   10 |         (n-k*100)/10=l;
      |         ~~~~~~~~~^~~
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         (n-k*100-l*10)=o;
      |         ~~~~~~~~^~~~~~
Language: C

N = input()
 
print('Yes' if '7' in str(N) else 'No')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:3:1: error: expected ',' or ';' before 'print'
    3 | print('Yes' if '7' in str(N) else 'No')
      | ^~~~~
main.c:3:7: warning: multi-character character constant [-Wmultichar]
    3 | print('Yes' if '7' in str(N) else 'No')
      |       ^~~~~
main.c:3:35: warning: multi-character character constant [-Wmultichar]
    3 | print('Yes' if '7' in str(N) else 'No')
      |                                   ^~~~
Language: C

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

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


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

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

int main() {
    int N;

vector<int> vec(N);
    cin >> N;
    if (vec.at(0) == 7 || vec.at(1) == 7 || vec.at(2) == 7) {
        cout << "Yes" << endl;
    }
    

    else
    {
        cout << "No" << endl;
    }

    }

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

N = str(int(input()))
if int(N) in range(100, 999):
    if int(N[0]) == 7 or int(N[1]) == 7 or int(N[2]) == 7:
        print("Yes")
    else:
        print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = str(int(input()))
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    1 | N = str(int(input()))
      |     ^~~
main.c:1:9: error: expected expression before 'int'
    1 | N = str(int(input()))
      |         ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if int(N) in range(100, 999):
      | ^~
Language: C

#include <bits/stdc++.h>

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


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 < (int)(n); i++)
using namespace std;
using ll = long long;

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


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

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

inline int read()
{
	int sum=0,ff=1; char ch=getchar();
	while(!isdigit(ch))
	{
		if(ch=='-') ff=-1;
		ch=getchar();
	}
	while(isdigit(ch))
		sum=sum*10+(ch^48),ch=getchar();
	return sum*ff;
}

char ch[100001];

int mian()
{
	scanf("%s",ch+1);
	for ( int i=1;i<=strlen(ch+1);i++ )
		if((ch[i]^48)==7) 
			return printf("Yes\n"),0;
	printf("No\n");
}



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

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

int main(){
    int n,hyaku,ju,ichi;

    // ページ数
    cin >> n;

    hyaku = n/100;
    ju = (n-hyaku*100)/10;
    ichi = n-hyaku*100-ju*10;
    if((hyaku==7)||(ju==7)||(ichi==7)){
        cout << "Yes" << endl;
    }else{
        cout << "No" << endl;
    }
}

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

#define TRUE 1
#define FALSE 0

int judgeSeven_100(int input){
	int hundredsPlace = input / 100;
  	int isSeven = FALSE;
  
  if(hundredsPlace == 7){
  	isSeven = TRUE;
  }
  	
  return isSeven;
}

int judgeSeven_10(int input){
	int tensPlace = (input % 100) / 10;
	int isSeven = FALSE;
  
  if(tensPlace == 7){
    isSeven = TRUE;
  }
  
	return isSeven;
}

int judgeSeven_1(int input){
	int onesPlace = (input % 10);
  int isSeven = FALSE;
  
  if(onesPlace == 7){
  	isSeven = TRUE;
  }

  return isSeven;
}

int main(void){
  int input;
  char output = "No";
  
  cin >> input;
  
  if(judgeSeven_100(input) == true){
    output = "YES";
  }
  else if(judgeSeven_10(input) == true){
  	output = "YES";
  }
  else if(judgeSeven_1(input) == true){
    output = "YES";
  }
  
  cout << output;
  
  return 0;
}  


Compiler output:
main.c: In function 'main':
main.c:39:17: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   39 |   char output = "No";
      |                 ^~~~
main.c:41:3: error: 'cin' undeclared (first use in this function)
   41 |   cin >> input;
      |   ^~~
main.c:41:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:31: error: 'true' undeclared (first use in this function)
   43 |   if(judgeSeven_100(input) == true){
      |                               ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | #define TRUE 1
main.c:44:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   44 |     output = "YES";
      |            ^
main.c:47:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   47 |         output = "YES";
      |                ^
main.c:50:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   50 |     output = "YES";
      |            ^
main.c:53:3: error: 'cout' undeclared (first use in this function)
   53 |   cout << output;
      |   ^~~~
Language: C

n=input()
cnt=n.count("7")
if cnt!=0:
    print("Yes")
else:
    print("No")

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

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double a = sc.nextInt();
        //int b = sc.nextInt();
        double temp = 0;
        for(double i=1; i <= a ; i++) {
            if( !(i%3 == 0 || i%5 == 0 || i%15 == 0)){
                temp = temp + i;
            }
        }
        System.out.println((temp);
        /*
        if ((a * b) % 2 == 0)
            System.out.println("Even");
        else
            System.out.println("Odd");
        */
    }
}

Compiler output:
Main.java:14: error: ')' or ',' expected
        System.out.println((temp);
                                 ^
1 error
Language: C++

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

int main() {
  int N,i;
    i=0;
    cin >> N;
  if ( N.at(0) == 7) {
    i++;
  }
  if ( N.at(1) == 7) {
    i++;
  }
  if ( N.at(2) == 7) {
    i++;
  }
  
  if (i>0) {
    cout << yes << endl;
  }
  else {
    cout << no << endl;
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |   if ( N.at(0) == 7) {
      |          ^~
a.cc:11:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   11 |   if ( N.at(1) == 7) {
      |          ^~
a.cc:14:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   14 |   if ( N.at(2) == 7) {
      |          ^~
a.cc:19:13: error: 'yes' was not declared in this scope
   19 |     cout << yes << endl;
      |             ^~~
a.cc:22:13: error: 'no' was not declared in this scope
   22 |     cout << no << endl;
      |             ^~
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100)+(J*100));
    
    H = H%7;
    J = J%7;
    I = I%7;
    
    if(H == 0||J == 0||I == 0){
      System.out.print(Yes);
    } else {
       System.out.print(No);
    }
  }
}

Compiler output:
Main.java:18: error: cannot find symbol
      System.out.print(Yes);
                       ^
  symbol:   variable Yes
  location: class Main
Main.java:20: error: cannot find symbol
       System.out.print(No);
                        ^
  symbol:   variable No
  location: class Main
2 errors
Language: C

#include <iostream>
#include <iomanip>
#include <string>
#include <cmath>
#include <algorithm>
#include <vector>
#include <map>
#include <set>
#include <queue>
#include <tuple>
#include <stack>
#include <bitset>

using namespace std;
typedef long long ll;

int main() {

  // ---------------------
  // Input
  
  cin.tie(nullptr);
  ios::sync_with_stdio(false);

  string N;
  cin >> N;

  for(int i = 0; i < 3; i++) {
    if(N[i] == '7') {
      cout << "Yes" << endl;
      return 0;
    }
  }

  cout << "No" << endl;  

  return 0;
  
}


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

#include <iostream>
using namespace std;
int main()
{
	int N,x,y,z;
	cin >> N;
	x = N/100;
	y = N/10 - 10*x;
	z = N %10;

	if(x == 7 || y == 7 || z == 7)
		cout << "\nyes";	
	else
		cout << "\nno";

	return 0;
}


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

num = str(int(input()))
if int(num) in range(100, 999):
    if int(num[0]) == 7 or int(num[1]) == 7 or int(num[2]) == 7:
        print("Yes")
    else:
        print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | num = str(int(input()))
      | ^~~
main.c:1:1: error: type defaults to 'int' in declaration of 'num' [-Wimplicit-int]
main.c:1:7: error: implicit declaration of function 'str' [-Wimplicit-function-declaration]
    1 | num = str(int(input()))
      |       ^~~
main.c:1:11: error: expected expression before 'int'
    1 | num = str(int(input()))
      |           ^~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if int(num) in range(100, 999):
      | ^~
Language: C++

#include <string.h>
using namespace std;

int main() {
  char A,B,C;
  cin>>A>>B>>C;
  if(A!=='7' && B!=='7' && C!=='7'){
        cout >>"No">>endl;
  }
  else{
    cout>> "Yes">>endl;
    
  

    
  }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>A>>B>>C;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <string.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:9: error: expected primary-expression before '=' token
    7 |   if(A!=='7' && B!=='7' && C!=='7'){
      |         ^
a.cc:7:20: error: expected primary-expression before '=' token
    7 |   if(A!=='7' && B!=='7' && C!=='7'){
      |                    ^
a.cc:7:31: error: expected primary-expression before '=' token
    7 |   if(A!=='7' && B!=='7' && C!=='7'){
      |                               ^
a.cc:8:9: error: 'cout' was not declared in this scope
    8 |         cout >>"No">>endl;
      |         ^~~~
a.cc:8:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |         cout >>"No">>endl;
      |                      ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <string.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout>> "Yes">>endl;
      |     ^~~~
a.cc:11:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:19: error: 'endl' was not declared in this scope
   11 |     cout>> "Yes">>endl;
      |                   ^~~~
a.cc:11:19: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100)+(J*100));
    
    H = H%7;
    J = J%7;
    I = I%7;
    
    if(H == 0||J == 0||I == 0){
      System.out.print(Yes);
    } else {
       System.out.print(No);
    }
  }
    

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

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

int main() {
  int N,i
    i=0;
    cin >> N;
  if ( N.at(0) == 7) {
    i++;
  }
  if ( N.at(1) == 7) {
    i++;
  }
  if ( N.at(2) == 7) {
    i++;
  }
  
  if (i>0) {
    cout << yes << endl;
  }
  else {
    cout << no << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'i'
    6 |     i=0;
      |     ^
a.cc:8:10: error: request for member 'at' in 'N', which is of non-class type 'int'
    8 |   if ( N.at(0) == 7) {
      |          ^~
a.cc:9:5: error: 'i' was not declared in this scope
    9 |     i++;
      |     ^
a.cc:11:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   11 |   if ( N.at(1) == 7) {
      |          ^~
a.cc:12:5: error: 'i' was not declared in this scope
   12 |     i++;
      |     ^
a.cc:14:10: error: request for member 'at' in 'N', which is of non-class type 'int'
   14 |   if ( N.at(2) == 7) {
      |          ^~
a.cc:15:5: error: 'i' was not declared in this scope
   15 |     i++;
      |     ^
a.cc:18:7: error: 'i' was not declared in this scope
   18 |   if (i>0) {
      |       ^
a.cc:19:13: error: 'yes' was not declared in this scope
   19 |     cout << yes << endl;
      |             ^~~
a.cc:22:13: error: 'no' was not declared in this scope
   22 |     cout << no << endl;
      |             ^~
Language: C

#include <iostream>
using namespace std;

int main(int argc,char *argv[]){
    int i;
    cin >> i;
    string a;
    a = to_string(i);
    
    const char* s = a.c_str();


    int count = 0;


    for(int i = 0 ;i <= 2;i++){
        if('7' == s[i]){
            count ++;

        }
    
    }

    cout << count << endl;


    return 0;
}

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

import java.util.Scanner;

public class Main{
  public static void main(String args[]){
    Scanner scan = new Scanner(System.in);
    int H, J, I;
    int n = scan.nextInt();
    
    H = n/100;
    J = (n - (H*100))/10;
    I = (n - (H*100)+(J*100));
    
    H = H%7;
    J = J%7;
    I = I%7;
    
    if(H == 0||J == 0||I == 0){
      System.out.print(Yes);
     else
       System.out.print(No);
    }
  }

Compiler output:
Main.java:19: error: 'else' without 'if'
     else
     ^
Main.java:22: error: reached end of file while parsing
  }
   ^
2 errors
Language: C

N = int(input())
N1 = N//100
N2 = (N%100)//10
N3 = (N%100)%10
if N1 == 7 or N2 == 7 or N3 == 7:
    print("Yes")
else:
    print("No")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | N = int(input())
      |     ^~~
Language: C

#define TRUE 1
#define FALSE 0

int judgeSeven_100(int input){
	int hundredsPlace = input / 100;
  	int isSeven = FALSE;
  
  if(hundredsPlace == 7){
  	isSeven = TRUE;
  }
  	
  return isSeven;
}

int judgeSeven_10(int input){
	int tensPlace = (input % 100) / 10;
	int isSeven = FALSE;
  
  if(tensPlace == 7){
    isSeven = TRUE;
  }
  
	return isSeven;
}

int judgeSeven_1(int input){
	int onesPlace = (input % 10);
  int isSeven = FALSE;
  
  if(onesPlace == 7){
  	isSeven = TRUE;
  }

  return isSeven;
}

int main(void){
  int input;
  char output = "No";
  
  cin >> input;
  
  if(judgeSeven_100() == true){
    output = "YES";
  }
  else if(judgeSeven_10() == true){
  	output = "YES";
  }
  else if(judgeSeven_1() == true){
    output = "YES";
  }
  
  cout << output;
  
  return 0;
}  


Compiler output:
main.c: In function 'main':
main.c:39:17: error: initialization of 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   39 |   char output = "No";
      |                 ^~~~
main.c:41:3: error: 'cin' undeclared (first use in this function)
   41 |   cin >> input;
      |   ^~~
main.c:41:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:43:6: error: too few arguments to function 'judgeSeven_100'
   43 |   if(judgeSeven_100() == true){
      |      ^~~~~~~~~~~~~~
main.c:4:5: note: declared here
    4 | int judgeSeven_100(int input){
      |     ^~~~~~~~~~~~~~
main.c:43:26: error: 'true' undeclared (first use in this function)
   43 |   if(judgeSeven_100() == true){
      |                          ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | #define TRUE 1
main.c:44:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   44 |     output = "YES";
      |            ^
main.c:46:11: error: too few arguments to function 'judgeSeven_10'
   46 |   else if(judgeSeven_10() == true){
      |           ^~~~~~~~~~~~~
main.c:15:5: note: declared here
   15 | int judgeSeven_10(int input){
      |     ^~~~~~~~~~~~~
main.c:47:16: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   47 |         output = "YES";
      |                ^
main.c:49:11: error: too few arguments to function 'judgeSeven_1'
   49 |   else if(judgeSeven_1() == true){
      |           ^~~~~~~~~~~~
main.c:26:5: note: declared here
   26 | int judgeSeven_1(int input){
      |     ^~~~~~~~~~~~
main.c:50:12: error: assignment to 'char' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   50 |     output = "YES";
      |            ^
main.c:53:3: error: 'cout' undeclared (first use in this function)
   53 |   cout << output;
      |   ^~~~
Language: C

#include<stdio.h>
int main(void){
  int n;
  
  scanf("%d", &n);
  if (N % 10 == 7 || (N % 100 >= 70 || N % 100 <= 79) ||
     (N % 1000 >= 700 || N % 1000 <= 799))
    printf("Yes");
  else
    printf("No");
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'N' undeclared (first use in this function)
    6 |   if (N % 10 == 7 || (N % 100 >= 70 || N % 100 <= 79) ||
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C++


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

int main() {int n,k,l,o;


      cin>>n;
      n/100=k;
        (n-k*100)/10=l;
        (n-k*100-l*10)=o;
      if(k=7||l=7||o=7){
      cout<<"Yes"<<endl;
      }
      else{cout<<"No"<<endl;}
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: lvalue required as left operand of assignment
    9 |       n/100=k;
      |       ~^~~~
a.cc:10:18: error: lvalue required as left operand of assignment
   10 |         (n-k*100)/10=l;
      |         ~~~~~~~~~^~~
a.cc:11:17: error: lvalue required as left operand of assignment
   11 |         (n-k*100-l*10)=o;
      |         ~~~~~~~~^~~~~~
a.cc:12:18: error: lvalue required as left operand of assignment
   12 |       if(k=7||l=7||o=7){
      |                 ~^~~
Language: C

#include <iostream>
using namespace std;
int main()
{
	int N,x,y,z;
	cin >> N;
	x = N/100;
	y = N/10 - 10*x;
	z = N %10;

	if(x == 7 || y == 7 || Z == 7)
		cout << "\nyes";	
	else
		cout << "\nno";

	return 0;
}

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