제출 #360869

#제출 시각아이디문제언어결과실행 시간메모리
360869sean617앵무새 (IOI11_parrots)C++98
34 / 100
2 ms1396 KiB
#include "encoder.h" #include "encoderlib.h" void encode(int N, int M[]) { int i, re = 0; for(i=0; i<N; i++) { send(i * 1000 + M[i]); } }
#include "decoder.h" #include "decoderlib.h" #include<cstring> int ans[1000]; void decode(int N, int L, int X[]) { int i = 0, a, b; for (i = 0; i < L; i++) { ans[X[i] / 1000] = X[i] % 1000; } for (i = 0; i < L; i++) { output(ans[i]); } }

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

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:6:12: warning: unused variable 're' [-Wunused-variable]
    6 |     int i, re = 0;
      |            ^~

decoder.cpp: In function 'void decode(int, int, int*)':
decoder.cpp:8:16: warning: unused variable 'a' [-Wunused-variable]
    8 |     int i = 0, a, b;
      |                ^
decoder.cpp:8:19: warning: unused variable 'b' [-Wunused-variable]
    8 |     int i = 0, a, 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...