Language: C++

#include <stdio.h>
#include <string.h>

char or[50];
char ol[150];

int main(void)
{
	int n, len, s, l, ind;
	int i, j, k, c, ans;
	
	scanf("%d", &n);
	scanf("%s", or);
	s = -1;
	l = strlen(or);
	ans = 0;
	
	for (i = 0; i < n; i++){
		scanf("%s", ol);
		c = 0;
		len = strlen(ol);
		
		for (j = 0;j < len; j++){
			
			if (or[0] == ol[j]){
				for (k = j; k < len; k++){
					if (or[1] == ol[k]){
						s = k - j;
					}
				}
				
				ind = 0;
				
				for (k = j; k < len; k += s ){
					if (or[ind] == ol[k]){
						c++;
					}
					ind++;
				}
			}
			if (c == l - 1){
				ans++;
				break;
			}
			c = 0;
		}
	}
	printf("%d\n", ans);
	
	return (0);
}
	

Compiler output:
a.cc:4:6: error: expected unqualified-id before 'or' token
    4 | char or[50];
      |      ^~
a.cc: In function 'int main()':
a.cc:13:21: error: expected primary-expression before 'or' token
   13 |         scanf("%s", or);
      |                     ^~
a.cc:13:23: error: expected primary-expression before ')' token
   13 |         scanf("%s", or);
      |                       ^
a.cc:15:20: error: expected primary-expression before 'or' token
   15 |         l = strlen(or);
      |                    ^~
a.cc:15:22: error: expected primary-expression before ')' token
   15 |         l = strlen(or);
      |                      ^
a.cc:25:29: error: expected primary-expression before 'or' token
   25 |                         if (or[0] == ol[j]){
      |                             ^~
a.cc:25:32: error: expected identifier before numeric constant
   25 |                         if (or[0] == ol[j]){
      |                                ^
a.cc: In lambda function:
a.cc:25:35: error: expected '{' before '==' token
   25 |                         if (or[0] == ol[j]){
      |                                   ^~
a.cc: In function 'int main()':
a.cc:25:35: error: no match for 'operator==' (operand types are 'main()::<lambda()>' and 'char')
   25 |                         if (or[0] == ol[j]){
      |                               ~~~ ^~ ~~~~~
      |                               |          |
      |                               |          char
      |                               main()::<lambda()>
a.cc:27:45: error: expected primary-expression before 'or' token
   27 |                                         if (or[1] == ol[k]){
      |                                             ^~
a.cc:27:48: error: expected identifier before numeric constant
   27 |                                         if (or[1] == ol[k]){
      |                                                ^
a.cc: In lambda function:
a.cc:27:51: error: expected '{' before '==' token
   27 |                                         if (or[1] == ol[k]){
      |                                                   ^~
a.cc: In function 'int main()':
a.cc:27:51: error: no match for 'operator==' (operand types are 'main()::<lambda()>' and 'char')
   27 |                                         if (or[1] == ol[k]){
      |                                               ~~~ ^~ ~~~~~
      |                                               |          |
      |                                               |          char
      |                                               main()::<lambda()>
a.cc:35:45: error: expected primary-expression before 'or' token
   35 |                                         if (or[ind] == ol[k]){
      |                                             ^~
a.cc: In lambda function:
a.cc:35:53: error: expected '{' before '==' token
   35 |                                         if (or[ind] == ol[k]){
      |                                                     ^~
a.cc: In function 'int main()':
a.cc:35:53: error: no match for 'operator==' (operand types are 'main()::<lambda()>' and 'char')
   35 |                                         if (or[ind] == ol[k]){
      |                                               ~~~~~ ^~ ~~~~~
      |                                               |            |
      |                                               |            char
      |                                               main()::<lambda()>