제출 #1000000

#제출 시각아이디문제언어결과실행 시간메모리
1000000IUA_Hasin가장 긴 여행 (IOI23_longesttrip)C++17
5 / 100
3 ms344 KiB
#include "longesttrip.h"
#include <bits/stdc++.h>
 
#define endl                                "\n"
#define yeap                                cout<<"YES"<<endl
#define nope                                cout<<"NO"<<endl
#define ll                                  long long

using namespace std;


std::vector<int> longest_trip(int N, int D)
{
    if(D==3){
        vector<int> v;
        for(int i=0; i<N; i++){
            v.push_back(i);
        }
        return v;
    }
}

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

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:21:1: warning: control reaches end of non-void function [-Wreturn-type]
   21 | }
      | ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...