Submission #152489

# Submission time Handle Problem Language Result Execution time Memory
152489 2019-09-08T08:08:01 Z balbit Friend (IOI14_friend) C++14
Compilation error
0 ms 0 KB
#include <bits/stdc++.h>
#ifndef LOCAL
#include <friend.h>
#endif
using namespace std;
#define ll long long
#define pii pair<int, int>
#define pll pair<ll, ll>
#define SZ(x) (int)(x.size())
#define ALL(x) x.begin(),x.end()
#define FOR(i,a,b) for (int i=a; i<b; i++)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) for (int i = n-1; i>=0; i--)
#define MX(a,b) a = max(a, (__typeof__(a)),b)
#define MN(a,b) a = min(a, (__typeof__(a)),b)

#define int ll

int findSample(int n, int confidence[], int host[], int protocol[]){
	ll re = 0;
	REP(i,n){
		re += confidence[i];
	}
	return re;
	
}


#ifdef LOCAL

int c [ 5 ] = {1,2,3,4,5};
int f[3], p[3];

signed main(){
	cout<<findSample(5,c,f,p)<<endl;
}

#endif

Compilation message

/tmp/ccYk34b7.o: In function `main':
grader.cpp:(.text.startup+0xba): undefined reference to `findSample(int, int*, int*, int*)'
collect2: error: ld returned 1 exit status