foo.c: In function 'main':
foo.c:13:2: error: unknown type name 'item'
item items[105];
^
foo.c:16:31: error: request for member 't' in something not a structure or union
scanf("%d%d",&items[i].t,&items[i].v);
^
foo.c:16:43: error: request for member 'v' in something not a structure or union
scanf("%d%d",&items[i].t,&items[i].v);
^
foo.c:21:17: error: request for member 't' in something not a structure or union
if(j<items[i].t||i==0)
^
foo.c:26:43: error: request for member 't' in something not a structure or union
b[i][j]=max(b[i-1][j],b[i-1][j-items[i].t]+items[i].v);
^
foo.c:26:55: error: request for member 'v' in something not a structure or union
b[i][j]=max(b[i-1][j],b[i-1][j-items[i].t]+items[i].v);
^
foo.c:13:7: warning: variable 'items' set but not used [-Wunused-but-set-variable]
item items[105];
^