#include "swap.h"
#include "bits/stdc++.h"
#include "grader.cpp"
using namespace std;
#define pb push_back
#define ff first
#define ss second
#define sz(x) (int)x.size()
#define int long long
const int NN = 1e5+5;
int res;
vector<pair<int, int>> edges[NN];
int sum = 0, mx = 0;
void init(int32_t N, int32_t M,
vector<int32_t> U, vector<int32_t> V, vector<int32_t> W) {
//cout<<"\n";
for(int i=0;i<M;i++){
edges[U[i]].pb({V[i], W[i]});
edges[V[i]].pb({U[i], W[i]});
sum += W[i], mx = max(mx, (int)W[i]);
}
if(N == M) res = mx;
else res = -1;
}
/*
5 5
1 0 1
2 1 2
3 2 3
4 3 4
4 0 5
5
0 1
1 2
2 3
3 4
4 0
*/
int32_t getMinimumFuelCapacity(int32_t x, int32_t y) {
return res;
}
Compilation message
/usr/bin/ld: /tmp/ccfM4fvE.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/ccnPBmyH.o:swap.cpp:(.text.startup+0x0): first defined here
collect2: error: ld returned 1 exit status