记录详情

Compile Error

foo.cc: In function 'int Min(int)':
foo.cc:36:42: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   36 |                         mins[i]=min(Min[i],Min[i-j])+stone[i];
      |                                          ^
foo.cc:36:51: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   36 |                         mins[i]=min(Min[i],Min[i-j])+stone[i];
      |                                                   ^
foo.cc:36:53: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   36 |                         mins[i]=min(Min[i],Min[i-j])+stone[i];
      |                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
foo.cc:36:53: error: invalid conversion from 'int (*)(int)' to 'int' [-fpermissive]
   36 |                         mins[i]=min(Min[i],Min[i-j])+stone[i];
      |                                 ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
      |                                                     |
      |                                                     int (*)(int)
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
P1010 过河
语言
C++
递交时间
2023-08-21 20:11:03
评测时间
2023-08-21 20:11:03
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes