Submission #680478

# Submission time Handle Problem Language Result Execution time Memory
680478 2023-01-11T00:10:32 Z aabbfc21 Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
 
using namespace std;
 
int64_t max_weights(int N, int M, int X[], int Y[], int W[]) {
	int64_t sum = 0;
    for (int i = 0; i < M; i++) {
    	sum += W[i];
    }
    return sum;
}

Compilation message

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