Submission #858542

#TimeUsernameProblemLanguageResultExecution timeMemory
858542ikura355Longest Trip (IOI23_longesttrip)C++17
5 / 100
3 ms348 KiB
#include "longesttrip.h" #include <bits/stdc++.h> using namespace std; std::vector<int> longest_trip(int N, int D) { if (D == 3) { // Return list of 0 to N-1 vector<int> ans(N); iota(ans.begin(), ans.end(), 0); return ans; } }

Compilation message (stderr)

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^
#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...