Problem | potatotree |
---|---|
User | wongethan8192 |
Submission Time | 2023-03-10 16:03:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
potatotree.cpp: In function ‘int main()’:
potatotree.cpp:7:14: error: ‘unordered_set’ was not declared in this scope
7 | vector<int>z;unordered_set<int>w;
| ^~~~~~~~~~~~~
potatotree.cpp:4:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
3 | #include<set>
+++ |+#include <unordered_set>
4 | using namespace std;
potatotree.cpp:7:28: error: expected primary-expression before ‘int’
7 | vector<int>z;unordered_set<int>w;
| ^~~
potatotree.cpp:9:22: error: ‘w’ was not declared in this scope
9 | for(int i=0;i<y;i++){w.clear();int b;cin>>b;for(int f=0;f<b;f++)w.insert(z[f]);cout<<w.size()<<' ';}
| ^