Submission #500122

# Submission time Handle Problem Language Result Execution time Memory
500122 2021-12-30T10:44:35 Z beaconmc Rice Hub (IOI11_ricehub) C++17
Compilation error
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