记录详情

Compile Error

foo.cc: In function 'int maxRPValue(int, std::vector<int>&, std::vector<int>&)':
foo.cc:6:23: error: 'INT_MIN' was not declared in this scope
    6 |     vector<int> dp(n, INT_MIN);  // 初始化dp数组为一个很小的值
      |                       ^~~~~~~
foo.cc:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
    2 | #include <vector>
  +++ |+#include <climits>
    3 | using namespace std;
foo.cc:27:1: warning: control reaches end of non-void function [-Wreturn-type]
   27 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1524 Problem 3B. RP++
语言
C++
递交时间
2023-10-28 20:38:30
评测时间
2023-10-28 20:38:30
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes