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_20612436_21412.cpp:4:6: error: 'dpx' does not name a type
      dpx[i][j]) { dpx[i][j] = tmp; dp[i][j] = dp[i - 1][k] * P[k][j]; pre[i][j] = k; } } } } } void pt(){ int i; int tmp; double mx = 0; For(i, n) if (dpx[t - 1][i] > mx) { mx = dpx[t - 1][i]; tmp = i; } ppt[t - 1] = tmp; for (i = n-1; i > 0; i--) { ppt[i - 1] = pre[i][tmp]; tmp = ppt[i - 1]; } For(i, t) { if (i) putchar(' '); printf("%d", ppt[i] + 1); } puts("");} int main(){  while (2 == scanf("%d %d", &n, &m)) { read(); doit(); pt(); } return 0;}
      ^
0_0_20612436_21412.cpp:4:88: error: expected declaration before '}' token
      dpx[i][j]) { dpx[i][j] = tmp; dp[i][j] = dp[i - 1][k] * P[k][j]; pre[i][j] = k; } } } } } void pt(){ int i; int tmp; double mx = 0; For(i, n) if (dpx[t - 1][i] > mx) { mx = dpx[t - 1][i]; tmp = i; } ppt[t - 1] = tmp; for (i = n-1; i > 0; i--) { ppt[i - 1] = pre[i][tmp]; tmp = ppt[i - 1]; } For(i, t) { if (i) putchar(' '); printf("%d", ppt[i] + 1); } puts("");} int main(){  while (2 == scanf("%d %d", &n, &m)) { read(); doit(); pt(); } return 0;}
                                                                                        ^


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-06-26 11:39:26, Gzip enabled