For g++-11. You can compile above codes using:
>>g++-11 -std=c++20 -fmodules-ts helloworld.cpp main.cpp -o main -xc++-system-header iostream >>./main Hello world