treasure.cpp: In function 'int main()':
treasure.cpp:69:9: warning: array subscript has type 'char' [-Wchar-subscripts]
   g[s[i]].pb(i);
         ^
treasure.cpp:71:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   if(alive.size() >= k) {
      ~~~~~~~~~~~~~^~~~
treasure.cpp:72:29: warning: array subscript has type 'char' [-Wchar-subscripts]
    int cnt = ub(every(g[s[i]]), i) - lb(every(g[s[i]]), alive[sz(alive)-k]);
                             ^
treasure.cpp:22:18: note: in definition of macro 'every'
 #define every(x) x.begin(),x.end()
                  ^
treasure.cpp:72:29: warning: array subscript has type 'char' [-Wchar-subscripts]
    int cnt = ub(every(g[s[i]]), i) - lb(every(g[s[i]]), alive[sz(alive)-k]);
                             ^
treasure.cpp:22:28: note: in definition of macro 'every'
 #define every(x) x.begin(),x.end()
                            ^
treasure.cpp:72:53: warning: array subscript has type 'char' [-Wchar-subscripts]
    int cnt = ub(every(g[s[i]]), i) - lb(every(g[s[i]]), alive[sz(alive)-k]);
                                                     ^
treasure.cpp:22:18: note: in definition of macro 'every'
 #define every(x) x.begin(),x.end()
                  ^
treasure.cpp:72:53: warning: array subscript has type 'char' [-Wchar-subscripts]
    int cnt = ub(every(g[s[i]]), i) - lb(every(g[s[i]]), alive[sz(alive)-k]);
                                                     ^
treasure.cpp:22:28: note: in definition of macro 'every'
 #define every(x) x.begin(),x.end()
                            ^
treasure.cpp:75:12: warning: array subscript has type 'char' [-Wchar-subscripts]
      g[s[i]].pop_back();
            ^