QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#94436#5820. 置换alch07Compile Error//C++142.7kb2023-04-05 23:01:552023-04-05 23:01:56

詳細信息

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;
      |                                                                                                                           ^~~~