记录详情

Compile Error

/in/foo.cc: In function 'int main()':
/in/foo.cc:7:19: error: 'INT_MIN' was not declared in this scope
    7 |         int a,tmp=INT_MIN,cnt=0;
      |                   ^~~~~~~
/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:12:31: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |                         tmp=a,cnt=0;
      |                               ^~~
      |                               int
/in/foo.cc:15:25: error: 'cnt' was not declared in this scope; did you mean 'int'?
   15 |                         cnt++;
      |                         ^~~
      |                         int
/in/foo.cc:18:15: error: 'cnt' was not declared in this scope; did you mean 'int'?
   18 |         cout<<cnt<<endl;
      |               ^~~
      |               int

信息

递交者
类型
递交
题目
P1214 C8 最大值的出现次数
语言
C++
递交时间
2025-05-19 21:53:02
评测时间
2025-05-19 21:53:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes