palindrome.cpp: In member function 'int Trie::add(char*, int, int, int)':
palindrome.cpp:47:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if( trie[cur][c] == 0 )
^
palindrome.cpp:49:16: warning: array subscript has type 'char' [-Wchar-subscripts]
trie[cur][c] = ++ nodes ;
^
palindrome.cpp:53:21: warning: array subscript has type 'char' [-Wchar-subscripts]
cur = trie[cur][c] ;
^
palindrome.cpp: In member function 'long long int Trie::dfs(int, int, bool)':
palindrome.cpp:88:31: warning: left operand of comma operator has no effect [-Wunused-value]
debug("%d -> %lld %lld\n" , cur , tempAns , multiplier ) ;
^~~
palindrome.cpp:88:37: warning: right operand of comma operator has no effect [-Wunused-value]
debug("%d -> %lld %lld\n" , cur , tempAns , multiplier ) ;
^~~~~~~
palindrome.cpp:88:47: warning: right operand of comma operator has no effect [-Wunused-value]
debug("%d -> %lld %lld\n" , cur , tempAns , multiplier ) ;
^~~~~~~~~~
palindrome.cpp: In function 'void manacher()':
palindrome.cpp:147:99: warning: left operand of comma operator has no effect [-Wunused-value]
debug("With center %d, we have a ratio of %d and the last I used was %d and it became %d\n\n" , i , rad , last , myAd[i]) ;
^
palindrome.cpp:147:103: warning: right operand of comma operator has no effect [-Wunused-value]
debug("With center %d, we have a ratio of %d and the last I used was %d and it became %d\n\n" , i , rad , last , myAd[i]) ;
^~~
palindrome.cpp:147:110: warning: right operand of comma operator has no effect [-Wunused-value]
debug("With center %d, we have a ratio of %d and the last I used was %d and it became %d\n\n" , i , rad , last , myAd[i]) ;
^~~~
palindrome.cpp:147:123: warning: right operand of comma operator has no effect [-Wunused-value]
debug("With center %d, we have a ratio of %d and the last I used was %d and it became %d\n\n" , i , rad , last , myAd[i]) ;
^
palindrome.cpp: In function 'int main()':
palindrome.cpp:167:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf(" %s" , difStr ) ;
~~~~~^~~~~~~~~~~~~~~~~