0_0_20437949_32248.cpp: In function 'int main()':
0_0_20437949_32248.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_20437949_32248.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_20437949_32248.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_20437949_32248.cpp:22:13: error: 'j' was not declared in this scope
for(j=2;j<=m;j++)
^
0_0_20437949_32248.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_20437949_32248.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_20437949_32248.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_20437949_32248.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]);
^
|