Submission #245730

#TimeUsernameProblemLanguageResultExecution timeMemory
245730uacoder123Cave (IOI13_cave)C++14
Compilation error
0 ms0 KiB
#include "cave.h" #include <bits/stdc++.h> using namespace std; void explorecave(int N) { int n=N; int arr[n]={}; while(tryCombination(arr)) { int ix,x=tryCombination(arr); int i=0; ix=x; while(ix==x) { arr[i]^=1; int iix=tryCombination(arr); if(iix<=ix&&ix!=-1) arr[i]^=1; else x=iix; } } int d[n]; for(int i=0;i<n;++i) { arr[i]^=1; d[i]=tryCombination(arr); arr[i]^=1; } answer(arr,d); exit(0); }

Compilation message (stderr)

/tmp/ccV2z7Qk.o: In function `main':
grader.c:(.text.startup+0xc): undefined reference to `exploreCave'
collect2: error: ld returned 1 exit status