답안 #790414

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
790414 2023-07-22T15:53:15 Z alexander707070 레지스터 (IOI21_registers) C++17
컴파일 오류
0 ms 0 KB
#include<bits/stdc++.h>
#define MAXN 200007
using namespace std;

void construct_instructions(int s, int n, int k, int q){
    append_move(2,1);

    apped_right(1,1,k);

    append_left(2,2,n-k);
    append_right(2,2,n-k);
}

Compilation message

registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:6:5: error: 'append_move' was not declared in this scope
    6 |     append_move(2,1);
      |     ^~~~~~~~~~~
registers.cpp:8:5: error: 'apped_right' was not declared in this scope
    8 |     apped_right(1,1,k);
      |     ^~~~~~~~~~~
registers.cpp:10:5: error: 'append_left' was not declared in this scope
   10 |     append_left(2,2,n-k);
      |     ^~~~~~~~~~~
registers.cpp:11:5: error: 'append_right' was not declared in this scope
   11 |     append_right(2,2,n-k);
      |     ^~~~~~~~~~~~