#include <iostream>
#include <string>
int main()
{
const std::string s{"foo"};
std::cout << "s: " << s << std::endl;
const auto sz{s.size()};
std::cout << "s.size(): " << sz << std::endl;
const auto c_str{s.data()};
const size_t sz_t{sizeof(c_str) / sizeof(c_str[0])};
std::cout << sz_t << std::endl;
for (size_t i = 0; i < sz + 1; ++i)
{
std::cout << '#' << i << ' ' << static_cast<int>(*(s.c_str() + i)) << std::endl;
}
int a[17];
size_t n = sizeof(a)/sizeof(a[0]);
std::cout << n << std::endl;
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oKQp7Cgljb25zdCBzdGQ6OnN0cmluZyBzeyJmb28ifTsKCQoJc3RkOjpjb3V0IDw8ICJzOiAiIDw8IHMgPDwgc3RkOjplbmRsOwoJCgljb25zdCBhdXRvIHN6e3Muc2l6ZSgpfTsKCXN0ZDo6Y291dCA8PCAicy5zaXplKCk6ICIgPDwgc3ogPDwgc3RkOjplbmRsOwoJCgljb25zdCBhdXRvIGNfc3Rye3MuZGF0YSgpfTsKCWNvbnN0IHNpemVfdCBzel90e3NpemVvZihjX3N0cikgLyBzaXplb2YoY19zdHJbMF0pfTsKCXN0ZDo6Y291dCA8PCBzel90IDw8IHN0ZDo6ZW5kbDsKCQoJZm9yIChzaXplX3QgaSA9IDA7IGkgPCBzeiArIDE7ICsraSkKCXsKCQlzdGQ6OmNvdXQgPDwgJyMnIDw8IGkgPDwgJyAnIDw8IHN0YXRpY19jYXN0PGludD4oKihzLmNfc3RyKCkgKyBpKSkgPDwgc3RkOjplbmRsOwoJfQoJCglpbnQgYVsxN107CglzaXplX3QgbiA9IHNpemVvZihhKS9zaXplb2YoYVswXSk7CglzdGQ6OmNvdXQgPDwgbiA8PCBzdGQ6OmVuZGw7CgoJcmV0dXJuIDA7Cn0K