제출 #1065188

#제출 시각아이디문제언어결과실행 시간메모리
1065188LittleOrangeLongest Trip (IOI23_longesttrip)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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);
      |                  ^