diff --git a/entropy.cpp b/entropy.cpp index 6c60570..2644e0c 100644 --- a/entropy.cpp +++ b/entropy.cpp @@ -72,5 +72,6 @@ int main() { // get optimized out by the compiler for (auto x : e.array) total += x; - + + return total; // prevent compiler optimizing it out on /O1 /O2 }