Submission #842550

#TimeUsernameProblemLanguageResultExecution timeMemory
842550CodePlatinaRobot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include "robot.h" void program_pulibot() { for(int i = -2; i <= 1; ++i) for(int j = -2; j <= 1; ++j) for(int k = -2; k <= 1; ++k) set_instruction({0, i, j, 0, k}, 1, 'E'); for(int i = -2; i <= 1; ++i) for(int j = -2; j <= 1; ++j) { set_instruction({0, i, -2, -1, j}, 1, 'N'); set_instruction({i, j, -1, -2, 1}, 'S'); } for(int i = -2; i <= 1; ++i) for(int j = -2; j <= 1; ++j) { set_instruction({i, j, -2, -2, 1}, 'S'); set_instruction({i, -2, j, -2, 1}, 'T'); } }

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:13:51: error: too few arguments to function 'void set_instruction(std::vector<int>, int, char)'
   13 |             set_instruction({i, j, -1, -2, 1}, 'S');
      |                                                   ^
In file included from robot.cpp:1:
robot.h:4:6: note: declared here
    4 | void set_instruction(std::vector<int> S, int Z, char A);
      |      ^~~~~~~~~~~~~~~
robot.cpp:18:51: error: too few arguments to function 'void set_instruction(std::vector<int>, int, char)'
   18 |             set_instruction({i, j, -2, -2, 1}, 'S');
      |                                                   ^
In file included from robot.cpp:1:
robot.h:4:6: note: declared here
    4 | void set_instruction(std::vector<int> S, int Z, char A);
      |      ^~~~~~~~~~~~~~~
robot.cpp:19:51: error: too few arguments to function 'void set_instruction(std::vector<int>, int, char)'
   19 |             set_instruction({i, -2, j, -2, 1}, 'T');
      |                                                   ^
In file included from robot.cpp:1:
robot.h:4:6: note: declared here
    4 | void set_instruction(std::vector<int> S, int Z, char A);
      |      ^~~~~~~~~~~~~~~