Language: C

#include <stdio.h>

bool judgeSeven_100(int input){
	int hundredsPlace = input / 100;
  	bool isSeven = false;
  
  if(hundredsPlace == 7){
  	isSeven = true;
  }
  	
  return isSeven;
}

bool judgeSeven_10(int input){
	int tensPlace = (input % 100) / 10;
  bool isSeven = false;
  
  if(tensPlace == 7){
    isSeven = true;
  }
  
	return isSeven;
}

bool judgeSeven_1(int input){
	int onesPlace = (input % 10);
  bool isSeven = false;
  
  if(onesPlace == 7){
  	isSeven = true;
  }

  return isSeven;
}

int main(void){
  int input;
  string 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:3:1: error: unknown type name 'bool'
    3 | bool judgeSeven_100(int input){
      | ^~~~
main.c:2:1: note: 'bool' 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: In function 'judgeSeven_100':
main.c:5:9: error: unknown type name 'bool'
    5 |         bool isSeven = false;
      |         ^~~~
main.c:5:9: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:24: error: 'false' undeclared (first use in this function)
    5 |         bool isSeven = false;
      |                        ^~~~~
main.c:5:24: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:5:24: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:19: error: 'true' undeclared (first use in this function)
    8 |         isSeven = true;
      |                   ^~~~
main.c:8:19: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: At top level:
main.c:14:1: error: unknown type name 'bool'
   14 | bool judgeSeven_10(int input){
      | ^~~~
main.c:14:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: In function 'judgeSeven_10':
main.c:16:3: error: unknown type name 'bool'
   16 |   bool isSeven = false;
      |   ^~~~
main.c:16:3: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:16:18: error: 'false' undeclared (first use in this function)
   16 |   bool isSeven = false;
      |                  ^~~~~
main.c:16:18: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:19:15: error: 'true' undeclared (first use in this function)
   19 |     isSeven = true;
      |               ^~~~
main.c:19:15: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: At top level:
main.c:25:1: error: unknown type name 'bool'
   25 | bool judgeSeven_1(int input){
      | ^~~~
main.c:25:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: In function 'judgeSeven_1':
main.c:27:3: error: unknown type name 'bool'
   27 |   bool isSeven = false;
      |   ^~~~
main.c:27:3: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:27:18: error: 'false' undeclared (first use in this function)
   27 |   bool isSeven = false;
      |                  ^~~~~
main.c:27:18: note: 'false' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:30:19: error: 'true' undeclared (first use in this function)
   30 |         isSeven = true;
      |                   ^~~~
main.c:30:19: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c: In function 'main':
main.c:38:3: error: unknown type name 'string'; did you mean 'stdin'?
   38 |   string output = "No";
      |   ^~~~~~
      |   stdin
main.c:38:19: error: initialization of 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   38 |   string output = "No";
      |                   ^~~~
main.c:40:3: error: 'cin' undeclared (first use in this function)
   40 |   cin >> input;
      |   ^~~
main.c:42:6: error: too few arguments to function 'judgeSeven_100'
   42 |   if(judgeSeven_100() == true){
      |      ^~~~~~~~~~~~~~
main.c:3:6: note: declared here
    3 | bool judgeSeven_100(int input){
      |      ^~~~~~~~~~~~~~
main.c:42:26: error: 'true' undeclared (first use in this function)
   42 |   if(judgeSeven_100() == true){
      |                          ^~~~
main.c:42:26: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:43:12: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   43 |     output = "YES";
      |            ^
main.c:45:11: error: too few arguments to function 'judgeSeven_10'
   45 |   else if(judgeSeven_10() == true){
      |           ^~~~~~~~~~~~~
main.c:14:6: note: declared here
   14 | bool judgeSeven_10(int input){
      |      ^~~~~~~~~~~~~
main.c:46:16: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   46 |         output = "YES";
      |                ^
main.c:48:11: error: too few arguments to function 'judgeSeven_1'
   48 |   else if(judgeSeven_1() == true){
      |           ^~~~~~~~~~~~
main.c:25:6: note: declared here
   25 | bool judgeSeven_1(int input){
      |      ^~~~~~~~~~~~
main.c:49:12: error: assignment to 'int' from 'char *' makes integer from pointer without a cast [-Wint-conversion]
   49 |     output = "YES";
      |            ^
main.c:52:3: error: 'cout' undeclared (first use in this function)
   52 |   cout << output;
      |   ^~~~