/in/foo.cc: In function 'void print(int)':
/in/foo.cc:8:8: error: 'now' was not declared in this scope
cout<<now[x]<<' ';
^~~
/in/foo.cc: In function 'int main()':
/in/foo.cc:21:9: error: 'itn' was not declared in this scope
for(itn i=1;i<=n;i++)
^~~
/in/foo.cc:21:17: error: 'i' was not declared in this scope
for(itn i=1;i<=n;i++)
^
/in/foo.cc:25:10: error: two consecutive '[' shall only introduce an attribute before '[' token
f[[j]+a[i]=f[j];
^
/in/foo.cc:27:9: error: 'now' was not declared in this scope
now[j+a[i]]=i;
^~~
/in/foo.cc:23:9: warning: suggest explicit braces to avoid ambiguous 'else' [-Wparentheses]
if(f[j]>0)
^