Submission #1116523

#TimeUsernameProblemLanguageResultExecution timeMemory
1116523PagodePaivaParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include<bits/stdc++.h>
#include "encoder.h"
#include "encoderlib.h"

using namespace std;

void encode(int n, int M[]){
  for(int i = 0;i < n;i++){
    for(int j = 0;j < 8;j += 2){
        int res = 0;
        if((1<<j)&M[i]) res += 1;
        if((1<<(j+1))&M[i]) res += 2;
        res += 4*i;
        int d = j/2;
        res += 64*d;
        send(res);
        //cout << res << '\n';
    }
  }
  return;
}

Compilation message (stderr)

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