单项选择题

下列语句中,会产生编译错误的是()

A.int x=5;int &ref=x;x++;
B.int x=5;int &ref=x;
C.const int size=100;
D.const int size;