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_20438035_24663.cpp: In function 'int main()':
0_0_20438035_24663.cpp:20:13: error: 'i' was not declared in this scope
         for(i=1;i<=n;i++)for(j=1;j<=m;j++)cin >> data[i][j];
             ^
0_0_20438035_24663.cpp:20:30: error: 'j' was not declared in this scope
         for(i=1;i<=n;i++)for(j=1;j<=m;j++)cin >> data[i][j];
                              ^
0_0_20438035_24663.cpp:21:13: error: 'j' was not declared in this scope
         for(j=1;j<=n;j++)data[j][1]+=data[j-1][1];
             ^
0_0_20438035_24663.cpp:22:13: error: 'j' was not declared in this scope
         for(j=2;j<=m;j++)
             ^
0_0_20438035_24663.cpp:26:17: error: 'i' was not declared in this scope
             for(i=2;i<=n;i++)dp1[i]=max(data[i][j-1],dp1[i-1])+data[i][j];
                 ^
0_0_20438035_24663.cpp:27:17: error: 'i' was not declared in this scope
             for(i=n-1;i>=1;i--)dp2[i]=max(data[i][j-1],dp2[i+1])+data[i][j];
                 ^
0_0_20438035_24663.cpp:28:17: error: 'i' was not declared in this scope
             for(i=1;i<=n;i++)ata[i][j]=max(dp1[i],dp2[i]);
                 ^
0_0_20438035_24663.cpp:28:30: error: 'ata' was not declared in this scope
             for(i=1;i<=n;i++)ata[i][j]=max(dp1[i],dp2[i]);
                              ^


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-03 04:58:50, Gzip enabled