제출 #29080

#제출 시각아이디문제언어결과실행 시간메모리
29080aybala앵무새 (IOI11_parrots)C++11
34 / 100
4 ms2096 KiB
#include "encoder.h" #include "encoderlib.h" #include<bits/stdc++.h> #define fori(a,b,c) for(a=b; a<c; a++) #define ford(a,b,c) for(a=b; a>=c; a--) #define mp make_pair #define pb push_back #define ll long long #define pii pair<int,int> using namespace std; void encode(int N, int M[]) { int i; int x = 1; for(i=0; i<N; i++){ send(i*256+M[i]); } }
#include "decoder.h" #include "decoderlib.h" #include<bits/stdc++.h> #define fori(a,b,c) for(a=b; a<c; a++) #define ford(a,b,c) for(a=b; a>=c; a--) #define mp make_pair #define pb push_back #define ll long long #define pii pair<int,int> using namespace std; void decode(int N, int L, int X[]) { int i, b; sort(X,X+L); for(i=0; i<L; i++) { output(X[i]%256); } }

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

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:15:6: warning: unused variable 'x' [-Wunused-variable]
  int x = 1;
      ^

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