Language: C++

#include<cstdio>
#include<iostream>
#include<algorithm>
#include<string.h>
using namespace std;
int main()
{
????????int n, cnt = 0, siz, siz_, on;
????????char c[26], l[101];
????????cin >> n;
????????scanf("%s", c);
????????siz = strlen(c);
????????for (int w = 0; w < n; w++)
????????{
????????????????scanf("%s", l);
????????????????siz_ = strlen(l);
????????????????bool gj = false;
????????????????for (int i = 0; i < siz_; i++)
????????????????{
????????????????????????for (int j = 1; i + j*(siz - 1) < siz_; j++)
????????????????????????{
????????????????????????????????on = i;
????????????????????????????????bool jg = true;
????????????????????????????????for (int k = 0; k < siz; k++)
????????????????????????????????{
????????????????????????????????????????if (c[k] != l[on])jg = false;
????????????????????????????????????????on += j;
????????????????????????????????}
????????????????????????????????if (jg)gj = true;
????????????????????????}
????????????????}
????????????????if (gj)cnt++;
????????}
????????cout << cnt << endl;
????????return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:1: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      | ^
a.cc:8:2: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |  ^
a.cc:8:3: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |   ^
a.cc:8:4: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |    ^
a.cc:8:5: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |     ^
a.cc:8:6: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |      ^
a.cc:8:7: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |       ^
a.cc:8:8: error: expected primary-expression before '?' token
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |        ^
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:8:9: error: expected ':' before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
      |         :
a.cc:8:9: error: expected primary-expression before 'int'
    8 | ????????int n, cnt = 0, siz, siz_, on;
      |         ^~~
a.cc:9:1: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      | ^
a.cc:9:2: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |  ^
a.cc:9:3: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |   ^
a.cc:9:4: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |    ^
a.cc:9:5: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |     ^
a.cc:9:6: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |      ^
a.cc:9:7: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |       ^
a.cc:9:8: error: expected primary-expression before '?' token
    9 | ????????char c[26], l[101];
      |        ^
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:9:9: error: expected ':' before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
      |         :
a.cc:9:9: error: expected primary-expression before 'char'
    9 | ????????char c[26], l[101];
      |         ^~~~
a.cc:10:1: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      | ^
a.cc:10:2: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |  ^
a.cc:10:3: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |   ^
a.cc:10:4: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |    ^
a.cc:10:5: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |     ^
a.cc:10:6: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |      ^
a.cc:10:7: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |       ^
a.cc:10:8: error: expected primary-expression before '?' token
   10 | ????????cin >> n;
      |        ^
a.cc:10:16: error: 'n' was not declared in this scope
   10 | ????????cin >> n;
      |                ^
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:10:17: error: expected ':' before ';' token
   10 | ????????cin >> n;
      |                 ^
      |                 :
a.cc:10:17: error: expected primary-expression before ';' token
a.cc:11:1: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      | ^
a.cc:11:2: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |  ^
a.cc:11:3: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |   ^
a.cc:11:4: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |    ^
a.cc:11:5: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |     ^
a.cc:11:6: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |      ^
a.cc:11:7: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |       ^
a.cc:11:8: error: expected primary-expression before '?' token
   11 | ????????scanf("%s", c);
      |        ^
a.cc:11:21: error: 'c' was not declared in this scope
   11 | ????????scanf("%s", c);
      |                     ^
a.cc:11:23: error: expected ':' before ';' token
   11 | ????????scanf("%s", c);
      |                       ^
      |                       :
a.cc:11:23: error: expected primary-expression before ';' token
a.cc:11:23: error: expected ':' before ';' token
   11 | ????????scanf("%s", c);
      |                       ^
      |                       :
a.cc:11:23: error: expected primary-expression before ';' token
a.cc:11:23: error: expected ':' before ';' token
   11 | ????????scanf("%s", c);
      |                       ^
      |                       :
a.cc:11:23: error: expected primary-expression before ';' token
a.cc:11:23: error: expected ':' before ';' token
   11 | ????????scanf("%s", c);
      |                       ^
      |