Submission #774287

#TimeUTC-0UsernameProblemLanguageResultExecution timeMemory
7742872023-07-05 13:38:23alexander707070Parrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "encoder.h"
#include "decoder.h"
#define MAXN 300007
using namespace std;
int n,pos,res;
vector<int> bruh;
/*
void send(int x){
bruh.push_back(x);
}
*/
void encode(int N,int M[]){
n=N;
for(int i=0;i<n;i++){
for(int f=0;f<8;f++){
send(pos*2+M[i]%2);
M[i]/=2; pos++;
}
}
}
void decode(int N,int L,int X[]){
n=N;
sort(X,X+L);
for(int i=0;i<n;i++){
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:20:13: error: 'send' was not declared in this scope
   20 |             send(pos*2+M[i]%2);
      |             ^~~~
encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:35:9: error: 'output' was not declared in this scope
   35 |         output(res);
      |         ^~~~~~

/usr/bin/ld: /tmp/cca7vxmL.o: in function `main':
grader_decoder.cpp:(.text.startup+0x1ef): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status