Compile Error

/in/foo.c: In function 'main':
/in/foo.c:7:5: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
     scanf_s("%d", &n);
     ^~~~~~~
/in/foo.c:12:18: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
         printf("%s", x);
                  ^
/tmp/ccSKm2lK.o: In function `main':
foo.c:(.text.startup+0x17): undefined reference to `scanf_s'
foo.c:(.text.startup+0x2a): undefined reference to `scanf_s'
foo.c:(.text.startup+0x51): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
题目
P1082 1-3 序列循环左移
语言
C
递交时间
2021-09-30 22:00:24
评测时间
2021-09-30 22:01:08
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes