I'm struggling a bit with this one, having not previously encountered the Fenwick Tree concept.
Why isn't there a main which actually used the code? It'd help me trace through to better understand what the intended outcome is, especially if it's a failing test case.
Also, what is the purpose of this line?
i += i & -i
Is this the line which clears the lowest bit?Edit: one small feedback, when I submitted the form before making any edits, I saw a hint on the next page. Consider detecting the noop and hide the hint, instead prompting the user to "try something, anything!" or similar.
Keep up the good work! Your site is so cool.