/ WHOJ /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:42:53: error: 'max' was not declared in this scope; did you mean 'std::max'?
   42 |                                                 ans=max(ans,os);
      |                                                     ^~~
      |                                                     std::max
In file included from /nix/store/42izybv2fz3ps5pcg3dvcmn85pc9406y-gcc-11.3.0/include/c++/11.3.0/algorithm:62,
                 from stdc++.h:65:
/nix/store/42izybv2fz3ps5pcg3dvcmn85pc9406y-gcc-11.3.0/include/c++/11.3.0/bits/stl_algo.h:3467:5: note: 'std::max' declared here
 3467 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1345 计算面积
题目数据
下载
语言
C++
递交时间
2022-08-18 20:39:41
评测时间
2022-08-18 20:39:41
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes