4 ms·
Note that this line only initializes element 0, not all elements: int sol[N_ITEMS] = {0}; Did you mean {}?
by Tempest1981 5y ago
Note that this line only initializes element 0, not all elements:
int sol[N_ITEMS] = {0};
Did you mean {}?
4 ms·