Submission #1065188

#TimeUsernameProblemLanguageResultExecution timeMemory
1065188LittleOrangeLongest Trip (IOI23_longesttrip)C++17
Compilation error
0 ms0 KiB
#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 (stderr)

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