Submission #931942

#TimeUsernameProblemLanguageResultExecution timeMemory
931942skyvn97Boxes with souvenirs (IOI15_boxes)C++14
Compilation error
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; }

Compilation message (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[]) {
      |                                   ~~~~^~~~~~~~~~~