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