✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Що буде виведено в результаті виконання коду?
Введіть відповідь точно так, як її виведе програма, без додаткових пробілів.
#include <iostream>
#include <vector>
#include <algorithm>
#include <queue>
#include <set>
#include <string>
#include <cmath>
using namespace std;
struct ByLen{bool operator()(const string& a,const string& b)const{return a.size()<b.size();}};
int main(){
vector<string> v={"bbb","a","cc"}; sort(v.begin(),v.end(),ByLen()); for(auto s:v) cout<<s;
return 0;
}
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!