I want to have an array, grid[50000][50000], i tried to do with vector but when i run the code, it stops. No error. Just waits.Any suggestions?
#include <iostream>
#include <vector>
using namespace std;
typedef std::vector<int> IntVec;
typedef std::vector<IntVec> IntGrid;
IntGrid grid(50000, IntVec(50000));
int main(){
grid[0][0]=3;
cout<<grid[0][0]<<endl;
}