// driver.h - generated by 'usaco new' from LeetCode's metadata (edit freely). // Reads count-vowel-substrings-of-a-string.in in LeetCode's testcase format, cases back to back: // one argument per line // and writes one answer per case to count-vowel-substrings-of-a-string.out, formatted the way LeetCode // shows its output. Parsing/printing helpers: leetcode.h. int main() { freopen("count-vowel-substrings-of-a-string.in", "r", stdin); freopen("count-vowel-substrings-of-a-string.out", "w", stdout); for (vector in; lc::read_case(in, 1);) { auto word = lc::parse(in[0]); cout << lc::show(Solution().countVowelSubstrings(word)) << '\n'; } }