Submission #54008

#TimeUsernameProblemLanguageResultExecution timeMemory
54008ernestvwBoxes with souvenirs (IOI15_boxes)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; //#define int long long void fast_io() { ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL); } int n, k, l; vector<int> P; int delivery(int N, int K, int L, vector<int> positions) { n = N, k = K, l = L, P = positions; if(k == n) { return min(L, min(2*positions.back(), 2*(L+1-positions[0]))); } } /* signed main() { fast_io(); }*/

Compilation message (stderr)

boxes.cpp: In function 'int delivery(int, int, int, std::vector<int>)':
boxes.cpp:19:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/tmp/cchJAdrI.o: In function `main':
grader.c:(.text.startup+0x22f): undefined reference to `delivery(int, int, int, int*)'
collect2: error: ld returned 1 exit status