Submission #1210645

#TimeUsernameProblemLanguageResultExecution timeMemory
1210645qwushaCatfish Farm (IOI22_fish)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define fi first
#define se second
typedef long long ll;
typedef long double ld;
mt19937 rnd(chrono::high_resolution_clock::now().time_since_epoch().count());
#define int long long
int inf = 1e18;

int max_weights(int n, int m, vector<int> x, vector<int> y, vector<int> w) {
    int res = 0;
    for (int i = 0; i < m; i++) {
        res += w[i];
    }
    return res;
}

Compilation message (stderr)

/usr/bin/ld: /tmp/cc4ZCoHc.o: in function `main':
grader.cpp:(.text.startup+0x267): 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