palindrome.cpp: In function 'int main()':
palindrome.cpp:27:2: error: 'memset' was not declared in this scope
memset(c, -1, sizeof c);
^~~~~~
palindrome.cpp:33:17: warning: array subscript has type 'char' [-Wchar-subscripts]
if(!~c[p][s[i]])
^
palindrome.cpp:35:13: warning: array subscript has type 'char' [-Wchar-subscripts]
c[p][s[i]]=++X;
^
palindrome.cpp:40:22: warning: array subscript has type 'char' [-Wchar-subscripts]
l[p]=c[l[p]][s[i]];
^
palindrome.cpp:43:4: error: 'assert' was not declared in this scope
assert(~l[p]);
^~~~~~
palindrome.cpp:43:4: note: suggested alternative: 'short'
assert(~l[p]);
^~~~~~
short
palindrome.cpp:47:15: warning: array subscript has type 'char' [-Wchar-subscripts]
p=c[p][s[i]];
^
palindrome.cpp:24:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s", s+1);
~~~~~^~~~~~~~~~~~