답안 #500125

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
500125 2021-12-30T10:47:06 Z beaconmc 쌀 창고 (IOI11_ricehub) C++17
컴파일 오류
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);
      |               ^