Submission #734465

#TimeUsernameProblemLanguageResultExecution timeMemory
734465Alexabcde1Parrots (IOI11_parrots)C++14
0 / 100
2 ms680 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i; for(i=0; i<N; i++) send(i<<1+M[i]); }
#include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b,ans[10]; for(i=0; i<L; i++) { ans[X[i]>>1] = X[i]%2; } for (i=0;i<L;i++) output(X[i]); }

Compilation message (stderr)

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

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:6:10: warning: unused variable 'b' [-Wunused-variable]
    6 |   int i, b,ans[10];
      |          ^
decoder.cpp:6:12: warning: variable 'ans' set but not used [-Wunused-but-set-variable]
    6 |   int i, b,ans[10];
      |            ^~~
#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...