http://ide.codingblocks.com/#/s/14120
What;s wrong with this code.
I think the better question is what's right with this code.
Anyway, You initially have a 2-D array as arr[3][3] and in the last loop, you’re doing even += arr[i], without the second index, it’ll be treated as a pointer not a value. To extract a value, you must use arr[i][j].
And if you’re doing even += , make sure to initialise even first as it may take a garbage value if uninitialised.