Submission #1210647

#TimeUsernameProblemLanguageResultExecution timeMemory
1210647qwushaCatfish Farm (IOI22_fish)C++20
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "fish.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/cc85hRhN.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