QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#30585#3013. XOR Sequencessmax#Compile Error//C++231.2kb2022-04-30 05:47:292022-05-18 04:26:49

Details

answer.code: In function ‘long long int func(const std::vector<long long int>&)’:
answer.code:31:71: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
   31 |         return (2*func(vector<int>(val.begin(), val.begin() + n / 2)))%(1e9+7);
      |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
      |                  |                                                         |
      |                  long long int                                             double
answer.code:41:113: error: invalid operands of types ‘long long int’ and ‘double’ to binary ‘operator%’
   41 |     return (func(vector<int>(val.begin(), val.begin() + n / 2)) * func(vector<int>(val.begin()+n/2, val.end())))%(1e9+7);
      |            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
      |                                                                 |                                                    |
      |                                                                 long long int                                        double