제출 #67233

#제출 시각아이디문제언어결과실행 시간메모리
67233zetapi앵무새 (IOI11_parrots)C++14
컴파일 에러
0 ms0 KiB
void encode(int N,int M[]) { int res=0; for(int A=0;A<N;A++) if(M[A]) res+=(1<<A); send(res); return ; } void decode(int N, int L, int X[]) { for(int A=0;A<N;A++) if(X[0]&(1<<A)) output(1); else output(0); return ; }

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

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:7:4: error: 'send' was not declared in this scope
    send(res);
    ^~~~
encoder.cpp: In function 'void decode(int, int, int*)':
encoder.cpp:15:6: error: 'output' was not declared in this scope
      output(1);
      ^~~~~~
encoder.cpp:17:6: error: 'output' was not declared in this scope
      output(0);
      ^~~~~~

/tmp/ccn2Jrnc.o: In function `main':
grader_decoder.cpp:(.text.startup+0x1f6): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status