记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:10:2: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
  scanf_s("%d",&n);
  ^~~~~~~
/in/foo.c:31:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
   printf("%d ",&num[i]);
            ^
/tmp/ccsg4THm.o: In function `main':
foo.c:(.text.startup+0x1c): undefined reference to `scanf_s'
foo.c:(.text.startup+0x49): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

信息

递交者
类型
自测
题目
P1001 数组--排序
语言
C
递交时间
2021-11-07 15:36:04
评测时间
2021-11-07 15:36:04
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes