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", &x1, &x2);
| ^~~~~~~
| scanf
foo.c:9:9: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
9 | if (x1 < x2)
| ^~
foo.c:11:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
11 | x1 = x2;
| ^~
foo.c:18:9: warning: this 'while' clause does not guard... [-Wmisleading-indentation]
18 | while (flag != 0)
| ^~~~~
foo.c:20:17: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'while'
20 | x2 = flag;
| ^~
foo.c:16:14: warning: 'temp' may be used uninitialized [-Wmaybe-uninitialized]
16 | flag = x1 % x2;
| ~~~~~^~~~~~~~~
foo.c:6:30: note: 'temp' was declared here
6 | int x1, x2, p, flag, temp;
| ^~~~
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/ccIeop7I.o: in function `main':
foo.c:(.text.startup+0x16): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务