Submission #1036698

#TimeUsernameProblemLanguageResultExecution timeMemory
1036698ereringRobot 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_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'); }

Compilation message (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:23: error: expected identifier before numeric constant
    7 |     set_instructions([0,1,0,0,-2],1,'E');
      |                       ^
robot.cpp:7:24: error: expected ']' before ',' token
    7 |     set_instructions([0,1,0,0,-2],1,'E');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:7:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:7:33: error: expected ')' before ']' token
    7 |     set_instructions([0,1,0,0,-2],1,'E');
      |                     ~           ^
      |                                 )
robot.cpp:8:23: error: expected identifier before numeric constant
    8 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                       ^
robot.cpp:8:24: error: expected ']' before ',' token
    8 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:8:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:8:34: error: expected ')' before ']' token
    8 |     set_instructions([0,-2,0,0,-2],1,'E');
      |                     ~            ^
      |                                  )
robot.cpp:9:23: error: expected identifier before numeric constant
    9 |     set_instructions([0,0,0,-2,1],1,'S');
      |                       ^
robot.cpp:9:24: error: expected ']' before ',' token
    9 |     set_instructions([0,0,0,-2,1],1,'S');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:9:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:9:33: error: expected ')' before ']' token
    9 |     set_instructions([0,0,0,-2,1],1,'S');
      |                     ~           ^
      |                                 )
robot.cpp:10:23: error: expected identifier before numeric constant
   10 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                       ^
robot.cpp:10:24: error: expected ']' before ',' token
   10 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                        ^
      |                        ]
robot.cpp: In lambda function:
robot.cpp:10:24: error: expected '{' before ',' token
robot.cpp: In function 'void program_pulibot()':
robot.cpp:10:34: error: expected ')' before ']' token
   10 |     set_instructions([0,0,0,-2,-2],1,'S');
      |                     ~            ^
      |                                  )