Submission #500122

#TimeUsernameProblemLanguageResultExecution timeMemory
500122beaconmcRice Hub (IOI11_ricehub)C++17
Compilation error
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); }

Compilation message (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