QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#139667#6756. 桂花树hyforcesCompile Error//C++207.9kb2023-08-14 09:56:342023-08-14 09:56:37

詳細信息

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);}
      |          ~~~~^