Submission #979489

# Submission time Handle Problem Language Result Execution time Memory
979489 2024-05-11T06:28:36 Z ducksaysquack Swapping Cities (APIO20_swap) C++17
Compilation error
0 ms 0 KB
#include "swap.h"
#include <bits/stdc++.h>
#define int long long
using namespace std;
bool yes = true;
int k = 0;
void init(int n, int m, vector<int> u, vector<int> v, vector<int> w) {
	yes = n == m;
    for(int i=0;i<m;i++) k = max(k, w[i]);
}
int getMinimumFuelCapacity(int x, int y) {
	return yes? k:-1;
}

Compilation message

/usr/bin/ld: /tmp/cchZOOvv.o: in function `main':
grader.cpp:(.text.startup+0x1c3): undefined reference to `init(int, int, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: grader.cpp:(.text.startup+0x217): undefined reference to `getMinimumFuelCapacity(int, int)'
collect2: error: ld returned 1 exit status