Submission #1065188

# Submission time Handle Problem Language Result Execution time Memory
1065188 2024-08-19T02:52:55 Z LittleOrange Longest Trip (IOI23_longesttrip) C++17
Compilation error
0 ms 0 KB
#include "longesttrip.h"

#include <vector>
#include<bits/stdc++.h>
using namespace std;
using ll = int;

std::vector<int> longest_trip(int N, int D)
{
    vector<ll> r(n);
    iota(r.begin(),r.end(),0);
    return r;
}

Compilation message

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:10:18: error: 'n' was not declared in this scope
   10 |     vector<ll> r(n);
      |                  ^