When I run the program it finishes with exit code 0 but doesn't display anything