Submission #679685

# Submission time Handle Problem Language Result Execution time Memory
679685 2023-01-09T01:23:06 Z boyliguanhan Catfish Farm (IOI22_fish) C++17
Compilation error
0 ms 0 KB
#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

/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