C++ : Can someone please explain what i am doing wrong here (inthe top_three_trend function)? Any help would be greatlyappreciated. Heres what I have below:
// Fills the provided vector with the 3 most-tweetedhashtags,
// in order from most-tweeted to least-tweeted.
//
// If there are fewer than 3 hashtags, then the vector isfilled
// with all hashtags (in most-tweeted to least-tweetedorder).
//
// Must run in O(n) time.
voidTrendtracker::top_three_trends(vector<string> &T){
// clear (max 3 each time)
T.clear();
// hold copy of original list
vector<Entry> copy;
copy = E;
// sort copy
int largest = 0; // index of largest atstart
while (largest < copy.size()){
for (int i = 0; i <copy.size(); i++){
if (copy[largest].pop < copy[i].pop){
// swap
PayPal Gateway not configured
PayPal Gateway not configured