Submission #774308

#TimeUsernameProblemLanguageResultExecution timeMemory
774308alexander707070Parrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include<bits/stdc++.h> #include "encode.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++; } } } /* int main(){ encode(8,{37,33,153,201,135,135,87,134}); random_shuffle(bruh.begin(),bruh.end()); decode(8,bruh.size(),bruh); } */
#include<bits/stdc++.h> #include "decode.h" #define MAXN 300007 using namespace std; int n,pos,res; vector<int> bruh; void decode(int N,int L,int X[]){ n=N; sort(X,X+L); for(int i=0;i<n;i++){ res=0; for(int f=7;f>=0;f--){ res*=2; res+=X[i*8+f]%2; } output(res); } }

Compilation message (stderr)

encoder.cpp:2:10: fatal error: encode.h: No such file or directory
    2 | #include "encode.h"
      |          ^~~~~~~~~~
compilation terminated.

decoder.cpp:2:10: fatal error: decode.h: No such file or directory
    2 | #include "decode.h"
      |          ^~~~~~~~~~
compilation terminated.