Problem robotcontest
User siewjh
Submission Time 2026-09-09 20:56:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

robotcontest.cpp: In function ‘void calc(int, int, int, int, int)’:
robotcontest.cpp:9:16: error: ‘set_instruction’ was not declared in this scope
9 | if (s == 0) set_instruction(sv, 3, dir[2]);
| ^~~~~~~~~~~~~~~
robotcontest.cpp:10:9: error: ‘set_instruction’ was not declared in this scope
10 | else set_instruction(sv, 4, dir[3]);
| ^~~~~~~~~~~~~~~
robotcontest.cpp:13:4: error: ‘set_instruction’ was not declared in this scope
13 | set_instruction(sv, 3, dir[0]);
| ^~~~~~~~~~~~~~~
robotcontest.cpp:18:6: error: ‘set_instruction’ was not declared in this scope
18 | set_instruction(sv, i + 1, dir[i]); return;
| ^~~~~~~~~~~~~~~
robotcontest.cpp:26:6: error: ‘set_instruction’ was not declared in this scope
26 | set_instruction(sv, i + 1, dir[i]); return;
| ^~~~~~~~~~~~~~~
robotcontest.cpp:32:6: error: ‘set_instruction’ was not declared in this