记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:23:25: error: 'Min' was not declared in this scope
   23 |                 m=min(m,Min(i));
      |                         ^~~
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)
foo.cc:37:23: error: expected ';' before '}' token
   37 |         return mins[i]
      |                       ^
      |                       ;
   38 | }
      | ~                      
[Hydro](https://hydro.ac)提供评测服务

信息

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