Submission #920025

#TimeUsernameProblemLanguageResultExecution timeMemory
920025coding_snorlaxBoxes with souvenirs (IOI15_boxes)C++14
Compilation error
0 ms0 KiB
#include "boxes.h" #include<bits/stdc++.h> #define ll long long int using namespace std; long long delivery(int N, int K, int L, vector<int> p) { ll answer = 0; for(int i:p){ answer += 2*min(i,L-i); } return answer; }

Compilation message (stderr)

boxes.cpp: In function 'long long int delivery(int, int, int, std::vector<int>)':
boxes.cpp:5:24: warning: unused parameter 'N' [-Wunused-parameter]
    5 | long long delivery(int N, int K, int L, vector<int> p) {
      |                    ~~~~^
boxes.cpp:5:31: warning: unused parameter 'K' [-Wunused-parameter]
    5 | long long delivery(int N, int K, int L, vector<int> p) {
      |                           ~~~~^
/usr/bin/ld: /tmp/cc8ovedY.o: in function `main':
grader.c:(.text.startup+0x1ef): undefined reference to `delivery(int, int, int, int*)'
collect2: error: ld returned 1 exit status