Submission #481308

#TimeUsernameProblemLanguageResultExecution timeMemory
481308unknownnnnParrots (IOI11_parrots)C++14
34 / 100
2 ms1016 KiB
#include "encoder.h" #include "encoderlib.h" #include <iostream> void encode(int n,int m[]) { for(int i=0 ; i<n ; i++) { m[i]=(m[i]+1000*i); //ne i+1 } for(int i=0 ; i<n ; i++) { send(m[i]); } }
#include "decoder.h" #include "decoderlib.h" #include <iostream> using namespace std; void decode(int n, int l, int m[]) { int broj; int niza[n]; for(int i=0 ; i<n ; i++) { int poz=m[i]/1000; niza[poz]=m[i]-poz*1000; } for(int i=0 ; i<n ; i++) { output(niza[i]); } }

Compilation message (stderr)

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