To store all the new encountered sum ( after modulo ) . It is used to make sure that arr [ i ] is added only to those entries for which DP [ j ] was true before current iteration .
bool temp [ m ] ; memset ( temp , false , m ) ;