제출 #1006818

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

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