palindrome.cpp: In function 'std::vector<int> pfunc(std::__cxx11::string)':
palindrome.cpp:19:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 1; i < str.size(); i++) {
~~^~~~~~~~~~~~
palindrome.cpp: In function 'void check(std::__cxx11::string)':
palindrome.cpp:34:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < p.size(); i++)
~~^~~~~~~~~~
palindrome.cpp:35:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
if(p[i] == t.size()) cnt++;
palindrome.cpp: In function 'int main()':
palindrome.cpp:49:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size(); i++) {
~~^~~~~~~~~~
palindrome.cpp:52:31: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i-j >= 0 && i+j < s.size() && s[i-j]==s[i+j]) {
~~~~^~~~~~~~~~
palindrome.cpp:59:22: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i = 0; i < s.size()-1; i++) {
~~^~~~~~~~~~~~
palindrome.cpp:63:33: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(i-j >= 0 && i+j+1 < s.size() && s[i-j]==s[i+j+1]) {
~~~~~~^~~~~~~~~~