no output .. Vector.at()

Can u help me plz with this

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
  #include <iostream>
  #include <vector>

using namespace std;

int main()
{
	int Ze=1;
	vector<int> colume;
	int IT=0;
	for(int i =0;i<10;i++)
	{
		if (IT>=Ze)
		{
			colume.push_back(1);
		}
		else
		{
			colume.push_back(0);
		}
		IT++;
		if(IT==2*Ze)
		{
			IT=0;
		}
	}
	for(int u =0;u>10;u++)
	{
		cout<<colume.at(u)<<endl;
	}

}
Line 27: Should be u<10, not >.

Hello zeroblank,

On line 27 I think you meant u<10.

Hope that helps,

Andy
Last edited on
Oh xD .. thank you =D lmao
Topic archived. No new replies allowed.