foo.cc: In function ‘int main()’:
foo.cc:8:22: warning: comparison of integer expressions of different signedness: ‘int’ and ‘size_t’ {aka ‘long unsigned int’} [-Wsign-compare]
8 | for(int i=0;i<=strlen(s);i++)
| ~^~~~~~~~~~~
foo.cc:9:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
9 | a[s[i]]++;
| ~~~^
foo.cc:11:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
11 | if(a[i]!=0)
| ^
foo.cc:15:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
15 | if(a[i]!=0)
| ^
foo.cc:16:33: warning: array subscript has type ‘char’ [-Wchar-subscripts]
16 | cout<<a[i];
| ^