QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#873576#9249. Elimination Series Once MoreZhangYiDeCompile Error//C++20934b2025-01-26 17:37:432025-01-26 17:37:46

詳細信息

answer.code:5:38: error: ‘CI’ has not been declared
    5 | inline void update(vector <int>& vec,CI pos,CI now=1,CI l=1,CI r=all)
      |                                      ^~
answer.code:5:45: error: ‘CI’ has not been declared
    5 | inline void update(vector <int>& vec,CI pos,CI now=1,CI l=1,CI r=all)
      |                                             ^~
answer.code:5:54: error: ‘CI’ has not been declared
    5 | inline void update(vector <int>& vec,CI pos,CI now=1,CI l=1,CI r=all)
      |                                                      ^~
answer.code:5:61: error: ‘CI’ has not been declared
    5 | inline void update(vector <int>& vec,CI pos,CI now=1,CI l=1,CI r=all)
      |                                                             ^~
answer.code: In function ‘int main()’:
answer.code:13:10: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |     scanf("%d%d",&n,&k); all=1<<n;
      |     ~~~~~^~~~~~~~~~~~~~
answer.code:14:35: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   14 |     for (int i=1;i<=all;++i) scanf("%d",&a[i]),pos[a[i]]=i;
      |                              ~~~~~^~~~~~~~~~~~