Submission #1036972

#TimeUsernameProblemLanguageResultExecution timeMemory
1036972ereringRobot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include <bits/stdc++.h>
#include "robot.h"
using namespace std;
void program_pulibot(){
    int s[5]={0,-2,0,0,-2};
    set_instruction(s,1,'E');
}

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:6:21: error: could not convert '(int*)(& s)' from 'int*' to 'std::vector<int>'
    6 |     set_instruction(s,1,'E');
      |                     ^
      |                     |
      |                     int*