记录详情

Compile Error

foo.c: In function 'multiply':
foo.c:4:31: error: 'LLONG_MAX' undeclared (first use in this function)
    4 |     if (a > 0 && b > 0 && a > LLONG_MAX / b) {
      |                               ^~~~~~~~~
foo.c:2:1: note: 'LLONG_MAX' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
    1 | #include <stdio.h>
  +++ |+#include <limits.h>
    2 | 
foo.c:4:31: note: each undeclared identifier is reported only once for each function it appears in
    4 |     if (a > 0 && b > 0 && a > LLONG_MAX / b) {
      |                               ^~~~~~~~~
foo.c:12:31: error: 'LLONG_MIN' undeclared (first use in this function)
   12 |     if (a < 0 && b > 0 && a < LLONG_MIN / b) {
      |                               ^~~~~~~~~
foo.c:12:31: note: 'LLONG_MIN' is defined in header '<limits.h>'; did you forget to '#include <limits.h>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1496 Problem 1A. A*B
比赛
2023秋 悬赏令第一周
语言
C
递交时间
2023-10-07 21:47:15
评测时间
2023-10-07 21:47:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes