foo.c: In function 'main':
foo.c:7:9: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
7 | scanf_s("%d%d%d%d", &a, &b,&c,&d);
| ^~~~~~~
| scanf
foo.c:8:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
8 | if (a == 1 || a == 3 || a == 5 || a == 7 || a == 8 || a == 10 || a == 12);
| ^~
foo.c:9:10: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
9 | e = a * 31 + b;
| ^
foo.c:5:34: warning: unused variable 'h' [-Wunused-variable]
5 | int a, b, c, d, e, f, g, h ;
| ^
/nix/store/vhf2cr6immz4qdxd83y025fnxim8mmfg-binutils-2.38/bin/ld: /tmp/cc56SHxB.o: in function `main':
foo.c:(.text.startup+0x2a): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务