We provided you with code tags... why didn't you use them? T_T
On the line where you have Trans1.at(1)... you are accessing the second element of the vector even though it hasn't been initialized yet. Vectors do have fill constructors that let you declare the starting size of the vector when it's constructed, and I think you might find one of them useful...