记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:25:23: error: 'INT_MAX' was not declared in this scope
   25 |         int maxcha = -INT_MAX;
      |                       ^~~~~~~
/in/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;
/in/foo.cc:30:36: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |                 for (int k =j+1; k < vec.size(); k++) {
      |                                  ~~^~~~~~~~~~~~

信息

递交者
类型
递交
题目
3-3 炒股发财
比赛
2025年暑期编程训练营之二
语言
C++
递交时间
2025-07-06 10:23:45
评测时间
2025-07-06 10:23:45
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes