According to the C++23 standard, what is the output of this program?
#include <iostream>
int main()
{
int i = 1;
int& j;
j = i;
std::cout << j;
}References must be immediately initialized.
The program has a compilation error
References must be immediately initialized. Not initializing j is a compilation error. §[dcl.init.ref]¶1:
A variable whose declared type is “reference to T” (§[dcl.ref]) shall be initialized.