제출 #1196272

#제출 시각아이디문제언어결과실행 시간메모리
1196272Amr레지스터 (IOI21_registers)C++20
컴파일 에러
0 ms0 KiB
#include "registers.h" void construct_instructions(int s, int n, int k, int q) { append_move(1, 0); append_right(2, 1, k); append_and(0, 1, 2); }

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

registers.cpp:1:24: warning: extra tokens at end of #include directive
    1 | #include "registers.h" void construct_instructions(int s, int n, int k, int q) { append_move(1, 0); append_right(2, 1, k); append_and(0, 1, 2); }
      |                        ^~~~
/usr/bin/ld: /tmp/ccKbbRXh.o: in function `main':
grader.cpp:(.text.startup+0x16b): undefined reference to `construct_instructions(int, int, int, int)'
collect2: error: ld returned 1 exit status