#include <iostream>
#include <string>
int main ()
{
std::string texto ("Na(CO5(Pt");
std::size_t posicao = texto.find("(");
while (posicao!=std::string::npos){
std::cout << "Parentesis na posição " << posicao << '\n';
posicao = texto.find("(",posicao+1);
}
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgojaW5jbHVkZSA8c3RyaW5nPgoKaW50IG1haW4gKCkKewogIHN0ZDo6c3RyaW5nIHRleHRvICgiTmEoQ081KFB0Iik7CgoKICBzdGQ6OnNpemVfdCBwb3NpY2FvID0gdGV4dG8uZmluZCgiKCIpOwogIHdoaWxlIChwb3NpY2FvIT1zdGQ6OnN0cmluZzo6bnBvcyl7CiAgICAgICAgc3RkOjpjb3V0IDw8ICJQYXJlbnRlc2lzIG5hIHBvc2nDp8OjbyAiIDw8IHBvc2ljYW8gPDwgJ1xuJzsKICAgICAgICBwb3NpY2FvID0gdGV4dG8uZmluZCgiKCIscG9zaWNhbysxKTsKICB9CgogIHJldHVybiAwOwp9Cg==