QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#117524#6631. Maximum Bitwise ORFantasy_BallCompile Error//C++141.9kb2023-07-01 15:22:152023-07-01 15:22:16

Details

answer.code: In function ‘int main()’:
answer.code:56:36: error: invalid types ‘int [100005][2][int [100005]]’ for array subscript
   56 |                                 ans[id][ts][1]=0;
      |                                    ^
answer.code:16:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   16 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
answer.code:18:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   18 |                 scanf("%d%d",&n,&q);
      |                 ~~~~~^~~~~~~~~~~~~~
answer.code:20:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   20 |                         scanf("%d",&a[i]);
      |                         ~~~~~^~~~~~~~~~~~
answer.code:37:40: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   37 |                 for(i=1;i<=q;i++) scanf("%d%d",&l[i],&r[i]),id[i]=i;
      |                                   ~~~~~^~~~~~~~~~~~~~~~~~~~