Submission #689755

# Submission time Handle Problem Language Result Execution time Memory
689755 2023-01-29T10:01:50 Z coding_snorlax Bit Shift Registers (IOI21_registers) C++17
Compilation error
0 ms 0 KB
void construct_instructions(int s,int n,int k,int q){
    while(n>1){
        append_right(1,0,(n/2)*k);
        append_and(0,0,1);
        n=n-n/2;
    }
    return;
}

Compilation message

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