Submission #351955

#TimeUsernameProblemLanguageResultExecution timeMemory
351955beksultan04Parrots (IOI11_parrots)C++14
Compilation error
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i,c=0; for(i=0; i<N; i++){ send(M[i]+c*255); } }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b; sort(X,X+N); for(i=0; i<N; i++) { b = X[i]-(255*i); output(b); } }

Compilation message (stderr)

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:7:3: error: 'sort' was not declared in this scope; did you mean 'short'?
    7 |   sort(X,X+N);
      |   ^~~~
      |   short