QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#409260#6749. TargetGuanYunchangCompile Error//C++20565b2024-05-11 20:56:072024-05-11 20:56:08

Details

answer.code: In function ‘void solve()’:
answer.code:14:13: warning: right shift count >= width of type [-Wshift-count-overflow]
   14 |         m=(1>>50);
      |            ~^~~~
answer.code:16:21: error: invalid operands of types ‘double’ and ‘int’ to binary ‘operator%’
   16 |                 if(m%(1>>i)%2){
      |                    ~^~~~~~~
      |                    |   |
      |                    |   int
      |                    double