palindrome.cpp: In function 'bool isPalindrome(std::__cxx11::string)':
palindrome.cpp:10:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < s.size(); i++) {
~~^~~~~~~~~~
palindrome.cpp: In function 'int main()':
palindrome.cpp:34:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
~~^~~~~~~~~~
palindrome.cpp:35:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if (l[a[i]] != -1) {
^
palindrome.cpp:36:21: warning: array subscript has type 'char' [-Wchar-subscripts]
n[l[a[i]]] = i;
^
palindrome.cpp:38:15: warning: array subscript has type 'char' [-Wchar-subscripts]
l[a[i]] = i;
^
palindrome.cpp:43:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for (int i = 0; i < a.size(); i++) {
~~^~~~~~~~~~