Submission #569220

#TimeUsernameProblemLanguageResultExecution timeMemory
569220niloyrootRoad Closures (APIO21_roads)C++14
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; using ll = long long; using vi = vector<ll>; using pl = pair<ll,ll>; #define pb push_back #define form(m,it) for(auto it=m.begin(); it!=m.end(); it++) #define forp(i,a,b) for(ll i=a; i<=b; i++) #define forn(i,a,b) for(ll i=a; i>=b; i--) #define newl '\n' #define ff first #define ss second const ll mod = 1000000007; vi minimum_closure_costs(int n, vector<int> U, vector<int> V, vector<int> W){ vi ans; ll sum=0; for(auto u:W){ sum+=u; } ans.push_back(sum); forp(i,1,n-1){ ans.push_back(0); } return ans; } void solve(){ } int main(){ ios_base::sync_with_stdio(false); cin.tie(NULL); int t=1; //cin>>t; while(t--)solve(); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccqiRXkH.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccnMhapI.o:roads.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status