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

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

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

  if (N/100 == 7 ) {
    cout << "Yes" << endl;
  }

  else if ( (N%100)/10 == 7 ) {
    cout << "Yes" << endl;
  }

  else if ( N%10 == 7 ) {
    cout << "Yes" << endl;
  }

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

  
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <bits/stdc++.h>
      |  ^
      |  if
main.c:2:1: error: unknown type name 'using'
    2 | using namespace std;
      | ^~~~~
main.c:2:17: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'std'
    2 | using namespace std;
      |                 ^~~
main.c: In function 'main':
main.c:6:3: error: 'cin' undeclared (first use in this function)
    6 |   cin >> N;
      |   ^~~
main.c:6:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:5: error: 'cout' undeclared (first use in this function)
    9 |     cout << "Yes" << endl;
      |     ^~~~
main.c:9:22: error: 'endl' undeclared (first use in this function)
    9 |     cout << "Yes" << endl;
      |                      ^~~~
Language: C

N = int(input(""))
if "7" in str(N):
    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

#include<bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	while(n)
	{
		if(n%10==7)
		{
			cout<<"Yes";
			return 0;
		}
		n/=10;
	}
	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>
using namespace std;

int main() {
  int 999>=N>=100;
  if ((N-7)%10＝＝0) {
    cout <<Yes<< endl;
  }
  if (((N-N/100*100)/10)==7) {
    cout <<Yes<< endl;
  }
  if (((N/100)==7){
    cout <<Yes<< endl;
    
    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:8: error: 'N' was not declared in this scope
    6 |   if ((N-7)%10＝＝0) {
      |        ^
a.cc:6:13: error: unable to find numeric literal operator 'operator""\U0000ff1d\U0000ff1d0'
    6 |   if ((N-7)%10＝＝0) {
      |             ^~~~~~~
a.cc:7:12: error: 'Yes' was not declared in this scope
    7 |     cout <<Yes<< endl;
      |            ^~~
a.cc:9:9: error: 'N' was not declared in this scope
    9 |   if (((N-N/100*100)/10)==7) {
      |         ^
a.cc:10:12: error: 'Yes' was not declared in this scope
   10 |     cout <<Yes<< endl;
      |            ^~~
a.cc:12:9: error: 'N' was not declared in this scope
   12 |   if (((N/100)==7){
      |         ^
a.cc:12:19: error: expected ')' before '{' token
   12 |   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++

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

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

  if (N/100 == 7 ) {
    cout << "Yes" << endl;
  }

  else if ( (N%100)/10 == 7 ) {
    cout << "Yes" << endl;
  }

  else if ( N%10 == 7 ) {
    cout << "Yes" << endl;
  }

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

  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <bits/stdc++.h>
      |  ^
      |  if
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #i#include <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #i#include <bits/stdc++.h>
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:17:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << "No" << endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:21: error: 'endl' was not declared in this scope
   21 |     cout << "No" << endl;
      |                     ^~~~
a.cc:21:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:15:10: error: implicit declaration of function 'prinitf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   15 |     else prinitf("No\n");
      |          ^~~~~~~
      |          printf
Language: C

N = int(input(""))
if N in range(100, 999):
    if "7" in str(N):
        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++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  if (N==107,207,307,407,507,607,707,807,907){
    cout<<'Yes'<<endl;
  }
  else if (N==117,217,317,417,517,617,717,817,917){
    cout<<'Yes'<<endl;
  }
  else if (N==127,227,327,427,527,627,727,827,927){
    cout<<'Yes'<<endl;
  }
  else if (N==137,237,337,437,537,637,737,837,937){
    cout<<'Yes'<<endl;
  }
  else if (N==147,247,347,447,547,647,747,847,947){
    cout<<'Yes'<<endl;
  }
  else if (N==157,257,357,457,557,657,757,857,957){
    cout<<'Yes'<<endl;
  }
  else if (N==167,267,367,467,567,667,767,867,967){
    cout<<'Yes'<<endl;
  }
  else if (N==177,277,377,477,577,677,777,877,977){
    cout<<'Yes'<<endl;
  }
  else if (N==187,287,387,487,587,687,787,887,987){
    cout<<'Yes'<<endl;
  }
  else if (N==197,297,397,497,597,697,797,897,997){
    cout<<'Yes'<<endl;
  }
  else {
    cout<<'No'<<endl;
  }
 

Compiler output:
a.cc:8:11: warning: multi-character character constant [-Wmultichar]
    8 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:11:11: warning: multi-character character constant [-Wmultichar]
   11 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:17:11: warning: multi-character character constant [-Wmultichar]
   17 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:20:11: warning: multi-character character constant [-Wmultichar]
   20 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:23:11: warning: multi-character character constant [-Wmultichar]
   23 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:26:11: warning: multi-character character constant [-Wmultichar]
   26 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:29:11: warning: multi-character character constant [-Wmultichar]
   29 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:32:11: warning: multi-character character constant [-Wmultichar]
   32 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:35:11: warning: multi-character character constant [-Wmultichar]
   35 |     cout<<'Yes'<<endl;
      |           ^~~~~
a.cc:38:11: warning: multi-character character constant [-Wmultichar]
   38 |     cout<<'No'<<endl;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:39:4: error: expected '}' at end of input
   39 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C

N = str(int(input("")))
if int(N) in range(100, 999):
    if "7" in N:
        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() {

  int N = 0;
  cin >> N;
  int M = 0, P = 0;
  M = N - N / 100 * 100; 
  P = M - M / 10 * 10;
  
  if(N / 100 == 7){
    cout << "Yes" << endl;
  }
  
  else if(M / 10 == 7){
    cout << "Yes" << endl;
  }
  
  else if(P == 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/stdc++.h>
using namespace std;

int main() {
  int 999>=N>=100;
  if ((N-7）%10＝＝0) {
    cout <<Yes<< endl;
  }
  if (((N-N/100*100)/10)==7) {
    cout <<Yes<< endl;
  }
  if (((N/100)==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:8: error: 'N' was not declared in this scope
    6 |   if ((N-7）%10＝＝0) {
      |        ^
a.cc:6:10: error: unable to find numeric literal operator 'operator""\U0000ff09'
    6 |   if ((N-7）%10＝＝0) {
      |          ^~~
a.cc:6:14: error: unable to find numeric literal operator 'operator""\U0000ff1d\U0000ff1d0'
    6 |   if ((N-7）%10＝＝0) {
      |              ^~~~~~~
a.cc:6:22: error: expected ')' before '{' token
    6 |   if ((N-7）%10＝＝0) {
      |      ~               ^~
      |                      )
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++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,i,s,d;
    scanf("%d",&a);
    b=a%10;
    a=a/10;
    c=a%10;
    a=a/10;
    d=a%10;
    if(b==7||c==7||d==7)
    {
        printf("Yes\n");
    }
    else prinitf("No\n");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:10: error: 'prinitf' was not declared in this scope; did you mean 'printf'?
   16 |     else prinitf("No\n");
      |          ^~~~~~~
      |          printf
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:14: 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:50: 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

N = (input())
len(N) <= 3
print('Yes')if '7' in N 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:6: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N = (input())
      |      ^~~~~
main.c:1:5: error: initializer element is not constant
    1 | N = (input())
      |     ^
main.c:2:1: error: expected ',' or ';' before 'len'
    2 | len(N) <= 3
      | ^~~
main.c:3:7: warning: multi-character character constant [-Wmultichar]
    3 | print('Yes')if '7' in N else print('No')
      |       ^~~~~
main.c:3:36: warning: multi-character character constant [-Wmultichar]
    3 | print('Yes')if '7' in N else print('No')
      |                                    ^~~~
Language: C++

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

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

  if (N/100 == 7 ) {
    cout << "Yes" << endl;
  }

  if ( (N%100)/10 == 7 ) {
    cout << "Yes" << endl;
  }

  if ( N%10== 7 ) {
    cout << "Yes" << endl;
  }

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

  
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <bits/stdc++.h>
      |  ^
      |  if
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #i#include <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #i#include <bits/stdc++.h>
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:17:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:21:5: error: 'cout' was not declared in this scope
   21 |     cout << "No" << endl;
      |     ^~~~
a.cc:21:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:21: error: 'endl' was not declared in this scope
   21 |     cout << "No" << endl;
      |                     ^~~~
a.cc:21:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
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*10));
         
    if(H/7 == 1||J/7 == 1||I/7 == 1){
      System.out.print("Yes");
    } else {
      System.out.print("No");
    }
  }
}


Compiler output:
Main.java:11: error: ')' expected
    I = (n - ((H*100)+(J*10));
                             ^
1 error
Language: C++

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

int main() {
  int 999>=N>=100;
  else if ((N-7）%10＝＝0) {
    cout <<Yes<< endl;
  }
 else if (((N-N/100*100)/10)==7) {
    cout <<Yes<< endl;
  }
 else if (((N/100)==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-7）%10＝＝0) {
      |   ^~~~
a.cc:6:13: error: 'N' was not declared in this scope
    6 |   else if ((N-7）%10＝＝0) {
      |             ^
a.cc:6:15: error: unable to find numeric literal operator 'operator""\U0000ff09'
    6 |   else if ((N-7）%10＝＝0) {
      |               ^~~
a.cc:6:19: error: unable to find numeric literal operator 'operator""\U0000ff1d\U0000ff1d0'
    6 |   else if ((N-7）%10＝＝0) {
      |                   ^~~~~~~
a.cc:6:27: error: expected ')' before '{' token
    6 |   else if ((N-7）%10＝＝0) {
      |           ~               ^~
      |                           )
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++

#include <iostream>
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:14: 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:50: 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 <iostream>
using namesapce std;

int main(){
 int a;
  cin >> a;
  for(int i = 0; i < 3; i++){
  if(a%10==7){
   cout << "yes" << endl;
    return 0;
  }
    a/=10;
  }
  cout << "No" << endl;
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin >> a;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |    cout << "yes" << endl;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |    cout << "yes" << endl;
      |                     ^~~~
      |                     std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |   cout << "No" << endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:19: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |   cout << "No" << endl;
      |                   ^~~~
      |                   std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <iostream>
using namesapce std;

int main(){
 int a;
  cin >> a;
  for(int i = 0; i < 3; i++){
  if(a%10==7){
   cout << "yes" << endl;
    return 0;
  }
    a/=10;
  }
  cout << "No" << endl;
}

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

#include <bits/stdc++.h>

using namespace std;

int main() {
    ios_base::sync_with_stdio(false); cin.tie(0);
    string s;
    cin >> s;
    bool ans = false;
    for (char ch: s) {
        if (ch == '7') {
            ans = true;
        }
    }
    cout << (ans ? "Yes" : "No") << endl;
}



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

#include <iostream>
using namespace std;

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


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

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

int main() {
  int64_t a;
  int64_t b;
  int64_t c;
  int64_t d;
  cin>>a;
  b=a/15;
  c=a%15;
  d=45c+15*c*(c+1)/2;
  if(c==1){
    d+=(45+15*c)+1;
  }
  if(c==2||c==3){
    d+=(45+15*c)*2+3;
  }
  if(c==4||c==5||c==6){
    d+=(45+15*c)*3+7;
  }
  if(c==7){
    d+=(45+15*c)*4+14;
  }
  if(c==8||c==9||c==10){
    d+=(45+15*c)*5+22;
  }
  if(c==11||c==12){
    d+=(45+15*c)*6+33;
  }
  if(c==13){
    d+=(45+15*c)*7+46;
  }
  if(c==14){
    d+=(45+15*c)*8+60;
  }
  cout<<d<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: unable to find numeric literal operator 'operator""c'
   13 |   d=45c+15*c*(c+1)/2;
      |     ^~~
Language: C

n = input()
if '7' in n:
  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 'if'
    2 | if '7' in n:
      | ^~
main.c:3:9: warning: multi-character character constant [-Wmultichar]
    3 |   print('Yes')
      |         ^~~~~
main.c:5:9: warning: multi-character character constant [-Wmultichar]
    5 |   print('No')
      |         ^~~~
Language: C

#include <iostream>
#include <algorithm>
#include <cmath>
#include <vector>
#include <set>
#include <map>
#include <queue>
#include <string>
using namespace std;
typedef long long int ll;
typedef vector<int> vi;
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define Sort(a) sort(a.begin(), a.end())
const int INF = 1<<30;
const ll MOD = 1000000007;

int main(void) {

    string s; cin >> s;

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


    return 0;
}

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

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

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


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

import java.util.*;
import java.io.*:
public class Main
{
  public static void main(String args[])
  {
    Scanner sc=new Scanner(System.in);
    int n=sc.nextInt();
    boolean flag=false;
    while(n!=0)
    {
      int d=n%10;
      if(d==7)
      {flag=true;
        break;}
      n/=10;
    }
   if(flag)
     System.out.println("Yes");
    else
     System.out.println("No"); 
  }
}
   
    

Compiler output:
Main.java:2: error: ';' expected
import java.io.*:
                ^
1 error
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: template argument 1 is invalid
    4 |   vector<int i=0> N(i);
      |                 ^
a.cc:4:17: error: template argument 2 is invalid
a.cc:4:21: error: 'i' was not declared in this scope
    4 |   vector<int i=0> N(i);
      |                     ^
a.cc:7:9: error: request for member 'at' in 'N', which is of non-class type 'int'
    7 |    if(N.at(i)=='7'){
      |         ^~
a.cc: At global scope:
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before '}' token
    8 |       ans++}
      |            ^
      |            ;
a.cc:10:10: error: expected ';' before '}' token
   10 |     ans++
      |          ^
      |          ;
   11 |   }
      |   ~       
a.cc:13:10: error: expected ';' before '}' token
   13 |     ans++
      |          ^
      |          ;
   14 |   }
      |   ~
Language: C++

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

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

  if (N/100 == 7 ) {
    cout << "Yes" << endl;
  }

  if ( (N%100)/10 == 7 ) {
    cout << "Yes" << endl;
  }

  if ( N%10== 7 ) {
    cout << "Yes" << endl;
  }

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

  
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #i; did you mean #if?
    1 | #i#include <bits/stdc++.h>
      |  ^
      |  if
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #i#include <bits/stdc++.h>
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #i#include <bits/stdc++.h>
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:13:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:22: error: 'endl' was not declared in this scope
   13 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:13:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:17:5: error: 'cout' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:17:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:22: error: 'endl' was not declared in this scope
   17 |     cout << "Yes" << endl;
      |                      ^~~~
a.cc:17:22: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:20:9: error: expected primary-expression before ')' token
   20 |   else () {
      |         ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:17: error: 'i' was not declared in this scope
    4 |   vector<int> N(i);
      |                 ^
a.cc:16:4: error: expected '}' at end of input
   16 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C

#include <iostream>
#include <cstdio>
#include <algorithm>
#include <cmath>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <cctype>
#include <climits>
#include <bitset>
#include <utility>
#include <cstring>
#include <numeric>
using namespace std;
typedef long double ld;
typedef long long int ll;
typedef unsigned long long int ull;
typedef vector<int> vi;
typedef vector<char> vc;
typedef vector<string> vs;
typedef vector<pair<int,int>> vpii;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvc;
typedef vector<vector<string>> vvs;
#define rep(i,n) for(int i=0;i<n;i++)
#define repll(i,n) for(long long int i=0;i<n;i++)
#define fin(ans) cout<<(ans)<<endl
#define P 1000000007
#define STI(s) atoi(s.c_str())//string to int
#define mp(p,q) make_pair(p,q)
#define Sort(a) sort(a.begin(),a.end())
template<class T> inline bool chmax(T& a,T b){if(a<b){a=b;return 1;}return 0;}
template<class T> inline bool chmin(T& a,T b){if(a>b){a=b;return 1;}return 0;}
const int INF = INT_MAX;
const long long LLINF = 1LL<<60;
template <typename T_char>
char ToUpper (char cX) { return toupper(cX); }
//g++ -std=c++1z temp.cpp
//./a.exe
ll digit(ll a){
    ll count = 0;
    for (ll i = 0; i < a; i++)
    {   if (a == 0)
        {
            break;
        }else
        {
            a = a/10;
            count++;
        }
    }
    return count;
}
//桁数のカウント
//pow(x,n) == x^n
//sum = accumulate(v.begin(),v.end(),0);
ll gcd(ll a, ll b) { return b ? gcd(b, a%b) : a;}
ll lcm(ll a, ll b) { return a / gcd(a,   b) * b;}



int main(void){ios::sync_with_stdio(false);cin.tie(0);
/////////////////////////////////////////////////////

int n;
cin >> n;
if(n/100 == 7 || (n%100)/10 == 7 || n%10 == 7){
    cout << "Yes" << endl;
    return 0;
}else{
    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<bits/stdc++.h>
#define ll long long
using namespace std;
void solve()
{
	string s;cin>>s;
	if(s[0]=='7' || s[1]=='7' || s[2]=='7')
	cout<<"Yes";
	else
	cout<<"No";
}
int main()
{
//	int t;cin>>t;
//	while(t--)
	solve();
}


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

N = input("")
N = str(N)
if int(N) in range(100, 999):
    if str(7) in N:
        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;
typedef long long ll;
int n;
int main()
{
    cin>>n;
    bool flag=false;
    while(n)
        flag|=n%10==7,n/=10;
    cout<<(flag?"Yes\n":"No\n");
}


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 <string.h>
#include <iostream>
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:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  string 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:7:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n.at(0) == "7" || n.at(1) == "7" n.at(2) == "7") {
      |      ~~~~~~~~^~~~~~
a.cc:7:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |   if(n.at(0) == "7" || n.at(1) == "7" n.at(2) == "7") {
      |                        ~~~~~~~~^~~~~~
a.cc:7:38: error: expected ')' before 'n'
    7 |   if(n.at(0) == "7" || n.at(1) == "7" n.at(2) == "7") {
      |     ~                                ^~
      |                                      )
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: lvalue required as left operand of assignment
    8 |   if ( (N-7) % 10 = 0 )
      |        ~~~~~~^~~~
a.cc:11:19: error: lvalue required as left operand of assignment
   11 |   if ( (N/10 - 7) % 10 = 0 )
      |        ~~~~~~~~~~~^~~~
a.cc:14:20: error: lvalue required as left operand of assignment
   14 |   if ( (N/100 - 7) % 10 = 0 )
      |        ~~~~~~~~~~~~^~~~
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 <iostream>
#include <string>
#include <vector>
#include <algorithm>
using namespace std;

int main() {
  int N;
  cin >> N;
  int sum_all=N(N+1)/2;
  int three=N/3;
  int five=N/5;
  int fif=N/15;
  int sum3=3(3**three-1)/2;
  int sum5=5(5**five-1)/4;
  int sum15=15(15**fif-1)/14;
  int sum_o=sum3+sum5-sum15;
  cout << sum_all-sum_o << endl;
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'N' cannot be used as a function
   10 |   int sum_all=N(N+1)/2;
      |               ~^~~~~
a.cc:14:16: error: invalid type argument of unary '*' (have 'int')
   14 |   int sum3=3(3**three-1)/2;
      |                ^~~~~~
a.cc:14:24: error: expression cannot be used as a function
   14 |   int sum3=3(3**three-1)/2;
      |                        ^
a.cc:15:16: error: invalid type argument of unary '*' (have 'int')
   15 |   int sum5=5(5**five-1)/4;
      |                ^~~~~
a.cc:15:23: error: expression cannot be used as a function
   15 |   int sum5=5(5**five-1)/4;
      |                       ^
a.cc:16:19: error: invalid type argument of unary '*' (have 'int')
   16 |   int sum15=15(15**fif-1)/14;
      |                   ^~~~
a.cc:16:25: error: expression cannot be used as a function
   16 |   int sum15=15(15**fif-1)/14;
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  long long int N,long long int sum=0;
  cin>>N;
  for(int i=1;i<=N;i++)
  {
    if(i%3!=0 && i%5!=0)
      sum=sum+i;
  }
  cout<<sum;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:19: error: expected unqualified-id before 'long'
    5 |   long long int N,long long int sum=0;
      |                   ^~~~
a.cc:10:7: error: 'sum' was not declared in this scope
   10 |       sum=sum+i;
      |       ^~~
a.cc:12:9: error: 'sum' was not declared in this scope
   12 |   cout<<sum;
      |         ^~~
Language: C

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

int main() {
 int n;
 cin >> n;
 int k = n / 100;
 int l = (n / 10) - 7;
 int m = n - 7;
 if(k == 7 || l % 10 == 0 || m % 10 == 0){
     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>
using namespace std;
typedef signed long long ll;

#undef _P
#define _P(...) (void)printf(__VA_ARGS__)
#define FOR(x,to) for(x=0;x<(to);x++)
#define FORR(x,arr) for(auto& x:arr)
#define ITR(x,c) for(__typeof(c.begin()) x=c.begin();x!=c.end();x++)
#define ALL(a) (a.begin()),(a.end())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
//-------------------------------------------------------

string S;

void solve() {
	int i,j,k,l,r,x,y; string s;
	
	cin>>S;
	FORR(c,S) if(c=='7') return _P("Yes\n");
	_P("No\n");
}


int main(int argc,char** argv){
	string s;int i;
	if(argc==1) ios::sync_with_stdio(false), cin.tie(0);
	FOR(i,argc-1) s+=argv[i+1],s+='\n'; FOR(i,s.size()) ungetc(s[s.size()-1-i],stdin);
	cout.tie(0); 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++

#include <iostream>
using namespace std;

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


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

#include <conio.h>


int main()
{
    int a[10000],i,n=3;

    for(i=0; i<n; i++)
    {
        scanf("%d",&a[i]);
    }

    for(i=0; i<n; i++)
    {
        if(a[i]==7)
        {
			printf("Yes ");
            return 0;
        }

    }

	printf("No");
}

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

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
#define F first
#define S second
#define PB push_back
#define MP make_pair
#define rep(i,a,b) for (int i = a; i <= b; i++)
#define lin puts("");
ll n,x,y,a[300000],b[300000],c=0,t=0,sum=0,z=0,i,j,f=0;
char ch[101],cr,ss[101];
string s;
int main()
{
    cin>>n;
    while(n)
    {
        if(n%10==7)
        {
            t=1;
            break;
        }
        n/=10;
    }
    if(t)
        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 <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){
       printf("YES");
  }
  else if(judgeSeven_10(input) == true){
       printf("YES");
  }
  else if(judgeSeven_1(input) == true){
       printf("YES");
  }
  else{
  	printf("NO");
  }
  
  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){
      |                               ^~~~
Language: C++

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

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


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

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


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = list(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 'list' [-Wimplicit-function-declaration]
    1 | N = list(input())
      |     ^~~~
main.c:1:10: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | N = list(input())
      |          ^~~~~
main.c:1:5: error: initializer element is not constant
    1 | N = list(input())
      |     ^~~~
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if '7' in N:
      | ^~
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<bits/stdc++.h>
using namespace std;
int main()
{
  int x,r,j=0;
  cin>>x;
  while(x!=0)
  {
     x=x/10;
     r=x%10;
     if(r==7)
     {
         j++;
         break;
     }



  }
  j>0?cout<<"Yes"<<endl:cout<<"No"<<endl;
}


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() {
  char N;
  cin>>N;
  int ans=0;
 for(int i=0;i<=2;i++){
   if(N.at(i)=='7'){
     ans++;
   }
 }
  if(ans==0){
    cout<<"No"<<endl;
  }
  else{
    cout<<"Yes"<<endl;
  }
     
 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: request for member 'at' in 'N', which is of non-class type 'char'
    8 |    if(N.at(i)=='7'){
      |         ^~
a.cc:17:4: error: expected '}' at end of input
   17 |   }
      |    ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
  {
  string s;
  cin>>s;
  for(i=0;i<s.size();i++)
    {
    if(s[i]=='7')
      {
      cout<<"Yes"<<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 <iostream>
#include <algorithm>
#include <iomanip>
#include <cstring>
#include <cmath>
#include <iomanip>
#include <cctype>
#include <vector>
#include <string>
#include <limits.h>
#include <set>
#define ll long 
using namespace std;


int main()
{
ios_base::sync_with_stdio(false);

    int num;
    cin>>num;
    int d;
    int n = num;
    int count = 0;
    while(n>0)
    {
    	d = n%10;
    	if(d==7)
    	{
    		count++;
    	}
    	n = n/10;
    }
    if(count==0)
    	cout<<"No\n";
    else
    	cout<<"Yes\n";
}


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

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

int main()
{
  string n;
  if(n[0] == "7" || n[1] == "7" n[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

#include<bits/stdc++.h>
#define eps 1e-8
#define pr pair<int,int>
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
const int INF = 0x3f3f3f3f;
const int maxx = 1e5;

int main()
{
	int n;
	string s1;
	cin >> n;
	s1 = to_string(n);
	int flag = 0;
	for(int i = 0; i < s1.size(); i ++)
	{
		if(s1[i] == '7'){
			flag = 1;
			break;
		}
	 } 
	if(flag) puts("Yes");
	else puts("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.