QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#139667#6756. 桂花树hyforcesCompile Error//C++207.9kb2023-08-14 09:56:342023-08-14 09:56:37

Details

answer.code: In function ‘int count_2_children(int, int)’:
answer.code:176:27: error: cannot bind non-const lvalue reference of type ‘int&’ to an rvalue of type ‘int’
  176 |         fma(ret,cv,ris(MOD-cv));
      |                           ^
answer.code:9:14: note:   initializing argument 1 of ‘void ris(int&)’
    9 | void ris(int&x){x=((x<0)?x+MOD:x);}
      |          ~~~~^