제출 #500122

#제출 시각아이디문제언어결과실행 시간메모리
500122beaconmc쌀 창고 (IOI11_ricehub)C++17
컴파일 에러
0 ms0 KiB
#include "ricehub.h" #include <bits/stdc++.h> typedef long long ll; #define FOR(i, x, y) for(ll i=x; i<y; i++) using namespace std; ll besthub(ll r, ll l, ll x[], ll b){ sort(x, x+r); }

컴파일 시 표준 에러 (stderr) 메시지

ricehub.cpp: In function 'll besthub(ll, ll, ll*, ll)':
ricehub.cpp:15:1: warning: no return statement in function returning non-void [-Wreturn-type]
   15 | }
      | ^
/usr/bin/ld: /tmp/ccBOtYwy.o: in function `main':
grader.cpp:(.text.startup+0xae): undefined reference to `besthub(int, int, int*, long long)'
collect2: error: ld returned 1 exit status