Submission #67233

#TimeUsernameProblemLanguageResultExecution timeMemory
67233zetapiParrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
void encode(int N,int M[]) { int res=0; for(int A=0;A<N;A++) if(M[A]) res+=(1<<A); send(res); return ; } void decode(int N, int L, int X[]) { for(int A=0;A<N;A++) if(X[0]&(1<<A)) output(1); else output(0); return ; }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:7:4: error: 'send' was not declared in this scope
    send(res);
    ^~~~
encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:15:6: error: 'output' was not declared in this scope
      output(1);
      ^~~~~~
encoder.cpp:17:6: error: 'output' was not declared in this scope
      output(0);
      ^~~~~~

/tmp/ccn2Jrnc.o: In function `main':
grader_decoder.cpp:(.text.startup+0x1f6): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status