记录详情

Compile Error

foo.c: In function 'main':
foo.c:21:17: warning: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   21 |                 scanf_s("%d", &a[i]);
      |                 ^~~~~~~
      |                 scanf
foo.c:22:20: warning: passing argument 2 of 'Search' makes pointer from integer without a cast [-Wint-conversion]
   22 |         Search(n, a[10000], x);
      |                   ~^~~~~~~
      |                    |
      |                    int
foo.c:3:23: note: expected 'int *' but argument is of type 'int'
    3 | int Search(int n, int a[], int x)
      |                   ~~~~^~~
/nix/store/3r87a2wq1w4l66wnsm7rqvy608mx23h6-binutils-2.40/bin/ld: /tmp/ccPYKruP.o: in function `main':
foo.c:(.text.startup+0x3e): undefined reference to `scanf_s'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A7-4 数组的查找函数
语言
C
递交时间
2023-12-19 14:42:30
评测时间
2023-12-19 14:42:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes