Submission #1157767

#TimeUsernameProblemLanguageResultExecution timeMemory
1157767aritro_Nile (IOI24_nile)C++20
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;

typedef long long int ll;
#define int ll

vector<int> calculate_costs(
 vector<int>W,vector<int>A,
 vector<int>B,vector<int>E){
    vector<int> costs(E.size(),2);
    return costs;
}
int32_t main(){
    int n;
    cin>>n;
    vector<int> w(n),a(n),b(n);
    for(int i=0;i<n;i++) cin>>w[i]>>a[i]>>b[i];
    int q;
    cin>>q;
    vector<int> d(q);
    for(int i=0;i<q;i++) cin>>d[i];
    calculate_costs(w,a,b,d);
}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccq3fYtL.o: in function `main':
grader.cpp:(.text.startup+0x0): multiple definition of `main'; /tmp/cc4mCiBJ.o:nile.cpp:(.text.startup+0x0): first defined here
/usr/bin/ld: /tmp/ccq3fYtL.o: in function `main':
grader.cpp:(.text.startup+0x30e): 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