记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:7:20: error: 'INT_MIN' was not declared in this scope
    7 |         int n,maxl=INT_MIN,minsi=0;cin>>n;
      |                    ^~~~~~~
foo.cc:3:1: note: 'INT_MIN' is defined in header '<climits>'; did you forget to '#include <climits>'?
    2 | #include<cmath>
  +++ |+#include <climits>
    3 | using namespace std;
foo.cc:18:52: error: 'minsi' was not declared in this scope
   18 |                 if(min(maxi[i],abs(n-maxi[i]))<min(minsi,abs(n-minsi)))
      |                                                    ^~~~~
foo.cc:21:16: error: 'minsi' was not declared in this scope
   21 |         if(min(minsi,abs(n-minsi))%2==0) cout<<"Win";
      |                ^~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
2 取最大数的博弈游戏
比赛
2022暑期青少年社团(告别赛)
语言
C++
递交时间
2022-08-22 17:51:18
评测时间
2022-08-22 17:51:18
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes