prog.cpp:3:21: error: ‘string’ does not name a type; did you mean ‘struct’?
void manacher(const string &s, vector<int> &odd, vector<int> &even)
^~~~~~
struct
prog.cpp:3:32: error: ‘vector’ has not been declared
void manacher(const string &s, vector<int> &odd, vector<int> &even)
^~~~~~
prog.cpp:3:38: error: expected ‘,’ or ‘...’ before ‘<’ token
void manacher(const string &s, vector<int> &odd, vector<int> &even)
^
prog.cpp: In function ‘void manacher(const int&, int)’:
prog.cpp:5:13: error: ‘sz’ was not declared in this scope
int n = sz(s);
^~
prog.cpp:5:13: note: suggested alternative: ‘s’
int n = sz(s);
^~
s
prog.cpp:6:5: error: ‘odd’ was not declared in this scope
odd.clear();
^~~
prog.cpp:7:5: error: ‘even’ was not declared in this scope
even.clear();
^~~~
prog.cpp:11:31: error: ‘min’ was not declared in this scope
int k = (i > r) ? 1 : min(odd[l + r - i], r - i + 1);
^~~
prog.cpp:12:50: error: invalid types ‘const int[int]’ for array subscript
while (0 <= i - k && i + k < n && s[i - k] == s[i + k]) {
^
prog.cpp:12:62: error: invalid types ‘const int[int]’ for array subscript
while (0 <= i - k && i + k < n && s[i - k] == s[i + k]) {
^
prog.cpp:23:31: error: ‘min’ was not declared in this scope
int k = (i > r) ? 0 : min(even[l + r - i + 1], r - i + 1);
^~~
prog.cpp:24:58: error: invalid types ‘const int[int]’ for array subscript
while (0 <= i - k - 1 && i + k < n && s[i - k - 1] == s[i + k]) {
^
prog.cpp:24:70: error: invalid types ‘const int[int]’ for array subscript
while (0 <= i - k - 1 && i + k < n && s[i - k - 1] == s[i + k]) {
^
prog.cpp: At global scope:
prog.cpp:40:22: error: ‘vector’ does not name a type
void calcCover(const vector<int> &odd, const vector<int> &even)
^~~~~~
prog.cpp:40:28: error: expected ‘,’ or ‘...’ before ‘<’ token
void calcCover(const vector<int> &odd, const vector<int> &even)
^
prog.cpp: In function ‘void calcCover(int)’:
prog.cpp:42:13: error: ‘odd’ was not declared in this scope
int n = odd.size();
^~~
prog.cpp:47:25: error: ‘en’ was not declared in this scope
fnsh[i]++, fnsh[en + 1]--;
^~
prog.cpp:47:25: note: suggested alternative: ‘n’
fnsh[i]++, fnsh[en + 1]--;
^~
n
prog.cpp:51:13: error: ‘even’ was not declared in this scope
if (even[i])
^~~~