Submission #437099

# Submission time Handle Problem Language Result Execution time Memory
437099 2021-06-25T19:25:05 Z Benmath Bit Shift Registers (IOI21_registers) C++17
Compilation error
0 ms 0 KB
#include<bits/stdc++.h>
using namespace std;

void construct_instructions(int s, int n, int k, int q){
   
   append_move(1,0);
   append_right(1,1,k);
   append_move(2,0);
   append_left(2,2,k);
   append_and(3,1,2);
  append_move(0,3);
  
   
}

Compilation message

registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:6:4: error: 'append_move' was not declared in this scope
    6 |    append_move(1,0);
      |    ^~~~~~~~~~~
registers.cpp:7:4: error: 'append_right' was not declared in this scope
    7 |    append_right(1,1,k);
      |    ^~~~~~~~~~~~
registers.cpp:9:4: error: 'append_left' was not declared in this scope
    9 |    append_left(2,2,k);
      |    ^~~~~~~~~~~
registers.cpp:10:4: error: 'append_and' was not declared in this scope
   10 |    append_and(3,1,2);
      |    ^~~~~~~~~~