QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#357264 | #7932. AND-OR closure | zaozao_zmx | Compile Error | / | / | C++14 | 3.8kb | 2024-03-18 19:48:10 | 2024-03-18 19:48:10 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
answer.code:4:171: error: ‘long long int y1 [1001]’ redeclared as different kind of entity 4 | long long T,a,b,c,d[1000001],v[1000001],o,h[1000001],fa[1000001],q,w,e,an,cn,fac[1000001],inv[1000001],st[1000001],u[1000001],bi[40],t1,t2,stt[100001],cnn,y[1001],y1[1001],sm[1100001]; | ^ In file included from /usr/include/features.h:461, from /usr/include/x86_64-linux-gnu/c++/13/bits/os_defines.h:39, from /usr/include/x86_64-linux-gnu/c++/13/bits/c++config.h:679, from /usr/include/c++/13/cassert:43, from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:33, from answer.code:1: /usr/include/x86_64-linux-gnu/bits/mathcalls.h:221:1: note: previous declaration ‘double y1(double)’ 221 | __MATHCALL (y1,, (_Mdouble_)); | ^~~~~~~~~~ answer.code: In function ‘void dfs(int, int)’: answer.code:18:14: warning: pointer to a function used in arithmetic [-Wpointer-arith] 18 | y1[qq]|=(1<<(ww-1)); | ^ answer.code:18:15: error: invalid operands of types ‘double(double) throw ()’ {aka ‘double(double)’} and ‘int’ to binary ‘operator|’ 18 | y1[qq]|=(1<<(ww-1)); | ~~~~~~^~~~~~~~~~~~~ answer.code:18:15: note: in evaluation of ‘operator|=(double(double) throw () {aka double(double)}, int)’ answer.code: In function ‘int main()’: answer.code:126:40: warning: pointer to a function used in arithmetic [-Wpointer-arith] 126 | else g2|=y1[j+1]; | ^ cc1plus: warning: pointer to a function used in arithmetic [-Wpointer-arith] answer.code:126:32: error: invalid operands of types ‘long long int’ and ‘double (*)(double) throw ()’ {aka ‘double (*)(double)’} to binary ‘operator|’ 126 | else g2|=y1[j+1]; | ~~^~~~~~~~~ answer.code:126:32: note: in evaluation of ‘operator|=(long long int, double (*)(double) throw () {aka double (*)(double)})’ answer.code:32:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 32 | scanf("%lld",&a); | ~~~~~^~~~~~~~~~~ answer.code:36:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 36 | scanf("%lld",&d[i]); | ~~~~~^~~~~~~~~~~~~~