Submission #1036903

#TimeUsernameProblemLanguageResultExecution timeMemory
1036903aaaaaarrozParrots (IOI11_parrots)C++17
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include<bits/stdc++.h> using namespace std; void encode(int N, int M[]) { int i; for(i=0; i<N; i++) int nuevo_i=(i<<9); send(M[i]|nuevo_i); }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:9:6: warning: unused variable 'nuevo_i' [-Wunused-variable]
    9 |  int nuevo_i=(i<<9);
      |      ^~~~~~~
encoder.cpp:10:15: error: 'nuevo_i' was not declared in this scope
   10 |     send(M[i]|nuevo_i);
      |               ^~~~~~~

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