I sometimes participate in programming competitions. Many of those require you to submit a source code file to a judge, which will then compile and run it on hidden inputs. Usually the only supported languages are C and C++.
I figured that since Nim transpiles to both of those, it could be possible to write solutions in Nim and then submit the produced C(++) code. However, the Nim compiler produces multiple files, which have to be individually compiled and linked together in a quite complex way.
Is it somehow possible to transpile Nim into a single C(++) source file, which could then be compiled on its own without any external dependencies?