http://ide.codingblocks.com/#/s/20816
https://ide.codingblocks.com/s/33537 you need to send the n using parameter
silly mistake! Thanks BTW