제출 #1176200

#제출 시각아이디문제언어결과실행 시간메모리
1176200Kavelmydex메기 농장 (IOI22_fish)C++20
컴파일 에러
0 ms0 KiB
/*

*/
#include "fish.h"
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define vi vector<int>
#define pi pair<int,int>

ll max_weights(ll n, ll m, std::vector<ll> x, std::vector<ll>y,std::vector<ll>w) {
    ll ans=0;
    for(ll i=0;i<m;++i){
        ans+=x[i];
    }
    return ans;
}

컴파일 시 표준 에러 (stderr) 메시지

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