Submission #626959

#TimeUsernameProblemLanguageResultExecution timeMemory
626959GloryRoad Closures (APIO21_roads)C++17
Compilation error
0 ms0 KiB
#include<iostream> #define int long long using namespace std; int64[] minimum_closure_costs(int N, int[] U, int[] V, int[] W){ int ans[N+5]; int res = 0; for(int i=1; i<=N; i++){ res+= W[i]; } sort(W+1,W+1+N,greater<int>()); ans[0]=res; for(int i=1; i<=N; i++){ res-=W[i-1]; ans[i]=res; } return ans; }

Compilation message (stderr)

roads.cpp:5:1: error: 'int64' does not name a type; did you mean 'int64_t'?
    5 | int64[] minimum_closure_costs(int N, int[] U, int[] V, int[] W){
      | ^~~~~
      | int64_t