static bool comp(string a ,string b){ return a.size()<=b.size(); }
I used this in leetcode But this gives Error "terminate called after throwing an instance of 'std::length_error' "
after changing it to --> a.size()<b.size() this works How this works????