Submission #1196274

#TimeUsernameProblemLanguageResultExecution timeMemory
1196274Amr레지스터 (IOI21_registers)C++20
Compilation error
0 ms0 KiB
#include "registers.h" void construct_instructions(int s, int n, int k, int q) { for(int i = 1; i < n; i++) { append_right(i,0,i*k); } for(int i = n-1; i >= 1; i--) { and(i-1,i,i-1); } }

Compilation message (stderr)

registers.cpp: In function 'void construct_instructions(int, int, int, int)':
registers.cpp:10:12: error: expected identifier before '(' token
   10 |         and(i-1,i,i-1);
      |            ^