friends.cpp: In function 'int32_t main()':
friends.cpp:17:18: warning: array subscript has type 'char' [-Wchar-subscripts]
17 | freq[s[i]]++ ;
| ^
friends.cpp:18:15: warning: array subscript has type 'char' [-Wchar-subscripts]
18 | v[s[i]].push_back(i) ;
| ^
friends.cpp:36:29: warning: array subscript has type 'char' [-Wchar-subscripts]
36 | for ( int i = 0 ; i < v[x].size() ; i++ )
| ^
friends.cpp:36:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
36 | for ( int i = 0 ; i < v[x].size() ; i++ )
| ~~^~~~~~~~~~~~~
friends.cpp:39:29: warning: array subscript has type 'char' [-Wchar-subscripts]
39 | g.erase(g.begin()+v[x][i]) ;
| ^
friends.cpp:20:10: warning: 'x' may be used uninitialized in this function [-Wmaybe-uninitialized]
20 | char x ;
| ^