QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#522551 | #4561. Catfish Farm | tunjeek# | Compile Error | / | / | C++20 | 435b | 2024-08-17 01:25:59 | 2024-08-17 01:25:59 |
Judging History
answer
#include "fish.h"
#include <cstdio>
#include <vector>
#include <algorithm>
#include <cstring>
#define X first
#define Y second
#define PB push_back
#define debug(...) //fprintf(stderr, __VA_ARGS__)
using namespace std;
typedef long long ll;
ll a[2];
ll max_weights(int n, int m, vector<int> X, vector<int> Y, vector<ll> W) {
for(int i = 0; i < m; ++i) {
a[X[i]] += W[i];
}
return max(a[0], a[1]);
}
Details
/usr/bin/ld: /tmp/ccpaa2NT.o: in function `main': implementer.cpp:(.text.startup+0x275): 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