Submission #981014

#TimeUsernameProblemLanguageResultExecution timeMemory
981014vjudge1Robot Contest (IOI23_robot)C++17
Compilation error
0 ms0 KiB
#include <algorithm> #include <fstream> #include <vector> #include <queue> #include <stack> #include <iostream> #include <cmath> #include <queue> #include <set> #include <string> #include <cstring> #include <map> #include <unordered_map> #include <unordered_set> #define F first #define S second #define PB push_back using namespace std; const long long MOD=1e9+7, INF=1e18; const int INFI=1e9; typedef long long ll; typedef pair<int, int> ii; typedef vector<int> vi; typedef vector<vi> vvi; typedef vector<ii> vii; typedef vector<pair<int, ii>> viii; typedef vector<vii> vvii; typedef vector<ll> vll; typedef vector<vll> vvll; void program_pulibot(){ set_instruction({0, -2, 0, 0, -2}, 1, 'E'); set_instruction({0, 0, 0, 0, -2}, 1, 'E'); set_instruction({0, -2, -2, 0, 0}, 1, 'E'); set_instruction({0, 0, 0, 0, 0}, 1, 'E'); set_instruction({0, 0, 0, -2, -2}, 1, 'S'); set_instruction({0, 0, 0, -2, 0}, 1, 'S'); set_instruction({0,-2, 0, -2, 0}, 1, 'S'); set_instruction({0, 0, -2, -2, 0}, 1, 'T'); set_instruction({0, -2, -2, -2, 0}, 1, 'T'); set_instruction({0, 0, -2, -2, -2}, 1, 'T'); }

Compilation message (stderr)

robot.cpp: In function 'void program_pulibot()':
robot.cpp:32:5: error: 'set_instruction' was not declared in this scope
   32 |     set_instruction({0, -2, 0, 0, -2}, 1, 'E');
      |     ^~~~~~~~~~~~~~~