Submission #65867

#TimeUsernameProblemLanguageResultExecution timeMemory
65867jaehun630Parrots (IOI11_parrots)C++14
0 / 100
6 ms1128 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i; for (i = 0; i < N; i++) { //subtask1 send(i << 8 + M[i]); } }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b; int ans[100]; for(i=0; i<L; i++) ans[X[i] / 256] = X[i] % 256; for (int i = 0; i < N; i++) output(ans[i]); }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:9:16: warning: suggest parentheses around '+' inside '<<' [-Wparentheses]
    send(i << 8 + M[i]);
              ~~^~~~~~

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:6:10: warning: unused variable 'b' [-Wunused-variable]
   int i, b;
          ^
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...