diff --git a/CMakeLists.txt b/CMakeLists.txt index b5f4121..35be24b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,4 +1,4 @@ -cmake_minimum_required(VERSION 3.11) +cmake_minimum_required(VERSION 3.10) project(park) set(CMAKE_CXX_STANDARD 11) diff --git a/Interface.cpp b/Interface.cpp index 0b15bf2..7054c03 100644 --- a/Interface.cpp +++ b/Interface.cpp @@ -145,7 +145,7 @@ void park(Customer& c, vector& spots) { cout << "The following spots[which can fit your vehicle] are " "available: "; for (Park_spot i : spots) { - if (i.v_type == c.vehicle) { + if (i.v_type == c.vehicle && !(i.taken)) { cout << i.id << ", "; } } diff --git a/test.db3 b/test.db3 index 823aad0..7fccadf 100644 Binary files a/test.db3 and b/test.db3 differ