#include <algorithm>
#include <cstring>
#include <iostream>
#include <iterator>
#include <string>
#include <vector>
using namespace std;
int main() {
const char* testdata = "the quick brown fox jumps over the lazy dog.";
{
vector<unsigned char> vec(testdata, next(testdata, strlen(testdata)));
for(const auto& i : vec) cout << i;
cout << endl;
}
{
basic_string<unsigned char> vec(testdata, next(testdata, strlen(testdata)));
cout << vec.data() << endl;
}
}
I2luY2x1ZGUgPGFsZ29yaXRobT4KI2luY2x1ZGUgPGNzdHJpbmc+CiNpbmNsdWRlIDxpb3N0cmVhbT4KI2luY2x1ZGUgPGl0ZXJhdG9yPgojaW5jbHVkZSA8c3RyaW5nPgojaW5jbHVkZSA8dmVjdG9yPgoKdXNpbmcgbmFtZXNwYWNlIHN0ZDsKCmludCBtYWluKCkgewoJY29uc3QgY2hhciogdGVzdGRhdGEgPSAidGhlIHF1aWNrIGJyb3duIGZveCBqdW1wcyBvdmVyIHRoZSBsYXp5IGRvZy4iOwoJCgl7CgkJdmVjdG9yPHVuc2lnbmVkIGNoYXI+IHZlYyh0ZXN0ZGF0YSwgbmV4dCh0ZXN0ZGF0YSwgc3RybGVuKHRlc3RkYXRhKSkpOwoJCQoJCWZvcihjb25zdCBhdXRvJiBpIDogdmVjKSBjb3V0IDw8IGk7CgkJY291dCA8PCBlbmRsOwoJfQoJewoJCWJhc2ljX3N0cmluZzx1bnNpZ25lZCBjaGFyPiB2ZWModGVzdGRhdGEsIG5leHQodGVzdGRhdGEsIHN0cmxlbih0ZXN0ZGF0YSkpKTsKCQkKCQljb3V0IDw8IHZlYy5kYXRhKCkgPDwgZW5kbDsKCX0KfQ==