intellisense: cout is ambiguous

I have "cout is ambiguous" errors and I don't know why... Please help me.
The program was compiled and it works. What can I do?

Errors:
1 IntelliSense: "cout" is ambiguous c:\Users\Zoltán\Documents\Visual Studio 2012\Projects\108\108\Source.cpp 10 2 108
2 IntelliSense: "cout" is ambiguous c:\Users\Zoltán\Documents\Visual Studio 2012\Projects\108\108\Source.cpp 53 5 108
3 IntelliSense: "cout" is ambiguous c:\Users\Zoltán\Documents\Visual Studio 2012\Projects\108\108\Source.cpp 55 2 108
4 IntelliSense: "cout" is ambiguous c:\Users\Zoltán\Documents\Visual Studio 2012\Projects\108\108\Source.cpp 56 2 108
5 IntelliSense: "system" is ambiguous c:\Users\Zoltán\Documents\Visual Studio 2012\Projects\108\108\Source.cpp 59 2 108



My code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#include<iostream>
#include<time.h>

using namespace std;
int main()
{
	int x, y, z, tmpx=0, tmpy=0, tmpz=0, cislo;
	srand((unsigned)time(NULL));

	cout << "Give borders of interval <A,B>:" << endl;
	int borderA, borderB;
	cin >> borderA >> borderB;

	
	x= borderA - 1;
	y= borderA - 1;
	z= borderA - 1;

	for(int i=0; i<5; i++)
	{
	   cislo = borderA+rand()%(borderB-borderA+1);
   
	   if(cislo > x)
	   {
		  tmpx = x;
		   x = cislo;
      
		  if(tmpx > y)
		  {
			 tmpy = y;
			 y = tmpx;
         
			 if(tmpy > z)
			 {
				z = tmpy;
			 }            
		  }  
	   }
	   else if(cislo > y)
	   {
		  tmpy = y;
		  y = cislo;
      
		  if(tmpy > z)
		  {
			 z = tmpy;
		  }
	   }
	   else if(cislo > z)
	   {
		  z = cislo;
	   }
	   cout << cislo << endl;
	}
	cout << endl <<endl;
	cout << z << " " << y << " " << x  << endl << endl; 


	system("pause");
	return 0;
}
Which of those headers is system and srand declared in?
Topic archived. No new replies allowed.