Language: C++

atcoder-tools: The pre-rendered templates are not found.#include <bits/stdc++.h>
using namespace std;
#define _GLIBCXX_DEBUG
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 11e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

int main()
{
    cin.tie(0);
    ios::sync_with_stdio(false);

    int N, K;
    cin >> N >> K;
    vector<int> P(N);
    vector<int> P_copy(N);
    for (int i = 0; i < N; i++)
        cin >> P[i];
    vector<vector<int>> P_list(0, vector<int>(N));
    int num = 0;
    for (int i = 0; i + K - 1 < N; i++)
    {
      	P_copy = P;
        sort(P_copy.begin() + i, P_copy.begin() + i + K);
        P_list.push_back(P_copy);
        num++;
    }
    sort(ALL(P_list));
    P_list.erase(std::unique(ALL(P_list)), P_list.end());

    cout << P_list.size() << "\n";
}

Compiler output:
a.cc:1:57: error: stray '#' in program
    1 | atcoder-tools: The pre-rendered templates are not found.#include <bits/stdc++.h>
      |                                                         ^
a.cc:1:1: error: 'atcoder' does not name a type
    1 | atcoder-tools: The pre-rendered templates are not found.#include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: 'cin' was not declared in this scope
   14 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | atcoder-tools: The pre-rendered templates are not found.#include <bits/stdc++.h>
a.cc:15:5: error: 'ios' has not been declared
   15 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:19:5: error: 'vector' was not declared in this scope
   19 |     vector<int> P(N);
      |     ^~~~~~
a.cc:1:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
  +++ |+#include <vector>
    1 | atcoder-tools: The pre-rendered templates are not found.#include <bits/stdc++.h>
a.cc:19:12: error: expected primary-expression before 'int'
   19 |     vector<int> P(N);
      |            ^~~
a.cc:20:12: error: expected primary-expression before 'int'
   20 |     vector<int> P_copy(N);
      |            ^~~
a.cc:22:16: error: 'P' was not declared in this scope
   22 |         cin >> P[i];
      |                ^
a.cc:23:19: error: expected primary-expression before 'int'
   23 |     vector<vector<int>> P_list(0, vector<int>(N));
      |                   ^~~
a.cc:27:9: error: 'P_copy' was not declared in this scope
   27 |         P_copy = P;
      |         ^~~~~~
a.cc:27:18: error: 'P' was not declared in this scope
   27 |         P_copy = P;
      |                  ^
a.cc:28:9: error: 'sort' was not declared in this scope; did you mean 'short'?
   28 |         sort(P_copy.begin() + i, P_copy.begin() + i + K);
      |         ^~~~
      |         short
a.cc:29:9: error: 'P_list' was not declared in this scope
   29 |         P_list.push_back(P_copy);
      |         ^~~~~~
a.cc:32:14: error: 'P_list' was not declared in this scope
   32 |     sort(ALL(P_list));
      |              ^~~~~~
a.cc:8:16: note: in definition of macro 'ALL'
    8 | #define ALL(v) v.begin(), v.end()
      |                ^
a.cc:32:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   32 |     sort(ALL(P_list));
      |     ^~~~
      |     short
a.cc:33:23: error: 'unique' is not a member of 'std'
   33 |     P_list.erase(std::unique(ALL(P_list)), P_list.end());
      |                       ^~~~~~
a.cc:35:5: error: 'cout' was not declared in this scope
   35 |     cout << P_list.size() << "\n";
      |     ^~~~
a.cc:35:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'