QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#421091#8416. Dzielniki [B]KalenistCompile Error//C++20600b2024-05-25 12:03:072024-05-25 12:03:09

Judging History

你现在查看的是最新测评结果

  • [2024-05-25 12:03:09]
  • 评测
  • [2024-05-25 12:03:07]
  • 提交

answer

#include<bits/stdc++.h>
#include"dzilib.h"
#define ll long long
using namespace std;
int T,bit;
ll mx;
map<ll,ll> f;
inline int calc(ll x){return 63-__builtin_clzll(x);}
inline ll query(ll x){return f.count(x)?f[x]:f[x]=Ask(x);}
inline ll dfs(ll x,int nw)
{
    if(nw == bit) return x;
    ll res=0;
    if(query(mx-x)%(nw+1) == 0) res|=dfs(x,nw+1);
    if(query(mx-x-(1ll<<nw))%(nw+1) == 0) res|=dfs(x+(1ll<<nw),nw+1);
    return res;
}

int main()
{
    T=getT(),bit=calc(getN())+1;
    getC(),getQ(),mx=1ll<<bit;
    while(T--) f.clear(),Answer(dfs(0,0));
    return 0;
}

詳細信息

answer.code: In function ‘int main()’:
answer.code:21:7: error: ‘getT’ was not declared in this scope; did you mean ‘GetT’?
   21 |     T=getT(),bit=calc(getN())+1;
      |       ^~~~
      |       GetT
answer.code:21:23: error: ‘getN’ was not declared in this scope; did you mean ‘GetN’?
   21 |     T=getT(),bit=calc(getN())+1;
      |                       ^~~~
      |                       GetN
answer.code:22:5: error: ‘getC’ was not declared in this scope; did you mean ‘getc’?
   22 |     getC(),getQ(),mx=1ll<<bit;
      |     ^~~~
      |     getc
answer.code:22:12: error: ‘getQ’ was not declared in this scope; did you mean ‘GetQ’?
   22 |     getC(),getQ(),mx=1ll<<bit;
      |            ^~~~
      |            GetQ