C++ Interrupted Bubble Sort
Single Responsibility

As written, parse parses data and sorts them. This is plain wrong. Same goes for bubbleSort which sorts and prints. I recommend to change parse to

long int parse(string line, vector&lt;int&gt;&amp; numbers);


and use it as in

vector&lt;int&gt; data;
while (getline(file, line)) {
    long int iterations = parse(line, data);
    bubbleSort(data, iterations);
    printVector(data);
}

Kudos for not using namespace std!
The code seems to implement interrupted bubble sort correctly. I don't really understand the expected outcome of the assignment so no comments on the speed.