MIxture harrypotter problem

why i am getting wrong output
https://ide.codingblocks.com/s/63165