This is from my son. I hope it helps.
The code provided is not valid C++ syntax. I think I gather what the code is meant to do though.
The input isn't valid as an integer unless you put a + where the positive numbers are. Unless these are not one input but meant to be done sequentially.
It will go through the for loop while count < input, and increment at the end of the loop.
The cout doesn't have anything after it but I presume it is meant to display count which will be the same as the input number.
int num, count, temp = 1;
std::cin >> num;
for (count = 1; count < num; count++) {
}
std::cout