Submission #1052705

#TimeUsernameProblemLanguageResultExecution timeMemory
1052705kachim2Parrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include "grader.cpp" #include"decoder.cpp" #include<bits/stdc++.h> using namespace std; vector<vector<int>> gr; void bt(vector<int> &x){ gr.push_back(x); if(x.size() == 7) return; int last = 0; if (x.size()!=0) last=x.back(); for(int i = last; i <=3; i++){ x.push_back(i); bt(x); x.pop_back(); } } void encode(int N, int M[]) { {vector<int> x; bt(x);} cerr << gr.size(); int i; for(i=0; i<N; i++){ auto x = gr[M[i]]; for(auto j:x){ send((i<<2) | j); } } }

Compilation message (stderr)

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

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