记录详情

Compile Error

foo.c: In function 'main':
foo.c:14:3: warning: implicit declaration of function 'scanf_s' [-Wimplicit-function-declaration]
   scanf_s("%d",a[i]);
   ^~~~~~~
foo.c:28:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'int *' [-Wformat=]
  printf("%d",a);
           ^
foo.c:10:26: warning: unused variable 'tili' [-Wunused-variable]
  int n, a[100000], t,i,j,tili;
                          ^~~~
/tmp/cclJkbyl.o: In function `main':
foo.c:(.text.startup+0x4a): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status

自豪的采用jd5进行评测(github.com/masnn/jd5)

信息

递交者
类型
自测
题目
P1124 合并果子
语言
C
递交时间
2020-02-04 15:27:33
评测时间
2020-02-04 15:27:33
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes