Dabei kommt dieser Fehler.
main.cpp: In function ‘int main()’:
main.cpp:25:64: error: request for member ‘i’ in ‘classes.std::vector::operator[](((std::vector::size_type)c))’, which is of pointer type ‘__gnu_cxx::__alloc_traits, Test*>::value_type’ {aka ‘Test*’} (maybe you meant to use ‘->’ ?)
25 | std::cout << "Class " << c << " is " << classes[c].i << ".\n";
| ^