0_0_16980408_17002.cpp: In function 'int main(int, char**)':
0_0_16980408_17002.cpp:15:9: error: expected ';' before 'int'
int len, end = 0, start = 0, r = 0;
^
0_0_16980408_17002.cpp:16:27: error: 'len' was not declared in this scope
scanf("%s%d", p, &len);
^
0_0_16980408_17002.cpp:19:21: error: the value of 'l' is not usable in a constant expression
while(end < l) {
^
0_0_16980408_17002.cpp:17:13: note: 'int l' is not const
int l = strlen(p);
^
0_0_16980408_17002.cpp:19:15: error: parse error in template argument list
while(end < l) {
^
0_0_16980408_17002.cpp:19:15: error: cannot resolve overloaded function 'end' based on conversion to type 'bool'
0_0_16980408_17002.cpp:20:30: error: 'r' was not declared in this scope
while(end < l && r < len) {
^
0_0_16980408_17002.cpp:20:19: error: parse error in template argument list
while(end < l && r < len) {
^
0_0_16980408_17002.cpp:20:19: error: cannot resolve overloaded function 'end' based on conversion to type 'bool'
0_0_16980408_17002.cpp:21:29: error: invalid types 'char [1000100][<unresolved overloaded function type>]' for array subscript
if(mp[ p[end] - 'a'] == 0)
^
0_0_16980408_17002.cpp:23:26: error: no post-increment operator for type
mp[ p[end++]-'a' ] ++;
^
0_0_16980408_17002.cpp:25:16: error: 'r' was not declared in this scope
if(r >= len) {
^
0_0_16980408_17002.cpp:26:27: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator-'
re += l - end + 1;
^
0_0_16980408_17002.cpp:28:23: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator>='
if(end >= l) {
^
0_0_16980408_17002.cpp:32:18: error: 'start' was not declared in this scope
mp[p[start]-'a' ] --;
^
0_0_16980408_17002.cpp:34:19: error: 'r' was not declared in this scope
--r;
^
|