QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#729767#9570. Binary Treeucup-team4883#Compile Error//C++142.3kb2024-11-09 17:48:162024-11-09 17:48:17

Details

answer.code: In function ‘void divid(int)’:
answer.code:81:19: error: invalid types ‘int[int]’ for array subscript
   81 |         if(sz2<sz3[s3]) swap(s2,s3),swap(sz2,sz3);
      |                   ^
answer.code: In function ‘int query(int, int)’:
answer.code:40:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   40 |         scanf("%d",&res);
      |         ~~~~~^~~~~~~~~~~
answer.code: In function ‘void solve()’:
answer.code:112:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  112 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
answer.code:116:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
  116 |                 scanf("%d%d",&x,&y);
      |                 ~~~~~^~~~~~~~~~~~~~