Submission #601164

#TimeUsernameProblemLanguageResultExecution timeMemory
601164vh50Parrots (IOI11_parrots)C++17
0 / 100
1 ms1024 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 < N; i++) { b = X[i]; output(b); } }

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