combining programs?

the problem with those braces is not that code is never executed, they prevent the code from compiling because the lines after the closing brace are not in a function