using namespace std;
#pragma GCC optimize("Ofast")
#include <iostream>
#include <algorithm>
#include <vector>
#include <utility>
#include <stack>
#include <queue>
#include <set>
#include <map>
typedef long long LL;
typedef pair<int,int> pii;
#define F first
#define S second
#define pb push_back
#define mkp make_pair
#define iter(x) x.begin() x.end()
#define REP(n) for (int __=n;__--;)
#define REP0(i,n) for (int i=0;i<n;++i)
#define REP1(i,n) for (int i=1;i<=n;++i)
const int maxn = 0,mod = 0;
const LL inf = 0;
void solve2(int n,int k,int q){}
vector <bool> tran(int x){
vector <bool> ret(2000,false);
REP0(i,4) if ((x >> i) & 1) ret[i] = true;
return ret;
}
void jizz(int x){
REP1(i,3){
append_left(99,x,i);
append_or(x,x,99);
}
REP1(i,3){
append_right(99,x,i);
append_or(x,x,99);
}
append_not(x,x);
}
void construct_instructions(int s, int n, int k, int q){
if (s == 1){
solve2(n,k,q);
return;
}
if (k == 1){
append_right(1,0,1);
append_print(0);
append_print(1);
append_not(0,0);
append_not(1,1);
append_or(0,0,1);
append_not(0,0);
append_print(0);
}
else if (k == 2){
append_move(1,0);
append_store(0,tran(0));
append_print(1);
append_store(49,tran(5));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(1));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(6));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(1));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(7));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(1));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(9));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(1));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(10));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(2));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(11));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(2));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(13));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(1));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(14));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(2));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
append_store(49,tran(15));
append_xor(69,1,49);
jizz(69);
append_store(70,tran(3));
append_and(7,70,69);
append_or(0,0,7);
append_print(0);
}
}
Compilation message
registers.cpp: In function 'void jizz(int)':
registers.cpp:36:9: error: 'append_left' was not declared in this scope
36 | append_left(99,x,i);
| ^~~~~~~~~~~
registers.cpp:37:9: error: 'append_or' was not declared in this scope
37 | append_or(x,x,99);
| ^~~~~~~~~
registers.cpp:40:9: error: 'append_right' was not declared in this scope
40 | append_right(99,x,i);
| ^~~~~~~~~~~~
registers.cpp:41:9: error: 'append_or' was not declared in this scope
41 | append_or(x,x,99);
| ^~~~~~~~~
registers.cpp:43:5: error: 'append_not' was not declared in this scope
43 | append_not(x,x);
| ^~~~~~~~~~
registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:52:9: error: 'append_right' was not declared in this scope
52 | append_right(1,0,1);
| ^~~~~~~~~~~~
registers.cpp:53:9: error: 'append_print' was not declared in this scope
53 | append_print(0);
| ^~~~~~~~~~~~
registers.cpp:55:9: error: 'append_not' was not declared in this scope
55 | append_not(0,0);
| ^~~~~~~~~~
registers.cpp:57:9: error: 'append_or' was not declared in this scope
57 | append_or(0,0,1);
| ^~~~~~~~~
registers.cpp:62:9: error: 'append_move' was not declared in this scope
62 | append_move(1,0);
| ^~~~~~~~~~~
registers.cpp:63:9: error: 'append_store' was not declared in this scope
63 | append_store(0,tran(0));
| ^~~~~~~~~~~~
registers.cpp:64:9: error: 'append_print' was not declared in this scope
64 | append_print(1);
| ^~~~~~~~~~~~
registers.cpp:67:9: error: 'append_xor' was not declared in this scope
67 | append_xor(69,1,49);
| ^~~~~~~~~~
registers.cpp:70:9: error: 'append_and' was not declared in this scope
70 | append_and(7,70,69);
| ^~~~~~~~~~
registers.cpp:71:9: error: 'append_or' was not declared in this scope
71 | append_or(0,0,7);
| ^~~~~~~~~