Submission #1331211

#TimeUsernameProblemLanguageResultExecution timeMemory
1331211michael12선물상자 (IOI15_boxes)C++20
Compilation error
0 ms0 KiB
#include "boxes.h"
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define endl '\n'
#define int long long
using namespace std;
const int maxn = 1e6 + 5;
const int inf = 1e9 + 5;
int delivery(int N, int K, int L, int p[]){
    int cur = 0;
    for(int i = 0; i < N; i++){
        cur += 2 * p[i];
    }

    return cur;

}

Compilation message (stderr)

/usr/bin/ld: /tmp/ccmepGV1.o: in function `main':
grader.c:(.text.startup+0x1e4): undefined reference to `delivery(int, int, int, int*)'
collect2: error: ld returned 1 exit status