Submission #57596

#TimeUsernameProblemLanguageResultExecution timeMemory
57596kimjg1119Parrots (IOI11_parrots)C++17
17 / 100
5 ms1744 KiB
#include <stdio.h> #include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i; int a[8]; for(i=0; i<N; i++) { a[i]=M[i]+i*100; } for(i=0; i<N; i++) send(a[i]); return; }
#include <stdio.h> #include "decoder.h" #include "decoderlib.h" void decode(int N, int L, int X[]) { int i, b, temp1, temp2; int temp[8]; for(i=0; i<L; i++) { temp1=X[i]%100; temp2=X[i]/100; temp[temp2]=temp1; } for(i=0; i<L; i++) { b = temp[i]; output(b); } }

Compilation message (stderr)

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:13:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   for(i=0; i<N; i++)
   ^~~
encoder.cpp:15:5: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
     return;
     ^~~~~~
#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...