As Peter Minarik said, there is no exe on this site. However, if you were referring generally to how one can output to a file instead of standard out, then you can use freopen.
#include <cstdio.h>
#include <iostream>
int main() {
freopen("foo.out", "w", stdout);
}