Submission #1006818

#TimeUsernameProblemLanguageResultExecution timeMemory
1006818NeroZeinLongest Trip (IOI23_longesttrip)C++17
Compilation error
0 ms0 KiB
#include "longesttrip.h" #include <bits/stdc++.h> using namespace std; vector<int> longest_trip(int N, int D) { vector<int> ord(n); iota(ord.begin(), ord.end(), 0); return {ord}; }

Compilation message (stderr)

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:7:19: error: 'n' was not declared in this scope
    7 |   vector<int> ord(n);
      |                   ^