제출 #64629

#제출 시각아이디문제언어결과실행 시간메모리
64629gnoor앵무새 (IOI11_parrots)C++17
0 / 100
7 ms2336 KiB
#include "encoder.h" #include "encoderlib.h" #include <cassert> void encode(int N, int M[]) { assert(N<=32); for (int i=0;i<N;i++) { for (int j=0;j<8;j++) { if (M[i]&(1<<j)) send(i*8+j); } } }
#include "decoder.h" #include "decoderlib.h" int ans[70]; void decode(int N, int L, int X[]) { int i, b; for(i=0; i<L; i++) { b = X[i]; int pos=X[i]/8; int off=X[i]%8; ans[pos]^=(1<<off); } for (int i=0;i<N;i++) { output(ans[i]); } }

컴파일 시 표준 에러 (stderr) 메시지

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:8:10: warning: variable 'b' set but not used [-Wunused-but-set-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...