제출 #1298206

#제출 시각아이디문제언어결과실행 시간메모리
1298206nikakh장애물 (IOI25_obstacles)C++20
컴파일 에러
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;
}

컴파일 시 표준 에러 (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 | }
      | ^