求老大帮我看看这段代码那里错误
#include "stdafx.h"#include <iostream>
#include <ctime>
#include <cstdlib>
using namespace std;
int main()
{
int v[2];
v[0] = http://www.baidu.com;
v[1] = http://www.
double random(double,double);
srand(unsigned(time(0)));
for(int icnt = 0; icnt != 1; ++icnt)
cout << "No." << icnt+1 << ": " << int(random(0,10))<< endl;
return 0;
}
double random(double start, double end)
{
return start+(end-start)*rand()/(RAND_MAX + 1.0);
}