Submission #1219863

#TimeUsernameProblemLanguageResultExecution timeMemory
1219863SpyrosAlivParrots (IOI11_parrots)C++20
Compilation error
0 ms0 KiB
#include "parrots.h"
#include <bits/stdc++.h>
using namespace std;

void encode(int n, vector<int> m) {
    int fin = 0;
    for (int i = 0; i < n; i++) {
        fin |= (1 << m[i]);
    }
    send(fin);
}
#include "parrots.h"
#include <bits/stdc++.h>
using namespace std;

void decode(int n, int l, vector<int> x) {
    vector<int> fin;
    for (int i = 0; i < n; i++) {
        if ((x[0] >> i) & 1) fin.push_back(1);
        else fin.push_back(0);
    }
    output(fin);
}

Compilation message (stderr)

# 1번째 컴파일 단계

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