There are so many mistakes that you only copy a small part of them:
Verbose mode can be enabled via `-v, --verbose` option
CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32-s2-saola-1.html
PLATFORM: Espressif 32 (2.0.2) > Espressif ESP32-S2-Saola-1
HARDWARE: ESP32S2 240MHz, 320KB RAM, 4MB Flash
DEBUG: Current (esp-prog) External (esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa)
PACKAGES:
- framework-arduinoespressif32 2.0.2
- tool-esptoolpy 1.30200.211025 (3.2.0)
- tool-mklittlefs 1.203.210628 (2.3)
- toolchain-esp32s2ulp 1.22851.191205 (2.28.51)
- toolchain-riscv32-esp 8.4.0+2021r2
- toolchain-xtensa-esp32s2 8.4.0+2021r2
LDF: Library Dependency Finder -> https://bit.ly/configure-pio-ldf
LDF Modes: Finder ~ chain, Compatibility ~ soft
Found 38 compatible libraries
Scanning dependencies...
Dependency Graph
|-- <PubSubClient> 2.8.0
|-- <TinyGSM> 0.11.5
|-- <EspSoftwareSerial> 6.15.2
|-- <EByte LoRa E32 library> 1.5.2
| |-- <EspSoftwareSerial> 6.15.2
|-- <RTClib> 1.14.1
| |-- <Wire> 2.0.0
|-- <Regexp> 0.1.0
|-- <ArduinoJson> 6.18.5
|-- <WiFi> 2.0.0
Building in release mode
Compiling .pio\build\abiot-gateway-arduinoesp32\src\Scheduler.cpp.o
Compiling .pio\build\abiot-gateway-arduinoesp32\src\config.cpp.o
Compiling .pio\build\abiot-gateway-arduinoesp32\src\lora\CommunicationAbiot.cpp.o
Compiling .pio\build\abiot-gateway-arduinoesp32\src\main.cpp.o
Compiling .pio\build\abiot-gateway-arduinoesp32\src\util\utils.cpp.o
Generating partitions .pio\build\abiot-gateway-arduinoesp32\partitions.bin
Compiling .pio\build\abiot-gateway-arduinoesp32\lib76d\PubSubClient\PubSubClient.cpp.o
In file included from src/config.cpp:1:
src/config.h:14:13: error: 'vector' in namespace 'std' does not name a template type
extern std::vector<int> NODES;
^~~~~~
src/config.h:14:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/config.h:2:1:
+#include <vector>
#define REQUEST_DATA_INTERVAL 5 * 60 * 1000 // ogni tot min richiede dati
src/config.h:14:8:
extern std::vector<int> NODES;
^~~
src/config.cpp:3:6: error: 'vector' in namespace 'std' does not name a template type
std::vector<int> NODES{
^~~~~~
src/config.cpp:3:1: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
+#include <vector>
std::vector<int> NODES{
^~~
Compiling .pio\build\abiot-gateway-arduinoesp32\lib91d\EspSoftwareSerial\SoftwareSerial.cpp.o
*** [.pio\build\abiot-gateway-arduinoesp32\src\config.cpp.o] Error 1
In file included from src/util/utils.cpp:1:
src/util/utils.h:9:30: error: 'vector' in namespace 'std' does not name a template type
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~~~~
src/util/utils.h:9:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/util/utils.h:3:1:
+#include <vector>
/**
src/util/utils.h:9:25:
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~
src/util/utils.h:9:36: error: expected ',' or '...' before '<' token
int searchIdxNode(const std::vector<int> &nodes, int search);
^
src/util/utils.cpp: In function 'bool regexMatch(char*, const String&)':
src/util/utils.cpp:46:21: warning: unknown escape sequence: '\-'
String pieces = "^[0-9]+:D(:[\-]?[0-9]+)";
^~~~~~~~~~~~~~~~~~~~~~~~~
src/util/utils.cpp:48:19: warning: unknown escape sequence: '\-'
pieces += "(:[\-]?[0-9]+)";
^~~~~~~~~~~~~~~~
src/util/utils.cpp: At global scope:
src/util/utils.cpp:65:30: error: 'vector' in namespace 'std' does not name a template type
int searchIdxNode(const std::vector<int> &nodes, int search)
^~~~~~
src/util/utils.cpp:65:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/util/utils.cpp:3:1:
+#include <vector>
src/util/utils.cpp:65:25:
int searchIdxNode(const std::vector<int> &nodes, int search)
^~~
src/util/utils.cpp:65:36: error: expected ',' or '...' before '<' token
int searchIdxNode(const std::vector<int> &nodes, int search)
^
src/util/utils.cpp: In function 'int searchIdxNode(int)':
src/util/utils.cpp:67:25: error: 'nodes' was not declared in this scope
for (int i = 0; i < nodes.size(); i++)
^~~~~
src/util/utils.cpp:67:25: note: suggested alternative: 'note_t'
for (int i = 0; i < nodes.size(); i++)
^~~~~
note_t
src/util/utils.cpp:69:25: error: 'search' was not declared in this scope
if (nodes[i] == search)
^~~~~~
src/util/utils.cpp:69:25: note: suggested alternative:
In file included from c:\users\utente\.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2\xtensa-esp32s2-elf\include\c++\8.4.0\algorithm:62,
from C:/Users/Utente/.platformio/packages/framework-arduinoespressif32@src-01b2ee0664276ec022da2783d94579c3/cores/esp32/Arduino.h:155,
from src/util/utils.h:1,
from src/util/utils.cpp:1:
c:\users\utente\.platformio\packages\toolchain-xtensa-esp32s2@8.4.0+2021r2\xtensa-esp32s2-elf\include\c++\8.4.0\bits\stl_algo.h:4177:5: note: 'std::search'
search(_ForwardIterator1 __first1, _ForwardIterator1 __last1,
^~~~~~
*** [.pio\build\abiot-gateway-arduinoesp32\src\util\utils.cpp.o] Error 1
In file included from src/lora/CommunicationAbiot.cpp:3:
src/config.h:14:13: error: 'vector' in namespace 'std' does not name a template type
extern std::vector<int> NODES;
^~~~~~
src/config.h:14:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/config.h:2:1:
+#include <vector>
#define REQUEST_DATA_INTERVAL 5 * 60 * 1000 // ogni tot min richiede dati
src/config.h:14:8:
extern std::vector<int> NODES;
^~~
In file included from src/main.cpp:2:
src/config.h:14:13: error: 'vector' in namespace 'std' does not name a template type
extern std::vector<int> NODES;
^~~~~~
src/config.h:14:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/config.h:1:1:
+#include <vector>
#include <Arduino.h>
src/config.h:14:8:
extern std::vector<int> NODES;
^~~
In file included from src/main.cpp:6:
src/util/utils.h:9:30: error: 'vector' in namespace 'std' does not name a template type
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~~~~
src/util/utils.h:9:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/util/utils.h:3:1:
+#include <vector>
/**
src/util/utils.h:9:25:
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~
src/util/utils.h:9:36: error: expected ',' or '...' before '<' token
int searchIdxNode(const std::vector<int> &nodes, int search);
^
In file included from src/Scheduler.h:3,
from src/Scheduler.cpp:1:
src/config.h:14:13: error: 'vector' in namespace 'std' does not name a template type
extern std::vector<int> NODES;
^~~~~~
src/config.h:14:8: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/config.h:1:1:
+#include <vector>
#include <Arduino.h>
src/config.h:14:8:
extern std::vector<int> NODES;
^~~
In file included from src/Scheduler.h:4,
from src/Scheduler.cpp:1:
src/lora/CommunicationAbiot.h:31:40: error: 'vector' in namespace 'std' does not name a template type
void requestDataToNodes(const std::vector<int> &toNodes);
^~~~~~
src/lora/CommunicationAbiot.h:31:35: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/lora/CommunicationAbiot.h:3:1:
+#include <vector>
src/lora/CommunicationAbiot.h:31:35:
void requestDataToNodes(const std::vector<int> &toNodes);
^~~
src/lora/CommunicationAbiot.h:31:46: error: expected ',' or '...' before '<' token
void requestDataToNodes(const std::vector<int> &toNodes);
^
src/lora/CommunicationAbiot.h:32:40: error: 'vector' in namespace 'std' does not name a template type
void requestOpenToNodes(const std::vector<int> &toNodes);
^~~~~~
src/lora/CommunicationAbiot.h:32:35: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
void requestOpenToNodes(const std::vector<int> &toNodes);
^~~
src/lora/CommunicationAbiot.h:32:46: error: expected ',' or '...' before '<' token
void requestOpenToNodes(const std::vector<int> &toNodes);
^
src/lora/CommunicationAbiot.h:33:41: error: 'vector' in namespace 'std' does not name a template type
void requestCloseToNodes(const std::vector<int> &toNodes);
^~~~~~
src/lora/CommunicationAbiot.h:33:36: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
void requestCloseToNodes(const std::vector<int> &toNodes);
^~~
src/lora/CommunicationAbiot.h:33:47: error: expected ',' or '...' before '<' token
void requestCloseToNodes(const std::vector<int> &toNodes);
^
In file included from src/Scheduler.cpp:1:
src/Scheduler.h:8:9: error: 'vector' does not name a type; did you mean 'wctob'?
typedef vector<pair<int, pair<uint32_t, uint32_t>>> Schedule;
^~~~~~
wctob
src/Scheduler.h:14:5: error: 'Schedule' does not name a type; did you mean 'Scheduler'?
Schedule schedule;
^~~~~~~~
Scheduler
In file included from src/Scheduler.cpp:2:
src/util/utils.h:9:30: error: 'vector' in namespace 'std' does not name a template type
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~~~~
src/util/utils.h:9:25: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/util/utils.h:1:1:
+#include <vector>
#include <Arduino.h>
src/util/utils.h:9:25:
int searchIdxNode(const std::vector<int> &nodes, int search);
^~~
src/util/utils.h:9:36: error: expected ',' or '...' before '<' token
int searchIdxNode(const std::vector<int> &nodes, int search);
^
src/Scheduler.cpp: In member function 'void Scheduler::clock(CommunicationAbiot&)':
src/Scheduler.cpp:72:10: error: 'vector' is not a member of 'std'
std::vector<int> nodesToOpen, nodesToClose;
^~~~~~
src/Scheduler.cpp:72:10: note: 'std::vector' is defined in header '<vector>'; did you forget to '#include <vector>'?
src/Scheduler.cpp:3:1:
+#include <vector>
#include <ArduinoJson.h>
src/Scheduler.cpp:72:10:
std::vector<int> nodesToOpen, nodesToClose;
^~~~~~