Submission #500124

#TimeUsernameProblemLanguageResultExecution timeMemory
500124beaconmcRice 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(int r, int l, int x[], ll b){ sort(x, x+r); return 0; }

Compilation message (stderr)

ricehub.cpp:12:4: error: ambiguating new declaration of 'll besthub(int, int, int*, ll)'
   12 | ll besthub(int r, int l, int x[], ll b){
      |    ^~~~~~~
In file included from ricehub.cpp:1:
ricehub.h:1:5: note: old declaration 'int besthub(int, int, int*, long long int)'
    1 | int besthub(int R, int L, int X[], long long B);
      |     ^~~~~~~