记录详情

Compile Error

/in/foo.c: In function 'main':
/in/foo.c:48:24: warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
             dp[i][j] = max(dp[i][j], dp[i-1][j] - 1);
                        ^~~
/in/foo.c:55:28: warning: implicit declaration of function 'min' [-Wimplicit-function-declaration]
                 dp[i][j] = min(M, dp[i][j] + k1);
                            ^~~
/tmp/ccx56zrZ.o: In function `main':
foo.c:(.text.startup+0x241): undefined reference to `max'
foo.c:(.text.startup+0x251): undefined reference to `max'
foo.c:(.text.startup+0x26e): undefined reference to `max'
foo.c:(.text.startup+0x27e): undefined reference to `max'
foo.c:(.text.startup+0x2a0): undefined reference to `min'
foo.c:(.text.startup+0x2ed): undefined reference to `min'
foo.c:(.text.startup+0x305): undefined reference to `min'
collect2: error: ld returned 1 exit status

信息

递交者
类型
递交
比赛
2023秋 苏州青少年科技馆(吴江计算机协会)CSP-J/S模拟赛(4)
语言
C
递交时间
2023-10-13 20:58:05
评测时间
2023-10-13 20:58:05
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes