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)提供评测服务