제출 #842549

#제출 시각아이디문제언어결과실행 시간메모리
842549CodePlatina로봇 대회 (IOI23_robot)C++17
컴파일 에러
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'); } }

컴파일 시 표준 에러 (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