답안 #500122

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
500122 2021-12-30T10:44:35 Z beaconmc 쌀 창고 (IOI11_ricehub) C++17
컴파일 오류
0 ms 0 KB
#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);
    
}

Compilation message

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