Submission #845999

#TimeUsernameProblemLanguageResultExecution timeMemory
845999Trisanu_DasLongest Trip (IOI23_longesttrip)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; #include "longesttrip.h" int n; vector<int> ans; vector<int> longest_trip(int N, int D){ int n = N; ans.clear(); for(int i = 0; i < n; i++) ans.push_back(i); return ans;

Compilation message (stderr)

longesttrip.cpp: In function 'std::vector<int> longest_trip(int, int)':
longesttrip.cpp:10:13: error: expected '}' at end of input
   10 |   return ans;
      |             ^
longesttrip.cpp:7:39: note: to match this '{'
    7 | vector<int> longest_trip(int N, int D){
      |                                       ^