Submission #223964

#TimeUsernameProblemLanguageResultExecution timeMemory
223964Kenzo_1114Parrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encoder(int n, int m[]) { for(int i = 0; i < n; i++) { for(int k = 7; k >= 0; k--) if(m[i] & (1 << k)) send(k + 8 * i); } }
#include<bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void decoder(int n, int l, int x[]) { int id = 0; for(int i = 0; i < n; i++) { int num = 0; for(int k = 7; k >= 0; k--) if(id < l && x[id] == k + 8 * i) num += (1 << k), id++; output(num); } }

Compilation message (stderr)

/tmp/cc7UsJhK.o: In function `main':
grader_encoder.cpp:(.text.startup+0x141): undefined reference to `encode(int, int*)'
collect2: error: ld returned 1 exit status

decoder.cpp: In function 'void decoder(int, int, int*)':
decoder.cpp:15:3: error: 'output' was not declared in this scope
   output(num);
   ^~~~~~
decoder.cpp:15:3: note: suggested alternative: 'getpt'
   output(num);
   ^~~~~~
   getpt