#include <stdlib.h>
#include <stdio.h>
vector <vector<string> > vector2;
vector<string> vector;
for(int i = 0; i < vector.size();i++)
{
vector2[atoi(vector[i+1].c_str())].push_back(vector[i]);
i++;
}
I try this on Windows, its working fine. But when i try to compile on ubuntu64-bits it has this segmentation error, anyone enlighten to?