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

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:6:6: error: ‘data_type’ was not declared in this scope
6 | set<data_type> s;
| ^~~~~~~~~
uniquenumbers.cpp:6:15: error: template argument 1 is invalid
6 | set<data_type> s;
| ^
uniquenumbers.cpp:6:15: error: template argument 2 is invalid
uniquenumbers.cpp:6:15: error: template argument 3 is invalid
uniquenumbers.cpp:7:11: error: conflicting declaration ‘std::set<int> s’
7 | set<int> s;
| ^
uniquenumbers.cpp:6:17: note: previous declaration as ‘int s’
6 | set<data_type> s;
| ^
uniquenumbers.cpp:13:14: error: qualified-id in declaration before ‘(’ token
13 | set::insert(x);
| ^
uniquenumbers.cpp:15:10: error: ‘template<class _Key, class _Compare, class _Alloc> class std::set’ used without template arguments
15 | cout &