Submission #1006818

# Submission time Handle Problem Language Result Execution time Memory
1006818 2024-06-24T09:05:04 Z NeroZein Longest Trip (IOI23_longesttrip) C++17
Compilation error
0 ms 0 KB
#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

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);
      |                   ^