https://ide.codingblocks.com/s/476439 —> Problem ???
initalize the sum array with zero like this int sum[64]={0};