Submission #790412

# Submission time Handle Problem Language Result Execution time Memory
790412 2023-07-22T15:52:33 Z alexander707070 Bit Shift Registers (IOI21_registers) C++17
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
#include "registers.h"
#define MAXN 200007
using namespace std;

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

    move_right(1,1,k);

    move_left(2,2,n-k);
    move_right(2,2,n-k);
}

Compilation message

registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:9:5: error: 'move_right' was not declared in this scope
    9 |     move_right(1,1,k);
      |     ^~~~~~~~~~
registers.cpp:11:5: error: 'move_left' was not declared in this scope
   11 |     move_left(2,2,n-k);
      |     ^~~~~~~~~