제출 #1036903

#제출 시각아이디문제언어결과실행 시간메모리
1036903aaaaaarroz앵무새 (IOI11_parrots)C++17
컴파일 에러
0 ms0 KiB
#include "encoder.h" #include "encoderlib.h" #include<bits/stdc++.h> using namespace std; void encode(int N, int M[]) { int i; for(i=0; i<N; i++) int nuevo_i=(i<<9); send(M[i]|nuevo_i); }

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

encoder.cpp: In function 'void encode(int, int*)':
encoder.cpp:9:6: warning: unused variable 'nuevo_i' [-Wunused-variable]
    9 |  int nuevo_i=(i<<9);
      |      ^~~~~~~
encoder.cpp:10:15: error: 'nuevo_i' was not declared in this scope
   10 |     send(M[i]|nuevo_i);
      |               ^~~~~~~

/usr/bin/ld: /tmp/ccSjaxaK.o: in function `main':
grader_decoder.cpp:(.text.startup+0x1ef): undefined reference to `decode(int, int, int*)'
collect2: error: ld returned 1 exit status