Submission #953196

# Submission time Handle Problem Language Result Execution time Memory
953196 2024-03-25T16:52:45 Z pragma Wiring (IOI17_wiring) C++14
Compilation error
0 ms 0 KB
#include "wiring.h"

#include <cassert>
#include <cstdio>

using namespace std;

int main() {
	int n, m;
	assert(2 == scanf("%d %d", &n, &m));

	vector<int> r(n), b(m);
	for(int i = 0; i < n; i++)
		assert(1 == scanf("%d", &r[i]));
	for(int i = 0; i < m; i++)
		assert(1 == scanf("%d", &b[i]));

	long long res = min_total_length(r, b);
	printf("%lld\n", res);

	return 0;
}

Compilation message

/usr/bin/ld: /tmp/ccBDXmfK.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cczMpw1I.o:wiring.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/cczMpw1I.o: in function `main':
wiring.cpp:(.text.startup+0x118): undefined reference to `min_total_length(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
/usr/bin/ld: /tmp/ccBDXmfK.o: in function `main':
grader.cpp:(.text.startup+0x22a): undefined reference to `min_total_length(std::vector<int, std::allocator<int> >, std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status