Fatal error: file '/usr/include/c++/5/fstream' modified since it was first

In your macro “Energy” is declared a float:

float Energy; // EDIT:you may actually want to change double to float because that is usually the branch type