记录详情

Compile Error

foo.cc: In function ‘int main()’:
foo.cc:2:11: error: ‘INT_MIN’ was not declared in this scope
    2 | #define x INT_MIN
      |           ^~~~~~~
foo.cc:9:16: note: in expansion of macro ‘x’
    9 |         a[0] = x; a[n+1] = x; b[0] = x; b[m+1] = x;
      |                ^
foo.cc:2:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
    1 | #include<iostream>
  +++ |+#include <climits>
    2 | #define x INT_MIN

信息

递交者
类型
递交
题目
A9-7 数组中所有极大值
语言
C++
递交时间
2024-08-23 18:12:12
评测时间
2024-08-23 18:12:12
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes