/in/foo.cc: In function 'void dp_John()':
/in/foo.cc:3:20: error: 'tt' was not declared in this scope
for(int i=1;i<=tt;i++)f[i]=INF;
^~
/in/foo.cc:3:27: error: 'f' was not declared in this scope
for(int i=1;i<=tt;i++)f[i]=INF;
^
/in/foo.cc:3:32: error: 'INF' was not declared in this scope
for(int i=1;i<=tt;i++)f[i]=INF;
^~~
/in/foo.cc:4:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:6:19: error: 'a' was not declared in this scope
int k=1,c=a[i].cc;
^
/in/foo.cc:9:23: error: 'tt' was not declared in this scope
for(int j=tt;j>=a[i].vv*k;j--)
^~
/in/foo.cc:10:17: error: 'f' was not declared in this scope
f[j]=min(f[j],f[j-a[i].vv*k]+k);
^
/in/foo.cc:10:47: error: 'min' was not declared in this scope
f[j]=min(f[j],f[j-a[i].vv*k]+k);
^
/in/foo.cc:13:19: error: 'tt' was not declared in this scope
for(int j=tt;j>=c*a[i].vv;j--)
^~
/in/foo.cc:14:13: error: 'f' was not declared in this scope
f[j]=min(f[j],f[j-a[i].vv*c]+c);
^
/in/foo.cc:14:43: error: 'min' was not declared in this scope
f[j]=min(f[j],f[j-a[i].vv*c]+c);
^
/in/foo.cc: In function 'void dp_Rober()':
/in/foo.cc:19:20: error: 'tt' was not declared in this scope
for(int i=1;i<=tt;i++)g[i]=INF;
^~
/in/foo.cc:19:27: error: 'g' was not declared in this scope
for(int i=1;i<=tt;i++)g[i]=INF;
^
/in/foo.cc:19:32: error: 'INF' was not declared in this scope
for(int i=1;i<=tt;i++)g[i]=INF;
^~~
/in/foo.cc:20:20: error: 'n' was not declared in this scope
for(int i=1;i<=n;i++)
^
/in/foo.cc:21:17: error: 'a' was not declared in this scope
for(int j=a[i].vv;j<=tt;j++)
^
/in/foo.cc:21:28: error: 'tt' was not declared in this scope
for(int j=a[i].vv;j<=tt;j++)
^~
/in/foo.cc:22:7: error: 'g' was not declared in this scope
g[j]=min(g[j],g[j-a[i].vv]+1);
^
/in/foo.cc:22:35: error: 'min' was not declared in this scope
g[j]=min(g[j],g[j-a[i].vv]+1);
^