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_13642857_28666.c: In function 'dp':
0_0_13642857_28666.c:11:42: error: subscripted value is neither array nor pointer nor vector
   f[i][j]=(i==n-1)?g[i][j]:max(g[i][j]+dp[i+1][j],g[i][j]+dp[i+1][j+1]);
                                          ^
0_0_13642857_28666.c:3:19: note: in definition of macro 'max'
 #define max(a,b) (a)>(b)?(a):(b)
                   ^
0_0_13642857_28666.c:11:61: error: subscripted value is neither array nor pointer nor vector
   f[i][j]=(i==n-1)?g[i][j]:max(g[i][j]+dp[i+1][j],g[i][j]+dp[i+1][j+1]);
                                                             ^
0_0_13642857_28666.c:3:23: note: in definition of macro 'max'
 #define max(a,b) (a)>(b)?(a):(b)
                       ^
0_0_13642857_28666.c:11:42: error: subscripted value is neither array nor pointer nor vector
   f[i][j]=(i==n-1)?g[i][j]:max(g[i][j]+dp[i+1][j],g[i][j]+dp[i+1][j+1]);
                                          ^
0_0_13642857_28666.c:3:27: note: in definition of macro 'max'
 #define max(a,b) (a)>(b)?(a):(b)
                           ^
0_0_13642857_28666.c:11:61: error: subscripted value is neither array nor pointer nor vector
   f[i][j]=(i==n-1)?g[i][j]:max(g[i][j]+dp[i+1][j],g[i][j]+dp[i+1][j+1]);
                                                             ^
0_0_13642857_28666.c:3:31: note: in definition of macro 'max'
 #define max(a,b) (a)>(b)?(a):(b)
                               ^


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-07-08 19:41:40, Gzip enabled