제출 #1144746

#제출 시각아이디문제언어결과실행 시간메모리
1144746AlgorithmWarrior가장 긴 여행 (IOI23_longesttrip)C++20
컴파일 에러
0 ms0 KiB
std::vector<int> longest_trip(int N, int D){ if(D==3){ int i; vector<int>path; for(i=0;i<N;++i) path.push_back(i); return path; } }

컴파일 시 표준 에러 (stderr) 메시지

longesttrip.cpp:1:6: error: 'vector' in namespace 'std' does not name a template type
    1 | std::vector<int> longest_trip(int N, int D){
      |      ^~~~~~
longesttrip.cpp:1:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
  +++ |+#include <vector>
    1 | std::vector<int> longest_trip(int N, int D){