user input to multi-dimentional array

I just want the user to input values into a 2x2 array. At runtime my program will let me input infinitely. I don't know what I'm doing wrong but I figure either the row or column is running an infinite loop.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include <iostream>
using namespace std;

int main()
{
	
	int chart[2][2];
	
	for(int i=0; i<3; i++)

		for(int j=0; j<3; j++)
			cin >> chart[i][j];

return 0;
}


What am I doing wrong?
Change it to "i < 2" and "j < 2".
Thanks!
Topic archived. No new replies allowed.