제출 #842550

#제출 시각아이디문제언어결과실행 시간메모리
842550CodePlatina로봇 대회 (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({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'); } }

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