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_20291570_11277.cpp:5:1: error: expected initializer before 'int'
 int dp[MAX];  
 ^
0_0_20291570_11277.cpp: In function 'int main()':
0_0_20291570_11277.cpp:19:7: error: 'w' was not declared in this scope
       w[0][i] = 0;  
       ^
0_0_20291570_11277.cpp:23:7: error: 'w' was not declared in this scope
       w[t][i] = dp[i] = sum[i];  
       ^
0_0_20291570_11277.cpp:23:17: error: 'dp' was not declared in this scope
       w[t][i] = dp[i] = sum[i];  
                 ^
0_0_20291570_11277.cpp:30:20: error: 'w' was not declared in this scope
     printf("%d\n", w[m%2][n]); //由于w退化了,没了w[m][n]因此m%2可以表示第m次,你可以用m = 1,和2试试便知道了  
                    ^


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-12-02 16:43:25, Gzip enabled