답안 #1072331

# 제출 시각 아이디 문제 언어 결과 실행 시간 메모리
1072331 2024-08-23T17:07:44 Z Ahmed57 레지스터 (IOI21_registers) C++17
컴파일 오류
0 ms 0 KB
#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

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);
      |     ^~~~~~~~~