QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#139667 | #6756. 桂花树 | hyforces | Compile Error | / | / | C++20 | 7.9kb | 2023-08-14 09:56:34 | 2023-08-14 09:56:37 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
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);} | ~~~~^