제출 #1036705

#제출 시각아이디문제언어결과실행 시간메모리
1036705erering로봇 대회 (IOI23_robot)C++17
컴파일 에러
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void set_instruction(int[] S, int Z, char A){ } void program_pulibot(){ set_instructions({0,1,0,0,-2},1,'E'); set_instructions({0,-2,0,0,-2},1,'E'); set_instructions({0,0,0,-2,1},1,'S'); set_instructions({0,0,0,-2,-2},1,'S'); }

컴파일 시 표준 에러 (stderr) 메시지

robot.cpp:3:28: error: expected ',' or '...' before 'S'
    3 | void set_instruction(int[] S, int Z, char A){
      |                            ^
robot.cpp: In function 'void program_pulibot()':
robot.cpp:7:5: error: 'set_instructions' was not declared in this scope; did you mean 'set_instruction'?
    7 |     set_instructions({0,1,0,0,-2},1,'E');
      |     ^~~~~~~~~~~~~~~~
      |     set_instruction