제출 #1337183

#제출 시각아이디문제언어결과실행 시간메모리
1337183aritro_Nile (IOI24_nile)C++20
컴파일 에러
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;

typedef long long ll;
#define endl '\n'
#define pb push_back
#define ff first
#define ss second
#define all(a) a.begin(),a.end()

vector<ll> calclate_costs(vector<int>w,vector<int>a,vector<int>b,vector<int>e){
    int n=a.size();
    ll cost=0;
    for(int i=0;i<n;i++) cost+=b[i];
    vector<ll> ans(e.size());
    for(int i=0;i<e.size();i++) ans[i]=cost;
    return ans;
}

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

/usr/bin/ld: /tmp/ccwwT4MC.o: in function `main':
grader.cpp:(.text.startup+0x2ff): undefined reference to `calculate_costs(std::vector<int, std::allocator<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