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_13744022_7248.c:9:1: error: unknown type name 'prod'
 prod rec[105];
 ^
0_0_13744022_7248.c: In function 'main':
0_0_13744022_7248.c:28:27: error: request for member 'a' in something not a structure or union
    scanf("%d%d%d", &rec[i].a, &rec[i].b, &rec[i].val);
                           ^
0_0_13744022_7248.c:28:38: error: request for member 'b' in something not a structure or union
    scanf("%d%d%d", &rec[i].a, &rec[i].b, &rec[i].val);
                                      ^
0_0_13744022_7248.c:28:49: error: request for member 'val' in something not a structure or union
    scanf("%d%d%d", &rec[i].a, &rec[i].b, &rec[i].val);
                                                 ^
0_0_13744022_7248.c:40:64: error: request for member 'val' in something not a structure or union
        dp[i][j][k] = fmax(dp[i][j][k], dp[i - 1][j][k] + rec[i].val);
                                                                ^
0_0_13744022_7248.c:41:20: error: request for member 'a' in something not a structure or union
       if(j - rec[i].a >= 0)
                    ^
0_0_13744022_7248.c:42:60: error: request for member 'a' in something not a structure or union
        dp[i][j][k] = fmax(dp[i][j][k], dp[i - 1][j - rec[i].a][k] + rec[i].val);
                                                            ^
0_0_13744022_7248.c:42:75: error: request for member 'val' in something not a structure or union
        dp[i][j][k] = fmax(dp[i][j][k], dp[i - 1][j - rec[i].a][k] + rec[i].val);
                                                                           ^
0_0_13744022_7248.c:43:20: error: request for member 'b' in something not a structure or union
       if(k - rec[i].b >= 0)
                    ^
0_0_13744022_7248.c:44:63: error: request for member 'b' in something not a structure or union
        dp[i][j][k] = fmax(dp[i][j][k], dp[i - 1][j][k - rec[i].b] + rec[i].val);
                                                               ^
0_0_13744022_7248.c:44:75: error: request for member 'val' in something not a structure or union
        dp[i][j][k] = fmax(dp[i][j][k], dp[i - 1][j][k - rec[i].b] + rec[i].val);
                                                                           ^


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-11-16 22:25:39, Gzip enabled