Problem subperm
User shenshiqi
Submission Time 2026-07-17 10:05:26
Score 0
Max Time N/A
Max Memory N/A

Compile Error

subperm.cpp: In function ‘long long int count_subperm(int, std::vector<int>)’:
subperm.cpp:65:11: error: ‘LLONG_MAX’ was not declared in this scope
65 | ll mn = LLONG_MAX, mx = LLONG_MIN;
| ^~~~~~~~~
subperm.cpp:8:1: note: ‘LLONG_MAX’ is defined in header ‘<climits>’; did you forget to ‘#include <climits>’?
7 | #include <algorithm>
+++ |+#include <climits>
8 | using namespace std;
subperm.cpp:68:4: error: ‘mx’ was not declared in this scope; did you mean ‘mn’?
68 | mx = max(mx, pos[i]);
| ^~
| mn