Submission #415244

#TimeUsernameProblemLanguageResultExecution timeMemory
415244fvogel499Parrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
void encode(int N, int M []) { int c = 0; for (int i = 0; i < N; i++) if (M[i] == 1) c += 1<<i; send(c); } void decode(int N, int L, int X []) { output(X[0]); }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:4:5: error: 'send' was not declared in this scope
    4 |     send(c);
      |     ^~~~
encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:8:5: error: 'output' was not declared in this scope
    8 |     output(X[0]);
      |     ^~~~~~

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