제출 #54008

#제출 시각아이디문제언어결과실행 시간메모리
54008ernestvw선물상자 (IOI15_boxes)C++11
컴파일 에러
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(); }*/

컴파일 시 표준 에러 (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