0_0_21139939_24092.cpp: In function 'void add(char)':
0_0_21139939_24092.cpp:8:42: error: 'rl' was not declared in this scope
int np = ++cnt, p = last; last = np; rl[np] = ma[np] = ma[p] + 1;
^
0_0_21139939_24092.cpp: In function 'int main()':
0_0_21139939_24092.cpp:35:36: error: too many arguments to function 'void add(char)'
add(str[i] - 'a', i);
^
0_0_21139939_24092.cpp:7:6: note: declared here
void add(char c) {
^
0_0_21139939_24092.cpp:37:41: error: 'rl' was not declared in this scope
if (l) printf("%d %d\n", l, rl[p] - l);
^
0_0_21139939_24092.cpp:38:37: error: too many arguments to function 'void add(char)'
else add(str[i] - 'a', i), printf("-1 %d\n", str[i++]);
^
0_0_21139939_24092.cpp:7:6: note: declared here
void add(char c) {
^
|