Submission #570230

#TimeUsernameProblemLanguageResultExecution timeMemory
570230ChrisM2309도로 폐쇄 (APIO21_roads)C++14
Compilation error
0 ms0 KiB
#include "roads.h" #include <bits/stdc++.h> using namespace std; typedef pair<int,int> ii; typedef long long ll; typedef vector<int> vi; typedef vector<ll> vll; typedef vector<vi> vvi; typedef vector<ii> vii; typedef vector<vii> wgraf; typedef pair<int,ii> edge; #define UNVISITED 0 #define VISITED 1 #define INF 1000000000 #define pb push_back #define F first #define S second #define all(x) (x).begin(), (x).end() std::vector<long long> minimum_closure_costs(int N, std::vector<int> U, std::vector<int> V, std::vector<int> W) { vector<ll> ans; sort(all(W)); ll sum = 0; for (auto i : W){ sum += i; ans.pb(sum); } reverse(all(ans)); `return ans; }

Compilation message (stderr)

roads.cpp:32:3: error: stray '`' in program
   32 |   `return ans;
      |   ^