[ create a new paste ] login | about

Link: http://codepad.org/G1NRy99N    [ raw code | output | fork ]

C++, pasted on Sep 5:
1
2
3
4
int main() {
   const int a = 3;
   int& b = a;
}


Output:
1
2
3
In function 'int main()':
Line 3: error: invalid initialization of reference of type 'int&' from expression of type 'const int'
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: