Error: non-aggregate type ‘vector’ cannot be initialized with an initializer list April 16, 2023 by Tarik Use g++ -std=c++11 <filename> when compiling.