/in/foo.cc:6:1: error: expected initializer before 'long'
long long c[maxx];
^~~~
/in/foo.cc: In function 'void in()':
/in/foo.cc:19:3: error: 'c' was not declared in this scope
c[i]=a[i].p*a[i].v;
^
/in/foo.cc: In function 'void go()':
/in/foo.cc:27:2: error: 'f' was not declared in this scope
f[j]=max(f[j],f[j-a[i].p]+c[i]);
^
/in/foo.cc:27:28: error: 'c' was not declared in this scope
f[j]=max(f[j],f[j-a[i].p]+c[i]);
^
/in/foo.cc: In function 'int main()':
/in/foo.cc:32:9: error: 'f' was not declared in this scope
memset(f,0,sizeof(f));
^