Submission #1069559

#TimeUsernameProblemLanguageResultExecution timeMemory
1069559Faisal_SaqibLongest Trip (IOI23_longesttrip)C++17
5 / 100
2 ms596 KiB
#include <bits/stdc++.h> using namespace std; std::vector<int> longest_trip(int n, int D) { if(D==3) { vector<int> ans; for(int i=0;i<n;i++) ans.push_back(i); return ans; } else { } } bool are_connected(std::vector<int> A, std::vector<int> B);

Compilation message (stderr)

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