F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_38682566_1864.cpp: In function 'void solve()':
0_0_38682566_1864.cpp:15:49: error: 'mincost' was not declared in this scope; did you mean 'sincosl'?
   15 |         for (int j = 0; j <= m; j++) dp[i][j] = mincost[i][j] = 2e9;
      |                                                 ^~~~~~~
      |                                                 sincosl
0_0_38682566_1864.cpp:21:13: error: 'mincost' was not declared in this scope; did you mean 'sincosl'?
   21 |             mincost[j - i][pos[j]] = min(mincost[j - i - 1][pos[j]], dp[i][pos[j]]);
      |             ^~~~~~~
      |             sincosl
0_0_38682566_1864.cpp:27:37: error: 'mincost' was not declared in this scope; did you mean 'sincosl'?
   27 |             dp[now - r][pos[now]] = mincost[m - 1][pos[r]] + a[now];
      |                                     ^~~~~~~
      |                                     sincosl


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-25 05:55:48, Gzip enabled