Problem | uniquenumbers |
---|---|
User | Minjia |
Submission Time | 2023-11-08 15:17:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
uniquenumbers.cpp: In function ‘int main()’:
uniquenumbers.cpp:6:2: error: ‘cin’ was not declared in this scope
6 | 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:9:14: error: qualified-id in declaration before ‘(’ token
9 | set::insert(x);
| ^
uniquenumbers.cpp:11:2: error: ‘cout’ was not declared in this scope
11 | cout << set::size;
| ^~~~
uniquenumbers.cpp:11:2: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
uniquenumbers.cpp:11:10: error: ‘template<class _Key, class _Compare, class _Alloc> class std::set’ used without template arguments
11 | cout << set::size;
| ^~~