Submission #1331212

#TimeUsernameProblemLanguageResultExecution timeMemory
1331212michael12Boxes with souvenirs (IOI15_boxes)C++20
Compilation error
0 ms0 KiB
#include "boxes.h"
#include<bits/stdc++.h>
#define ff first
#define ss second
#define pb push_back
#define endl '\n'
using namespace std;
const int maxn = 1e6 + 5;
const int inf = 1e9 + 5;
int delivery(int N, int K, int L, int p[]){
    int cur = 0;
    for(int i = 0; i < N; i++){
        cur += 2 * p[i];
    }

    return cur;

}

Compilation message (stderr)

boxes.cpp:10:5: error: ambiguating new declaration of 'int delivery(int, int, int, int*)'
   10 | int delivery(int N, int K, int L, int p[]){
      |     ^~~~~~~~
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[]);
      |           ^~~~~~~~