Because you have to write
'std::cout' where you wrote 'cout'.
Because you can't write a number with spaces in it.
Because main has to return int.
So the next will work:
#include<iostream>
#include<stdlib.h>
int main(void)
{
unsigned int u=int(1000000000*rand()%RAND_MAX);
std::cout<<"Money summed = "<<(u);
return 0;
}
(Replying to one selfs, what does the world do to me)
Now that we have the systax right, we can look at wat you are trying
to do.
I guess you want a random number between 0 or 1 and 1000000000.
This is not what the programme does....
Please lookup srand and rand in your manual.
srand is a function that will give you a new/different random number
each time you run your progrogramme.
Doing a modulo operation makes sure that a number is in a range, in
your case the range will be [0, RAND_MAX), and not [0, 1000000000).