답안 #500124

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
500124 2021-12-30T10:45:28 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;



ll besthub(int r, int l, int x[], ll b){
    sort(x, x+r);
    return 0;

}

Compilation message

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