제출 #437105

#제출 시각아이디문제언어결과실행 시간메모리
437105Benmath레지스터 (IOI21_registers)C++17
컴파일 에러
0 ms0 KiB
#include "registers.h"
#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,b-k);
   append_and(3,1,2);
  append_move(0,3);
  
   
}

컴파일 시 표준 에러 (stderr) 메시지

registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:10:20: error: 'b' was not declared in this scope
   10 |    append_left(2,2,b-k);
      |                    ^