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

Compile Error

uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:7:2: error: ‘cin’ was not declared in this scope
7 | cin >> N;
| ^~~
uniquenumbers.cpp:2:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
1 | #include <set>
+++ |+#include <iostream>
2 | using namespace std;
uniquenumbers.cpp:10:14: error: qualified-id in declaration before ‘(’ token
10 | set::insert(x);
| ^
uniquenumbers.cpp:12:2: error: ‘cout’ was not declared in this scope
12 | cout << set::size;
| ^~~~
uniquenumbers.cpp:12:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
uniquenumbers.cpp:12:10: error: ‘template<class _Key, class _Compare, class _Alloc> class std::set’ used without template arguments
12 | cout << set::size;
| ^~~