#doesn't recognize insert()

7 messages · Page 1 of 1 (latest)

pearl charmBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For tips on how to ask a good question run !howto ask.

#

@glad gazelle

Screenshots!

Your message appears to contain screenshots but no code. Please send code and error messages in text instead of screenshots if applicable!

dusty kraken
#

!f

pearl charmBOT
#
#include <iostream>
#include <string>
#include <vector>
using namespace std;

int main() {
  cout << "!!!Hello World!!!" << endl;  // prints !!!Hello World!!!
  return 0;
}

std::vector<std::string> number(const std::vector<std::string>& lines) {
  vector<string> newList;
  for (int i = 0; i < newList.size(); i++) {
    newList.insert(newList.begin() + i, i + ": " + lines.begin() + i);
  }
  return newList;
}
bluefire
dusty kraken
#

a bunch of reasons

glad gazelle
#

what reasons

#

@dusty kraken