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_13744076_23000.c:9:1: error: unknown type name 'prod'
 prod rec[105];
 ^
0_0_13744076_23000.c: In function 'main':
0_0_13744076_23000.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_13744076_23000.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_13744076_23000.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_13744076_23000.c:40:64: error: request for member 'val' in something not a structure or union
        dp[x][j][k] = fmax(dp[x][j][k], dp[x - 1][j][k] + rec[i].val);
                                                                ^
0_0_13744076_23000.c:41:20: error: request for member 'a' in something not a structure or union
       if(j - rec[i].a >= 0)
                    ^
0_0_13744076_23000.c:42:56: error: request for member 'a' in something not a structure or union
        dp[x][j][k] = fmax(dp[x][j][k], dp[x][j - rec[i].a][k] + rec[i].val);
                                                        ^
0_0_13744076_23000.c:42:71: error: request for member 'val' in something not a structure or union
        dp[x][j][k] = fmax(dp[x][j][k], dp[x][j - rec[i].a][k] + rec[i].val);
                                                                       ^
0_0_13744076_23000.c:43:20: error: request for member 'b' in something not a structure or union
       if(k - rec[i].b >= 0)
                    ^
0_0_13744076_23000.c:44:59: error: request for member 'b' in something not a structure or union
        dp[x][j][k] = fmax(dp[x][j][k], dp[x][j][k - rec[i].b] + rec[i].val);
                                                           ^
0_0_13744076_23000.c:44:71: error: request for member 'val' in something not a structure or union
        dp[x][j][k] = fmax(dp[x][j][k], dp[x][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:44:27, Gzip enabled