QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#612438#8050. Random PermutationZhaoZiLongCompile Error//C++141.0kb2024-10-05 11:07:372024-10-05 11:07:37

Details

answer.code: In function ‘int main()’:
answer.code:27:9: error: ‘ll’ was not declared in this scope
   27 |         ll ans=0;
      |         ^~
answer.code:32:42: error: ‘pow’ was not declared in this scope; did you mean ‘now’?
   32 |                 int maxl=min(3.3e5*3e5/n/pow(max(n/2-a[i],1),0.7),1e9);
      |                                          ^~~
      |                                          now
answer.code:35:36: error: expected primary-expression before ‘)’ token
   35 |                 while((l>1||r<n)&&()){
      |                                    ^
answer.code:58:17: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   58 |                 ans+=now*1ll*a[i];
      |                 ^~~
      |                 abs
answer.code:59:17: error: ‘memset’ was not declared in this scope
   59 |                 memset(cnt1+b-(i-l),0,((i-l)*2+1)*4);
      |                 ^~~~~~
answer.code:3:1: note: ‘memset’ is defined in header ‘<cstring>’; did you forget to ‘#include <cstring>’?
    2 | #include<cstdio>
  +++ |+#include <cstring>
    3 | using namespace std;
answer.code:62:23: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
   62 |         printf("%lld",ans);
      |                       ^~~
      |                       abs
answer.code:22:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   22 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~