Submission #584546

#TimeUsernameProblemLanguageResultExecution timeMemory
584546BlagojParrots (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); } }

Compilation message (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...