QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#612438 | #8050. Random Permutation | ZhaoZiLong | Compile Error | / | / | C++14 | 1.0kb | 2024-10-05 11:07:37 | 2024-10-05 11:07:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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); | ~~~~~^~~~~~~~~