Compile Error

foo.cc:3:21: error: ‘INT_MIN’ was not declared in this scope
    3 | int n,a[10005],maxa=INT_MIN,bh;
      |                     ^~~~~~~
foo.cc:1: note: ‘INT_MIN’ is defined in header ‘<climits>’; this is probably fixable by adding ‘#include <climits>’
    1 | #include<iostream>
foo.cc: In function ‘int main()’:
foo.cc:10:35: error: ‘bh’ was not declared in this scope
   10 |                         maxa=a[i],bh=i;
      |                                   ^~
foo.cc:13:15: error: ‘bh’ was not declared in this scope
   13 |         cout<<bh-1;
      |               ^~

信息

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