my guess is you're not ending it with a proper EOF (ctrl+d) instead doing Ctrl+C to break the program, thus it wont print the result.