0_0_37861482_21221.cpp: In function 'long long int dfs(long long int, long long int, long long int, long long int)':
0_0_37861482_21221.cpp:31:44: error: 'max' was not declared in this scope
int num=max(0ll,max(d-1,up-1-(d!=0))); //不是d 不是0 不是up
^
0_0_37861482_21221.cpp:31:45: error: 'max' was not declared in this scope
int num=max(0ll,max(d-1,up-1-(d!=0))); //不是d 不是0 不是up
^
0_0_37861482_21221.cpp:31:45: error: redeclaration of '<typeprefixerror>max'
0_0_37861482_21221.cpp:31:44: note: previous declaration '<typeprefixerror>max'
int num=max(0ll,max(d-1,up-1-(d!=0))); //不是d 不是0 不是up
^
0_0_37861482_21221.cpp:39:29: error: 'max' was not declared in this scope
int num=max(0ll,up-1); //其他数 非0 非up
^
0_0_37861482_21221.cpp: In function 'long long int calc(long long int)':
0_0_37861482_21221.cpp:47:27: error: 'memset' was not declared in this scope
memset(dp,-1,sizeof dp);
^
0_0_37861482_21221.cpp: In function 'void solve()':
0_0_37861482_21221.cpp:57:48: error: 'scanf' was not declared in this scope
scanf("%lld%lld%lld%lld%lld",&k,&b,&d,&l,&r);
^
0_0_37861482_21221.cpp:58:5: error: 'cout' was not declared in this scope
cout<<(calc(r)-calc(l-1)+mod)%mod<<"\n";
^
0_0_37861482_21221.cpp: In function 'int main()':
0_0_37861482_21221.cpp:62:20: error: 'scanf' was not declared in this scope
scanf("%lld",&T);
^
|