Submission #842549

#TimeUsernameProblemLanguageResultExecution timeMemory
842549CodePlatinaRobot 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(i, j, 0, k, 1, 'E'); for(int i = -2; i <= 1; ++i) for(int j = -2; j <= 1; ++j) { set_instruction(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:8:33: error: could not convert 'i' from 'int' to 'std::vector<int>'
    8 |                 set_instruction(i, j, 0, k, 1, 'E');
      |                                 ^
      |                                 |
      |                                 int
robot.cpp:12:29: error: could not convert 'i' from 'int' to 'std::vector<int>'
   12 |             set_instruction(i, -2, -1, j, 1, 'N');
      |                             ^
      |                             |
      |                             int
robot.cpp:13:29: error: could not convert 'i' from 'int' to 'std::vector<int>'
   13 |             set_instruction(i, j, -1, -2, 1, 'S');
      |                             ^
      |                             |
      |                             int
robot.cpp:18:29: error: could not convert 'i' from 'int' to 'std::vector<int>'
   18 |             set_instruction(i, j, -2, -2, 1, 'S');
      |                             ^
      |                             |
      |                             int
robot.cpp:19:29: error: could not convert 'i' from 'int' to 'std::vector<int>'
   19 |             set_instruction(i, -2, j, -2, 1, 'T');
      |                             ^
      |                             |
      |                             int