Language: C++

#include <iostream>
using namespace std;

int main() {
	cin.tie(0);
	ios::sync_with_stdio(false);
	char buf[16];
	cin >> buf;

	char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
	for (int i = 0; i <= 9; i++) {
		if (strstr(buf, p[i]) != NULL) {
			cout << "Bad";
			return;
		}
	}
	cout << "Good";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                       ^~~~
a.cc:10:29: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                             ^~~~
a.cc:10:35: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                   ^~~~
a.cc:10:41: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                         ^~~~
a.cc:10:47: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                               ^~~~
a.cc:10:53: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                                     ^~~~
a.cc:10:59: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                                           ^~~~
a.cc:10:65: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                                                 ^~~~
a.cc:10:71: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                                                       ^~~~
a.cc:10:77: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
   10 |         char* p[] = { "00", "11", "22", "33", "44", "55", "66", "77", "88", "99", };
      |                                                                             ^~~~
a.cc:12:21: error: 'strstr' was not declared in this scope
   12 |                 if (strstr(buf, p[i]) != NULL) {
      |                     ^~~~~~
a.cc:2:1: note: 'strstr' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
a.cc:14:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |                         return;
      |                         ^~~~~~