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_14686294_24901.c: In function 'main':
0_0_14686294_24901.c:13:29: error: 'a' undeclared (first use in this function)
                 scanf("%d",&a[i][j]);
                             ^
0_0_14686294_24901.c:13:29: note: each undeclared identifier is reported only once for each function it appears in
0_0_14686294_24901.c:3:31: error: expected ';' before 'int'
 #define Smax(a,b)    (a>b?a:b)int a[21][1005];
                               ^
0_0_14686294_24901.c:19:28: note: in expansion of macro 'Smax'
                 dp[i][j] = Smax(dp[i-1][j],dp[i][j-1])+a[i][j];
                            ^
0_0_14686294_24901.c:3:31: error: expected ';' before 'int'
 #define Smax(a,b)    (a>b?a:b)int a[21][1005];
                               ^
0_0_14686294_24901.c:20:121: note: in expansion of macro 'Smax'
                 k= 2;                 while(j/k>0){                     if(j%k == 0)                         dp[i][j] = Smax(dp[i][j],dp[i][j/k]+a[i][j]);                     k++;                 }             }         }         printf("%d\n",dp[r][c]);     }     return 0; }
                                                                                                                         ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-17 05:42:44, Gzip enabled