QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#94436 | #5820. 置换 | alch07 | Compile Error | / | / | C++14 | 2.7kb | 2023-04-05 23:01:55 | 2023-04-05 23:01:56 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
answer.code: In function ‘int main()’: answer.code:53:9: error: ‘vector’ was not declared in this scope 53 | vector <int> cycLen; | ^~~~~~ answer.code:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’? 1 | #include <iostream> +++ |+#include <vector> 2 | #define ll long long answer.code:53:17: error: expected primary-expression before ‘int’ 53 | vector <int> cycLen; | ^~~ answer.code:65:21: error: ‘count’ was not declared in this scope; did you mean ‘cnt’? 65 | count++; | ^~~~~ | cnt answer.code:69:17: error: ‘cycLen’ was not declared in this scope 69 | cycLen.push(cnt); | ^~~~~~ answer.code:72:14: error: ‘cycLen’ was not declared in this scope 72 | sort(cycLen.begin(), cycLen.end()); | ^~~~~~ answer.code:72:9: error: ‘sort’ was not declared in this scope; did you mean ‘short’? 72 | sort(cycLen.begin(), cycLen.end()); | ^~~~ | short answer.code:83:25: error: expected primary-expression before ‘int’ 83 | vector <int> v; | ^~~ answer.code:86:25: error: ‘v’ was not declared in this scope 86 | v.push_back(j); | ^ answer.code:91:40: error: ‘v’ was not declared in this scope 91 | for(int k = 0; k < v.size(); k++){ | ^ answer.code:93:123: error: ‘ifac’ was not declared in this scope 93 | dp[j + v[k]] = dp[j + v[k]] + dp[j] * fastpow(cycLen[i], v[k]-1)%mod * factorial[N-j-1]%mod * ifac[v[k]-1]%mod * ifac[N-j-v[k]]%mod; | ^~~~