Pl help debug code

code https://ide.codingblocks.com/s/216390

@spagire4 you should use fast i/o ,your update and query have a lil error too .refer to this