W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
#include <iostream>
#include <set>
using namespace std;
​
int main() {
  set<string> cars;
  cout << cars.empty();  // 输出 1 (集合为空)
  return 0;
}