#include <iostream>
#include <string>
int main(int argc, char *argv[])
{
const std::string line = "I am a little test string...";
std::cout << line.find("I am") << "\n";
std::cout << (line.find("I am", 1) == std::string::npos ? "not found" : "found") << "\n";
std::cout << line.find("a") << "\n";
std::cout << line.find("little") << "\n";
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4oaW50IGFyZ2MsIGNoYXIgKmFyZ3ZbXSkKewogICAgY29uc3Qgc3RkOjpzdHJpbmcgbGluZSA9ICJJIGFtIGEgbGl0dGxlIHRlc3Qgc3RyaW5nLi4uIjsKCiAgICBzdGQ6OmNvdXQgPDwgbGluZS5maW5kKCJJIGFtIikgPDwgIlxuIjsKICAgIHN0ZDo6Y291dCA8PCAobGluZS5maW5kKCJJIGFtIiwgMSkgPT0gc3RkOjpzdHJpbmc6Om5wb3MgPyAibm90IGZvdW5kIiA6ICJmb3VuZCIpIDw8ICJcbiI7CiAgICBzdGQ6OmNvdXQgPDwgbGluZS5maW5kKCJhIikgPDwgIlxuIjsKICAgIHN0ZDo6Y291dCA8PCBsaW5lLmZpbmQoImxpdHRsZSIpIDw8ICJcbiI7CgogICAgcmV0dXJuIDA7Cn0=