编号 | 题目 | 状态 | 分数 | 总时间 | 内存 | 代码 / 答案文件 | 提交者 | 提交时间 |
---|---|---|---|---|---|---|---|---|
#6539 | #1081. Luke's Game | Compile Error | 0 | 0 ms | 0 K | C / 459 B | xiedada | 2024-11-16 16:25:09 |
int
int
编译信息
/sandbox/1/a.c:5:23: warning: implicit declaration of function 'max' is invalid in C99 [-Wimplicit-function-declaration]
for (unsigned i = max(a, b); i >= 1; i--)
^
/sandbox/1/a.c:8:1: warning: non-void function does not return a value in all control paths [-Wreturn-type]
}
^
2 warnings generated.
/usr/bin/ld: /tmp/a-0db957.o: in function `gcd':
a.c:(.text+0xe): undefined reference to `max'
/usr/bin/ld: /tmp/a-0db957.o: in function `main':
a.c:(.text+0xb5): undefined reference to `max'
clang: error: linker command failed with exit code 1 (use -v to see invocation)