Our programmer made mistakes in the code again (what a bungler). Find and fix them.
#include <iostream>
int main() {
int num = 5;
int &ref = num;
ref *= 2; // Updating value through reference
std::cout << "Updated value of num: " << num << std::endl;
return 0;
}