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