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_22204419_1218.cpp:17:2: error: expected unqualified-id before 'if'
  if (i == 1 && j == 1) return dp[1][1];
  ^
0_0_22204419_1218.cpp:18:2: error: expected unqualified-id before 'if'
  if (dp[i][j] != MIN) return dp[i][j];   //说明dp[i][j]之间计算过,是子问题的最优解,直接返? int ans = MIN;
  ^
0_0_22204419_1218.cpp:19:2: error: expected unqualified-id before 'if'
  if (j - 1 >= 1) ans = max(f(i, j - 1), ans);  //参考左面相邻第一个,注意j - 1 >= 1边界判断
  ^
0_0_22204419_1218.cpp:20:2: error: expected unqualified-id before 'if'
  if (!num[j].empty()) {  //参考j的因数,也就是倍数是j的位?  for (vector<int>::iterator k = num[j].begin(); k != num[j].end(); k++) {
  ^
0_0_22204419_1218.cpp:23:2: error: expected declaration before '}' token
  }
  ^


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-23 06:32:57, Gzip enabled