You could make another class to hold all the values you want to return. Then, in your ShortPathDijkstra method, create a new instance of that class and fill it with the values from length and listVerse. Then return that instance. That class might look something like this:
class DijkstraResult
{
public:
int length;
vector listVerse;
};
Note that you can make it a struct instead of a class if you want.