c/c++天梯赛题帮看看哪里错了

问题遇到的现象和发生背景 输入每行给出一句不超过 80 个字符的、以回车结尾的朋友信息,信息为非空字符串,仅包括字母、数字、空格、可见的半角标点符号。当读到某一行只有一个英文句点 . 时,输入结束,此行不算在朋友信息里。

首先在一行中输出朋友信息的总条数。然后对朋友的每一行信息,检查其中是否包含 chi1 huo3 guo1,并且统计这样厉害的信息有多少条。在第二行中首先输出第一次出现 chi1 huo3 guo1 的信息是第几条(从 1 开始计数),然后输出这类信息的总条数,其间以一个空格分隔。题目保证输出的所有数字不超过 100。
输入样例 1:
Hello!
are you there?
wantta chi1 huo3 guo1?
that's so li hai le
our story begins from chi1 huo3 guo1 le
输出样例 1:
5
3 2
输入样例 2:
Hello!
are you there?
wantta qi huo3 guo1 chi1huo3guo1?
that's so li hai le
our story begins from ci1 huo4 guo2 le
.
输出样例 2:
5
-_-#

如果朋友从头到尾都没提 chi1 huo3 guo1 这个关键词,则在第二行输出一个表情 -_-#。

用代码块功能插入代码,请勿粘贴截图
#define _CRT_SECURE_NO_WARNINGS 1
#include
#include
#include
#include
#include
#include
#include
using namespace std;

int main()
{
    string s[100];
    string op = "hi1 huo3 guo1";
    int i;
    int cnt = 0;
    int k = 0;
    for (i = 0; getline(cin, s[i]) && s[i][0] != '.'; i++) {
        if (s[i].find(op) != string::npos) {
            cnt++;
            if (k == 0)k = i + 1;
        }
    }
    cout << i << endl;
    if (cnt == 0)cout << "-_-#" << endl;
    else cout << k << " " << cnt << endl;
    return 0;
}


运行结果及报错内容 答案错误
我的解答思路和尝试过的方法 不知道错哪里
我想要达到的结果 使答案正确