Compile Error

/in/foo.cc:3:21: error: 'INT_MIN' was not declared in this scope
    3 | int n,a[10005],maxa=INT_MIN;
      |                     ^~~~~~~
/in/foo.cc:2:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
    1 | #include<iostream>
  +++ |+#include <climits>
    2 | using namespace std;
/in/foo.cc: In function 'int main()':
/in/foo.cc:11:29: warning: unused variable 'bh' [-Wunused-variable]
   11 |                         int bh=i;
      |                             ^~
/in/foo.cc:14:15: error: 'bh' was not declared in this scope
   14 |         cout<<bh-1;
      |               ^~

信息

递交者
类型
递交
题目
P1048 A7-3 数组的极值下标函数
语言
C++
递交时间
2026-02-11 14:11:53
评测时间
2026-02-11 14:11:53
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes