记录详情

Compile Error

foo.cc:6:14: error: 'INT_MAX' was not declared in this scope
    6 | int m, n,ans=INT_MAX;
      |              ^~~~~~~
foo.cc:3:1: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
    2 | #include<vector>
  +++ |+#include <climits>
    3 | using namespace std;
foo.cc: In function 'int main()':
foo.cc:36:20: error: 'INT_MAX' was not declared in this scope
   36 |         if (ans != INT_MAX)
      |                    ^~~~~~~
foo.cc:36:20: note: 'INT_MAX' is defined in header '<climits>'; did you forget to '#include <climits>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1441 3-9 失落的作业
比赛
2023年暑期算法队集训赛1
语言
C++
递交时间
2023-07-06 20:03:07
评测时间
2023-07-06 20:03:07
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes