QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#205966#7565. Harumachi Kazeucup-team1376#Compile Error//C++231.8kb2023-10-07 17:58:032023-10-07 18:01:13

Details

answer.code: In member function ‘void seg::push_up(int)’:
answer.code:32:30: error: ‘add’ was not declared in this scope
   32 |                 tree[k].data=add(tree[k<<1].data,tree[k<<1|1].data);
      |                              ^~~
answer.code: In function ‘int main()’:
answer.code:81:40: error: ‘struct seg’ has no member named ‘add’
   81 |                         if (t==1) T[0].add(ps,x);
      |                                        ^~~
answer.code:86:54: error: ‘struct seg’ has no member named ‘add’
   86 |                                                 T[j].add(tong[j]+1-ps,x);
      |                                                      ^~~
answer.code:89:40: error: ‘num’ was not declared in this scope; did you mean ‘enum’?
   89 |                 else cin>>k,cout<<find(num[k])<<endl,fflush(stdout);
      |                                        ^~~
      |                                        enum