제출 #500124

#제출 시각아이디문제언어결과실행 시간메모리
500124beaconmc쌀 창고 (IOI11_ricehub)C++17
컴파일 에러
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; }

컴파일 시 표준 에러 (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);
      |     ^~~~~~~