Language: C

int main(void) {
	const char hitachi[3] = { "hi" };
	char input[11];
	int ii;
	int not_hitachi = 1;
 
	memset(input, 0x00, sizeof(input));
 
	scanf_s("%s", input,10);
	for (ii = 0; input[ii] != 0 && ii<10;) {
		if (!(memcmp(&input[ii], hitachi, sizeof(char)*2))) {
			not_hitachi = 0;
			continue;
		}
		else {
			not_hitachi = 1;
			break;
		}
	}
 
	if (not_hitachi != 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
 
	return 0;
}
int main(void) {
	char hitachi[3] = { "hi" };
	char input[11];
	int ii;
	int not_hitachi = 1;
 
	memset(input, 0x00, sizeof(input));
 
	scanf("%s", input);
	for (ii = 0; input[ii] != 0 && ii<10;) {
		if (!(memcmp(&input[ii], hitachi, sizeof(char)*2))) {
			not_hitachi = 0;
			continue;
		}
		else {
			not_hitachi = 1;
			break;
		}
	}
 
	if (not_hitachi != 0) {
		printf("Yes\n");
	}
	else {
		printf("No\n");
	}
 
	return 0;
}
提出情報

Compiler output:
main.c: In function 'main':
main.c:7:9: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
    7 |         memset(input, 0x00, sizeof(input));
      |         ^~~~~~
main.c:1:1: note: include '<string.h>' or provide a declaration of 'memset'
  +++ |+#include <string.h>
    1 | int main(void) {
main.c:7:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
    7 |         memset(input, 0x00, sizeof(input));
      |         ^~~~~~
main.c:7:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:9:9: error: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
    9 |         scanf_s("%s", input,10);
      |         ^~~~~~~
main.c:11:23: error: implicit declaration of function 'memcmp' [-Wimplicit-function-declaration]
   11 |                 if (!(memcmp(&input[ii], hitachi, sizeof(char)*2))) {
      |                       ^~~~~~
main.c:11:23: note: include '<string.h>' or provide a declaration of 'memcmp'
main.c:22:17: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   22 |                 printf("Yes\n");
      |                 ^~~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'printf'
  +++ |+#include <stdio.h>
    1 | int main(void) {
main.c:22:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   22 |                 printf("Yes\n");
      |                 ^~~~~~
main.c:22:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:25:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   25 |                 printf("No\n");
      |                 ^~~~~~
main.c:25:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:30:5: error: redefinition of 'main'
   30 | int main(void) {
      |     ^~~~
main.c:1:5: note: previous definition of 'main' with type 'int(void)'
    1 | int main(void) {
      |     ^~~~
main.c: In function 'main':
main.c:36:9: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   36 |         memset(input, 0x00, sizeof(input));
      |         ^~~~~~
main.c:36:9: note: include '<string.h>' or provide a declaration of 'memset'
main.c:38:9: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   38 |         scanf("%s", input);
      |         ^~~~~
main.c:38:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:38:9: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
main.c:38:9: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:51:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   51 |                 printf("Yes\n");
      |                 ^~~~~~
main.c:51:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:54:17: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   54 |                 printf("No\n");
      |                 ^~~~~~
main.c:54:17: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c: At top level:
main.c:59:1: error: expected '=', ',', ';', 'asm' or '__attribute__' at end of input
   59 | 提出情報
      | ^~~~~~~~