下面的程序输出什么? set<int> s; int a[] = {3, 1, 3, 2, 1}; for (int x : a) s.insert(x); cout << s.size(); A. 5 B. 4 C. 3 D. 2