#include #include #include #include int main(int argc, char* argv[]){ std::cout<<"paste input followed by a ;\n"; std::vector inp; std::string line; std::vector instructions; int reg = 1; int cyc = 0; while(getline(std::cin, line)){ if(line==";") break; if(line.find("noop") != std::string::npos){ instructions.push_back(0); } else { line.erase(0,5); instructions.push_back(0); instructions.push_back(stoi(line)); } } int signal = 0; int crt_r = 0; int reg_2 = 0; std::string crt = ""; for(int i : instructions){ //std::cout<