C++ can't compile and I can't open UE4 now

Try going into the epic games launcher, and verifying your UE engine (there should be an arrow or smt beside UE); I did that yesterday when I accidently edited source files, and everything worked as a charm.