| Problem | subperm |
|---|---|
| User | shenshiqi |
| Submission Time | 2026-07-16 21:49:37 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
subperm.cpp:28:16: error: ‘chrono’ has not been declared
28 | mt19937_64 gen(chrono::steady_clock::now().time_since_epoch().count());
| ^~~~~~
subperm.cpp: In function ‘long long int count_subperm(int, std::vector<int>)’:
subperm.cpp:32:5: error: ‘unordered_set’ was not declared in this scope
32 | unordered_set <ll> valid;
| ^~~~~~~~~~~~~
subperm.cpp:4:1: note: ‘std::unordered_set’ is defined in header ‘<unordered_set>’; did you forget to ‘#include <unordered_set>’?
3 | #include <random>
+++ |+#include <unordered_set>
4 | using namespace std;
subperm.cpp:5:12: error: expected primary-expression before ‘long’
5 | #define ll long long
| ^~~~
subperm.cpp:32:20: note: in expansion of macro ‘ll’
32 | unordered_set <ll> valid;
| ^~
subperm.cpp:36:9: error: ‘valid’ was not declared in this scope