Submission #1081069

#TimeUsernameProblemLanguageResultExecution timeMemory
1081069KiprasLongest Trip (IOI23_longesttrip)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> typedef long long ll; using namespace std; vector<int> longest_trip(int N, int D) { if(D==3||D==2)return N; }

Compilation message (stderr)

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:7:26: error: could not convert 'N' from 'int' to 'std::vector<int>'
    7 |     if(D==3||D==2)return N;
      |                          ^
      |                          |
      |                          int