/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:15: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
    7 |     scanf("%d%d",&i);
      |              ~^
      |               |
      |               int *
foo.c:8:19: warning: implicit declaration of function 'log3'; did you mean 'logl'? [-Wimplicit-function-declaration]
    8 |     printf("%d\n",log3(i-0.1)+1);
      |                   ^~~~
      |                   logl
/nix/store/j2gmfdd29cp3rcvghmn1a5kgcnmf8myp-binutils-2.40/bin/ld: /tmp/cc5J7OB2.o: in function `main':
foo.c:(.text.startup+0x2d): undefined reference to `log3'
collect2: error: ld returned 1 exit status
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1361 天平称量
语言
C
递交时间
2023-09-26 20:53:28
评测时间
2023-09-26 20:53:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes