Submission #369095

#TimeUsernameProblemLanguageResultExecution timeMemory
369095NachoLibreFriend (IOI14_friend)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
#define sz(a) ((int)(a).size())
typedef vector<int> vint;
typedef vector<vint> vvint;
#ifndef wambule
#include "friend.h"
#else
#endif

long long findSample(int n, int cfd[], int hst[], int ptc[]) {
	long long dr = 0;
	for(int i = 0; i < n; ++i) {
		dr += cfd[i];
	}
	return dr;
}

#ifdef wambule
int main() {
	ios::sync_with_stdio(0);
	cin.tie(0);
	return 0;
}
#endif

Compilation message (stderr)

friend.cpp:11:11: error: ambiguating new declaration of 'long long int findSample(int, int*, int*, int*)'
   11 | long long findSample(int n, int cfd[], int hst[], int ptc[]) {
      |           ^~~~~~~~~~
In file included from friend.cpp:7:
friend.h:7:5: note: old declaration 'int findSample(int, int*, int*, int*)'
    7 | int findSample(int n,int confidence[],int host[],int protocol[]);
      |     ^~~~~~~~~~