Submission #916390

#TimeUsernameProblemLanguageResultExecution timeMemory
916390Jakub_WozniakPermutation (APIO22_perm)C++17
Compilation error
0 ms0 KiB
vector<int> construct_permutation(long long n) { long long akt = 200; bool b = 0; vector <int> v; while (n) { if (n == 1) break; if (n % 2) { v.push_back(0); } v.push_back(akt); n /= 2; akt--; } return v; }

Compilation message (stderr)

perm.cpp:1:1: error: 'vector' does not name a type
    1 | vector<int> construct_permutation(long long n)
      | ^~~~~~