/ Vijos /

记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:22:12: error: 'w' was not declared in this scope
   22 |    if(j >= w[i])
      |            ^
foo.cc:23:48: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   23 |                 dp[i][j] = max(dp[i-1][j-time[i]]+subject[i], dp[i-1][j]);
      |                                                ^
foo.cc:23:41: error: invalid operands of types 'int' and 'time_t(time_t*) throw ()' {aka 'long int(long int*)'} to binary 'operator-'
   23 |                 dp[i][j] = max(dp[i-1][j-time[i]]+subject[i], dp[i-1][j]);
      |                                        ~^~~~~~~~
      |                                        |       |
      |                                        int     time_t(time_t*) throw () {aka long int(long int*)}
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1025 小飞侠的游园方案
语言
C++
递交时间
2022-01-23 07:59:48
评测时间
2022-01-23 07:59:48
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes