Submission #1072331

#TimeUsernameProblemLanguageResultExecution timeMemory
1072331Ahmed57Bit Shift Registers (IOI21_registers)C++17
Compilation error
0 ms0 KiB
#include "bits/stdc++.h" using namespace std; void construct_instructions(int s, int n, int k, int q){ append_not(2,0); append_add(3,2,1); append_right(3,3,k); for(int i = 0;i<k-1;i++){ append_left(4,3,1); append_or(3,3,4); } append_move(5,3); append_not(5,5); append_or(3,3,1); append_or(5,5,0); append_or(0,3,5); }

Compilation message (stderr)

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