Submission #500125

#TimeUsernameProblemLanguageResultExecution timeMemory
500125beaconmcRice 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; int besthub(int R, int L, int X[], llB){ sort(x, x+r); return 0; }

Compilation message (stderr)

ricehub.cpp:12:36: error: 'llB' has not been declared
   12 | int besthub(int R, int L, int X[], llB){
      |                                    ^~~
ricehub.cpp: In function 'int besthub(int, int, int*, int)':
ricehub.cpp:13:10: error: 'x' was not declared in this scope
   13 |     sort(x, x+r);
      |          ^
ricehub.cpp:13:15: error: 'r' was not declared in this scope
   13 |     sort(x, x+r);
      |               ^