제출 #601160

#제출 시각아이디문제언어결과실행 시간메모리
601160vh50앵무새 (IOI11_parrots)C++17
0 / 100
2 ms1032 KiB
#include <bits/stdc++.h> #include "encoder.h" #include "encoderlib.h" using namespace std; void encode(int N, int M[]) { int num = 0; for(int i = 0; i < N; i++) { if(M[i]) num += (1 << i); } send(num); }
#include <bits/stdc++.h> #include "decoder.h" #include "decoderlib.h" using namespace std; void decode(int N, int L, int X[]) { int i, b; for(int i = 0; i < L; i++) { b = X[i]; output(b); } }

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

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:7:7: warning: unused variable 'i' [-Wunused-variable]
    7 |   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...