Subset sum problem


why are my cases failing

instead of a[10]
use
int a[n];