QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#518479#5098. 第一代图灵机rollerZCompile Error//C++232.0kb2024-08-13 21:00:052024-08-13 21:00:08

Details

In file included from /usr/include/c++/13/cassert:44,
                 from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:106,
                 from answer.code:1:
answer.code: In function ‘void Tree::Ins(int, int, int, int, int)’:
answer.code:30:8: error: ‘sum’ was not declared in this scope; did you mean ‘Sum’?
   30 | assert(sum[l]==sum[v]);
      |        ^~~
answer.code: In function ‘int main()’:
answer.code:43:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   43 |         int i,j;scanf("%d%d%d",&n,&m,&q);
      |                 ~~~~~^~~~~~~~~~~~~~~~~~~
answer.code:44:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   44 |         for(i=1;i<=n;i++) scanf("%lld",&Sum[i]),Sum[i]+=Sum[i-1];
      |                           ~~~~~^~~~~~~~~~~~~~~~
answer.code:46:32: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   46 |         for(i=1;i<=n;i++) scanf("%d",&c[i]),Tree::Ins(i,*f[c[i]].rbegin()),f[c[i]].insert(i);
      |                           ~~~~~^~~~~~~~~~~~
answer.code:48:33: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   48 |                 int op,x,y;scanf("%d%d%d",&op,&x,&y);
      |                            ~~~~~^~~~~~~~~~~~~~~~~~~~