Submission #500125

# Submission time Handle Problem Language Result Execution time Memory
500125 2021-12-30T10:47:06 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;



int besthub(int R, int L, int X[], llB){
    sort(x, x+r);
    return 0;

}

Compilation message

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);
      |               ^