Submission #1298206

#TimeUsernameProblemLanguageResultExecution timeMemory
1298206nikakhObstacles for a Llama (IOI25_obstacles)C++20
Compilation error
0 ms0 KiB
#include "obstacles.h" #include <bits/stdc++.h> using namespace std; using LL = long long; void initialize(vector<int> T, vector<int> H) { return; } bool can_reach(int L, int R, int S, int D) { if(!T.empty()) return true; }

Compilation message (stderr)

obstacles.cpp: In function 'bool can_reach(int, int, int, int)':
obstacles.cpp:12:7: error: 'T' was not declared in this scope
   12 |   if(!T.empty()) return true;
      |       ^
obstacles.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
   13 | }
      | ^