Problem | yunah |
---|---|
User | WJR |
Submission Time | 2025-07-26 20:27:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
yunah.cpp: In function ‘int main()’:
yunah.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> n >> k;
| ^~~
yunah.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
yunah.cpp:6:5: error: ‘unordered_set’ was not declared in this scope
6 | unordered_set<int> no_friends;
| ^~~~~~~~~~~~~
yunah.cpp:1:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
+++ |+#include <unordered_set>
1 | using namespace std;
yunah.cpp:6:19: error: expected primary-expression before ‘int’
6 | unordered_set<int> no_friends;
| ^~~
yunah.cpp:10:9: error: ‘no_friends’ was not declared in this scope
10 | no_friends.insert(x);
|