Submission #569473

#TimeUsernameProblemLanguageResultExecution timeMemory
569473TurkhuuRoad Closures (APIO21_roads)C++17
Compilation error
0 ms0 KiB
#include "roads.h" #include <vector> vector<long long> minimum_closure_costs(int n, std::vector<int> u, std::vector<int> v, std::vector<int> w){ sort(w.begin(), w.end()); vector<long long> ans(n); for(int i = 0; i < n - 1; i++){ ans[n - i - 2] = ans[n - i - 1] + w[i]; } return ans; }

Compilation message (stderr)

roads.cpp:3:1: error: 'vector' does not name a type
    3 | vector<long long> minimum_closure_costs(int n, std::vector<int> u, std::vector<int> v, std::vector<int> w){
      | ^~~~~~