Click Here to go back to the homepage.

Avion Solution:


#include <bits/stdc++.h>

using namespace std;

int main(){
    // freopen("input.txt", "r", stdin);
    // freopen("output.txt", "w", stdout);
    string line;
    int lineNum = 0;
    bool found = false;
    while(getline(cin, line)){
        lineNum++;
        if(line.find("FBI") != string::npos){
            cout << lineNum << " ";
            found = true;
        }
    }
    if(!found) {
        cout << "HE GOT AWAY!";
    }
    return 0;
}