Compile Error

foo.cc: In function 'int main()':
foo.cc:7:10: error: 'a' was not declared in this scope
     cin>>a;
          ^
foo.cc:8:8: error: expected primary-expression before '{' token
  cout<<{}
        ^
foo.cc:9:7: error: expected primary-expression before '{' token
 cout<<{1}
       ^
foo.cc:10:7: error: expected primary-expression before '{' token
 cout<<{2}
       ^
foo.cc:11:7: error: expected primary-expression before '{' token
 cout<<{1,2}
       ^
foo.cc:12:7: error: expected primary-expression before '{' token
 cout<<{3}
       ^
foo.cc:13:7: error: expected primary-expression before '{' token
 cout<<{1,3}
       ^
foo.cc:14:7: error: expected primary-expression before '{' token
 cout<<{2,3}
       ^
foo.cc:15:7: error: expected primary-expression before '{' token
 cout<<{1,2,3}
       ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1142 集合的子集
语言
C++
递交时间
2021-11-28 11:04:23
评测时间
2021-11-28 11:04:23
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes