Submission #1036835

#TimeUsernameProblemLanguageResultExecution timeMemory
1036835ereringRobot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
using namespace std;
void set_instruction(int S[5], int Z, char A){

}
void program_pulibot(){//crnt,west,south,east,north.
    int ss[5]={0,-2,0,0,-2};
    set_instruction(ss,1,'E');
    int s[5]={0,1,0,0,-2};
    set_instruction(s,1,'E');
    int sss[5]={0,0,0,-2,1};
    set_instruction(sss,1,'S');
    int ssss[5]={0,0,0,-2,-2};
    set_instruction(ssss,1,'S');
    int a[5]={0,0,-2,-2,1};
    set_instruction(a,1,'T')
}

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:16:29: error: expected ';' before '}' token
   16 |     set_instruction(a,1,'T')
      |                             ^
      |                             ;
   17 | }
      | ~