Problem | democracy |
---|---|
User | Josh28acc2 |
Submission Time | 2024-07-07 20:54:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
democracy.cpp:65:1: error: ‘mt19937’ does not name a type
65 | mt19937 rng(chrono::system_clock::now().time_since_epoch().count());
| ^~~~~~~
democracy.cpp: In function ‘void solve()’:
democracy.cpp:70:11: error: ‘cin’ was not declared in this scope
70 | ll n; cin >> n; map<ll, ll> mp; ll arr[n];
| ^~~
democracy.cpp:52:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
51 | #include <ext/pb_ds/assoc_container.hpp>
+++ |+#include <iostream>
52 | #include <ext/pb_ds/tree_policy.hpp>
democracy.cpp:81:5: error: ‘cout’ was not declared in this scope
81 | cout << arr[ans];
| ^~~~
democracy.cpp:81:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
democracy.cpp: In function ‘int main()’:
democracy.cpp:86:34: error: ‘cin’ was not declared in