#include #include #include #include using std::cin; using std::string; using std::vector; // Find all occurrences of the pattern in the text and return a // vector with all positions in the text (starting from 0) where // the pattern starts in the text. vector find_pattern(const string& pattern, const string& text) { vector result; // Implement this function yourself return result; } int main() { string pattern, text; cin >> pattern; cin >> text; vector result = find_pattern(pattern, text); for (int i = 0; i < result.size(); ++i) { printf("%d ", result[i]); } printf("\n"); return 0; }