单选题

以下关于pair的用法,错误的是(    )

A

pair<int, string> p(1, "A");

B

p.first = 2;

C

p.second = 3;

D

cout << p;

赣ICP备20007335号-2