Aomething stupid? No. It's a common error. Don't forget: array[0] and array[1] are unused (no sum 0 and sum 1) in both arrays (expected and sum). So add two leading zeroes (or any other values) in initialization list for expected array - that's all.
Reputation Points: 1234
Solved Threads: 347
Postaholic
Offline 2,001 posts
since Jul 2008