제출 #584546

#제출 시각아이디문제언어결과실행 시간메모리
584546Blagoj앵무새 (IOI11_parrots)C++14
34 / 100
1 ms1028 KiB
#include "encoder.h" #include "encoderlib.h" #include <bits/stdc++.h> using namespace std; void encode(int N, int M[]) { for(int i = 0; i < N; i++) { send(i * 1000 + M[i]); } }
#include "decoder.h" #include "decoderlib.h" #include <bits/stdc++.h> using namespace std; void decode(int N, int L, int X[]) { for (int i = 0; i < N; i++) { int a; for (int j = 0; j < L; j++) { if (X[j] / 1000 == i) { a = X[j] % 1000; } } output(a); } }

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

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:17:11: warning: 'a' may be used uninitialized in this function [-Wmaybe-uninitialized]
   17 |     output(a);
      |     ~~~~~~^~~
#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...