记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:23:15: error: 'max' was not declared in this scope; did you mean 'std::max'?
   23 |      dp[i][j]=max(dp[i][j],dp[i-1][j]+dp[i][j-1]);
      |               ^~~
      |               std::max
In file included from /usr/include/c++/9/algorithm:62,
                 from foo.cc:3:
/usr/include/c++/9/bits/stl_algo.h:3468:5: note: 'std::max' declared here
 3468 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d%d",&n,&m);
      |  ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1339 走方格 [2020年蓝桥杯A组第一场]
比赛
2022春季 荣誉练习赛2(2020蓝桥A组省赛重温)
语言
C++
递交时间
2022-03-26 19:30:24
评测时间
2022-03-26 19:30:24
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes