Help on "Censoring"

Problem Info



I’m not sure what the letter “t” means when it throws an error. Also just other general debugging

What I’ve Tried

I’ve tried throwing a bunch of if-statements at edge cases, but none fixed it so I removed them. I get testcase 7 wrong, and the error is symbolized by a “t”, and I have no clue what that could mean.

My Work

// Source:

#include <bits/stdc++.h>
using namespace std;

int main() {
	string s; cin >> s;
	string t; cin >> t;

	while (true){
		// find where t matches s

		int found = s.find(t);
		if (found == -1){
			// break if t not in s

		// censor
		s.erase(found, t.size());

	cout << s << endl;

I guess I was Googling the wrong thing, apparently “t” means time limit exceeded. whoops