Submission #147382

#TimeUsernameProblemLanguageResultExecution timeMemory
147382mosiashvililukaArranging Shoes (IOI19_shoes)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
using namespace std;
long long a,b,c,d,e,f[200009];
long long count_swaps(long long N, long long S[]){
	a=N*2;
	for(b=1; b<=a; b++) f[b]=S[b-1];
	if(f[1]<0) return 0LL; else return 1LL;
}

Compilation message (stderr)

/tmp/ccICqZj4.o: In function `main':
grader.cpp:(.text.startup+0x272): undefined reference to `count_swaps(std::vector<int, std::allocator<int> >)'
collect2: error: ld returned 1 exit status