Problem uniquenumbers
User Minjia
Submission Time 2023-11-08 15:29:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:8:2: error: expected initializer before ‘int’
8 | int N,x;
| ^~~
uniquenumbers.cpp:9:9: error: ‘N’ was not declared in this scope
9 | cin >> N;
| ^
uniquenumbers.cpp:11:10: error: ‘x’ was not declared in this scope
11 | cin >> x;
| ^
uniquenumbers.cpp:12:14: error: qualified-id in declaration before ‘(’ token
12 | set::insert(x);
| ^
uniquenumbers.cpp:14:10: error: ‘template<class _Key, class _Compare, class _Alloc> class std::set’ used without template arguments
14 | cout << set::size;
| ^~~