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)提供评测服务