| 33 | } |
| 34 | |
| 35 | std::vector<int> parseNumbersFromString(const std::string &input) { |
| 36 | std::vector<int> numbers; |
| 37 | std::stringstream ss(input); |
| 38 | char c; |
| 39 | ss >> c; |
| 40 | int num; |
| 41 | while (ss >> num) { |
| 42 | numbers.push_back(num); |
| 43 | ss >> c; |
| 44 | if (c == ']') break; |
| 45 | } |
| 46 | return numbers; |
| 47 | } |
| 48 | |
| 49 | std::vector<std::string> load_titles() { |
| 50 | std::fstream fin("../res/titles_404464.txt", std::ios::in); |