Language: C++

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


  int n = a.size();
  int c
  for(int i=0;i<n;i++)
  {
    for(int j=0;j<=a.at(i);j++)
    {
      if(i-j > 0)
        c++
      if(i+j<n && j!= 0)
        c++
    }
  }


int main()
{
  int n,k;
  cin >> n >> k;
  vector<int> a(n);
  
  vector<int c(n,0);
  for(int K = 0;K<k;k++)
  {  
  for(int i=0;i<n;i++)
  {
    for(int j=0;j<=a.at(i);j++)
    {
      if(i-j > 0)
        c[i-j]++;
      if(i+j<n && j!= 0)
        c[i+j]++;
    }
  }
    for(int = 0;i<n;i++)
      a[i] = c[i];
  }
  
  for(int i=0;i<n;i++)
    cout << a[i];
  cout << endl;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #intclude; did you mean #include?
    1 | #intclude <bits/stdc++.h>
      |  ^~~~~~~~
      |  include
a.cc:5:11: error: 'a' was not declared in this scope
    5 |   int n = a.size();
      |           ^
a.cc:7:3: error: expected initializer before 'for'
    7 |   for(int i=0;i<n;i++)
      |   ^~~
a.cc:7:15: error: 'i' does not name a type
    7 |   for(int i=0;i<n;i++)
      |               ^
a.cc:7:19: error: 'i' does not name a type
    7 |   for(int i=0;i<n;i++)
      |                   ^
a.cc: In function 'int main()':
a.cc:22:3: error: 'cin' was not declared in this scope
   22 |   cin >> n >> k;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #intclude <bits/stdc++.h>
a.cc:23:3: error: 'vector' was not declared in this scope
   23 |   vector<int> a(n);
      |   ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | #intclude <bits/stdc++.h>
a.cc:23:10: error: expected primary-expression before 'int'
   23 |   vector<int> a(n);
      |          ^~~
a.cc:25:10: error: expected primary-expression before 'int'
   25 |   vector<int c(n,0);
      |          ^~~
a.cc:30:20: error: 'a' was not declared in this scope
   30 |     for(int j=0;j<=a.at(i);j++)
      |                    ^
a.cc:33:9: error: 'c' was not declared in this scope
   33 |         c[i-j]++;
      |         ^
a.cc:35:9: error: 'c' was not declared in this scope
   35 |         c[i+j]++;
      |         ^
a.cc:38:13: error: expected unqualified-id before '=' token
   38 |     for(int = 0;i<n;i++)
      |             ^
a.cc:38:12: error: expected ';' before '=' token
   38 |     for(int = 0;i<n;i++)
      |            ^~
      |            ;
a.cc:38:13: error: expected primary-expression before '=' token
   38 |     for(int = 0;i<n;i++)
      |             ^
a.cc:38:17: error: 'i' was not declared in this scope
   38 |     for(int = 0;i<n;i++)
      |                 ^
a.cc:38:20: error: expected ')' before ';' token
   38 |     for(int = 0;i<n;i++)
      |        ~           ^
      |                    )
a.cc:38:21: error: 'i' was not declared in this scope
   38 |     for(int = 0;i<n;i++)
      |                     ^
a.cc:43:5: error: 'cout' was not declared in this scope
   43 |     cout << a[i];
      |     ^~~~
a.cc:43:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:43:13: error: 'a' was not declared in this scope
   43 |     cout << a[i];
      |             ^
a.cc:44:3: error: 'cout' was not declared in this scope
   44 |   cout << endl;
      |   ^~~~
a.cc:44:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:44:11: error: 'endl' was not declared in this scope
   44 |   cout << endl;
      |           ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #intclude <bits/stdc++.h>