Submission #1036707

#TimeUsernameProblemLanguageResultExecution timeMemory
1036707ereringRobot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h> using namespace std; void set_instruction(int S[], int Z, char A){ } void program_pulibot(){ set_instruction({0,1,0,0,-2},1,'E'); set_instruction({0,-2,0,0,-2},1,'E'); set_instruction({0,0,0,-2,1},1,'S'); set_instruction({0,0,0,-2,-2},1,'S'); }

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:7:39: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
    7 |     set_instruction({0,1,0,0,-2},1,'E');
      |                                       ^
      |                                       |
      |                                       <brace-enclosed initializer list>
robot.cpp:3:26: note:   initializing argument 1 of 'void set_instruction(int*, int, char)'
    3 | void set_instruction(int S[], int Z, char A){
      |                      ~~~~^~~
robot.cpp:8:40: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
    8 |     set_instruction({0,-2,0,0,-2},1,'E');
      |                                        ^
      |                                        |
      |                                        <brace-enclosed initializer list>
robot.cpp:3:26: note:   initializing argument 1 of 'void set_instruction(int*, int, char)'
    3 | void set_instruction(int S[], int Z, char A){
      |                      ~~~~^~~
robot.cpp:9:39: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
    9 |     set_instruction({0,0,0,-2,1},1,'S');
      |                                       ^
      |                                       |
      |                                       <brace-enclosed initializer list>
robot.cpp:3:26: note:   initializing argument 1 of 'void set_instruction(int*, int, char)'
    3 | void set_instruction(int S[], int Z, char A){
      |                      ~~~~^~~
robot.cpp:10:40: error: cannot convert '<brace-enclosed initializer list>' to 'int*'
   10 |     set_instruction({0,0,0,-2,-2},1,'S');
      |                                        ^
      |                                        |
      |                                        <brace-enclosed initializer list>
robot.cpp:3:26: note:   initializing argument 1 of 'void set_instruction(int*, int, char)'
    3 | void set_instruction(int S[], int Z, char A){
      |                      ~~~~^~~