제출 #931942

#제출 시각아이디문제언어결과실행 시간메모리
931942skyvn97선물상자 (IOI15_boxes)C++14
컴파일 에러
0 ms0 KiB
#include "boxes.h" #include<bits/stdc++.h> using namespace std; int delivery(int N, int K, int L, int positions[]) { return 220797; }

컴파일 시 표준 에러 (stderr) 메시지

boxes.cpp:6:5: error: ambiguating new declaration of 'int delivery(int, int, int, int*)'
    6 | int delivery(int N, int K, int L, int positions[]) {
      |     ^~~~~~~~
In file included from boxes.cpp:1:
boxes.h:4:11: note: old declaration 'long long int delivery(int, int, int, int*)'
    4 | long long delivery(int N, int K, int L, int p[]);
      |           ^~~~~~~~
boxes.cpp: In function 'int delivery(int, int, int, int*)':
boxes.cpp:6:18: warning: unused parameter 'N' [-Wunused-parameter]
    6 | int delivery(int N, int K, int L, int positions[]) {
      |              ~~~~^
boxes.cpp:6:25: warning: unused parameter 'K' [-Wunused-parameter]
    6 | int delivery(int N, int K, int L, int positions[]) {
      |                     ~~~~^
boxes.cpp:6:32: warning: unused parameter 'L' [-Wunused-parameter]
    6 | int delivery(int N, int K, int L, int positions[]) {
      |                            ~~~~^
boxes.cpp:6:39: warning: unused parameter 'positions' [-Wunused-parameter]
    6 | int delivery(int N, int K, int L, int positions[]) {
      |                                   ~~~~^~~~~~~~~~~