Submission #70120

#TimeUsernameProblemLanguageResultExecution timeMemory
70120Just_Solve_The_ProblemBroken Device (JOI17_broken_device)C++11
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> #include "Annalib.h" //#include "grader.cpp" #define ll long long using namespace std; void Anna( int N, long long X, int K, int P[] ){ vector < int > used(N, 0); vector < int > u(N, 0); for (int i = 0; i < K; i++) { used[P[i]] = 1; } int cur = 59; for (int i = 0; i + 1 < N && cur >= 0; i++) { if ((X >> cur) & 1) { if (used[i] || used[i + 1]) { continue; } else { u[i] = u[i + 1] = 1; i++; cur--; } } else { if (used[i]) { continue; } else { u[i] = 1; cur--; i++; } } } for (int i = 0; i < N; i++) { Set(i, u[i]); } }

Compilation message (stderr)

/tmp/ccJB28lP.o: In function `main':
grader_bruno.cpp:(.text.startup+0x126): undefined reference to `Bruno(int, int*)'
collect2: error: ld returned 1 exit status