Submission #679685

#TimeUsernameProblemLanguageResultExecution timeMemory
679685boyliguanhanCatfish Farm (IOI22_fish)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> using namespace std; long long max_weights(int n, int m, int x[], int y[], int w[]){ int res[2]; for(int i = 0; i < n; i++) res[x[i]%2]+=w[i]; return max(res[0], res[1]); }

Compilation message (stderr)

/usr/bin/ld: /tmp/ccZBxg4Y.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