QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#438126#8726. Magic Showhyforces#Compile Error//C++201.6kb2024-06-10 09:41:442024-06-10 09:41:44

Details

Bob.code: In function ‘std::pair<__int128, __int128> CRT(__int128, __int128, __int128, __int128)’:
Bob.code:23:17: error: too few arguments to function ‘__int128 safe(__int128, __int128)’
   23 |     return {safe(a1+x*(a2-a1)/g%(x2/g)*x1),nm};
      |             ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
Bob.code:16:5: note: declared here
   16 | Int safe(Int x,Int m){
      |     ^~~~
Bob.code:23:46: error: could not convert ‘{<expression error>, nm}’ from ‘<brace-enclosed initializer list>’ to ‘std::pair<__int128, __int128>’
   23 |     return {safe(a1+x*(a2-a1)/g%(x2/g)*x1),nm};
      |                                              ^
      |                                              |
      |                                              <brace-enclosed initializer list>