QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#155070#6654. 大纲MaMengQiCompile Error//C++141.6kb2023-09-01 09:34:412023-09-01 09:34:41

Details

answer.code: In function ‘void update(long long int, long long int)’:
answer.code:13:63: error: expected ‘;’ before ‘}’ token
   13 |                 f[u].rand_max=max(f[u].rand_max,f[s].rand_max)
      |                                                               ^
      |                                                               ;
   14 |         }else if(f[s].a>=f[u].max1){
      |         ~                                                      
answer.code: In function ‘int main()’:
answer.code:60:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   60 |         scanf("%lld",&T);
      |         ~~~~~^~~~~~~~~~~
answer.code:62:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   62 |                 scanf("%lld",&n);ans=1;
      |                 ~~~~~^~~~~~~~~~~
answer.code:63:50: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   63 |                 for(int i=1;i<=n;i++)f[i]=E,scanf("%lld",&f[i].a),g[i].clear();
      |                                             ~~~~~^~~~~~~~~~~~~~~~
answer.code:65:30: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   65 |                         scanf("%lld%lld",&x,&y);
      |                         ~~~~~^~~~~~~~~~~~~~~~~~