Manmohan loves patterns 1

My solution was: https://ide.codingblocks.com/s/386069
It works perfectly on code blocks.But when I try to run it on hacker blocks the output is:
enter the number of rows to be printed: 1
11
111
1001
11111
100001
why is the phrase "enter the number of rows to be printed: " shown as output.