interval.cpp: In function 'int main()':
interval.cpp:32:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<s.size(); i++){
~^~~~~~~~~
interval.cpp:34:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i; j<s.size(); j++){
~^~~~~~~~~
interval.cpp:35:15: warning: array subscript has type 'char' [-Wchar-subscripts]
hs+=pw[s[j]];
^
interval.cpp:40:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int i=0; i<t.size(); i++){
~^~~~~~~~~
interval.cpp:42:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(int j=i; j<t.size(); j++){
~^~~~~~~~~
interval.cpp:43:15: warning: array subscript has type 'char' [-Wchar-subscripts]
hs+=pw[t[j]];
^