제출 #774308

#제출 시각아이디문제언어결과실행 시간메모리
774308alexander707070앵무새 (IOI11_parrots)C++14
컴파일 에러
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);
    }
}

컴파일 시 표준 에러 (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.