Submission #437098

# Submission time Handle Problem Language Result Execution time Memory
437098 2021-06-25T19:24:48 Z Benmath Bit Shift Registers (IOI21_registers) C++17
Compilation error
0 ms 0 KB
#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,k);
   append_and(3,1,2);
  append_move(0,3);
  
   
}

Compilation message

registers.cpp:2:20: error: expected ';' before ',' token
    2 | using namespace std,
      |                    ^
      |                    ;
registers.cpp:2:20: error: expected unqualified-id before ',' token
registers.cpp:4:1: error: expected unqualified-id before 'void'
    4 | void construct_instructions(int s, int n, int k, int q){
      | ^~~~