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; }
^
|