/in/foo.cc: In function 'int main()':
/in/foo.cc:22:10: error: 'mi' was not declared in this scope
while(mi[i] > temp){
^~
/in/foo.cc:25:5: error: 'ti' was not declared in this scope
ti[k] = ti[i] * temp;
^~
/in/foo.cc:26:5: error: 'ci' was not declared in this scope
ci[k] = ci[i] * temp;
^~
/in/foo.cc:29:4: error: 'ti' was not declared in this scope
ti[i] *= mi[i];
^~
/in/foo.cc:29:13: error: 'mi' was not declared in this scope
ti[i] *= mi[i];
^~
/in/foo.cc:30:4: error: 'ci' was not declared in this scope
ci[i] *= mi[i];
^~
/in/foo.cc:35:14: error: invalid conversion from 'int*' to 'int' [-fpermissive]
for(int j=t;j>=ti[i];j--)
^
/in/foo.cc:35:19: error: 'ti' was not declared in this scope
for(int j=t;j>=ti[i];j--)
^~
/in/foo.cc:37:34: error: 'ci' was not declared in this scope
f0[j]=max(f0[j],f0[j-ti[i]]+ci[i]);
^~