QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#128954#6300. Best Carry Player 2GuanYunchangCompile Error//C++141.1kb2023-07-21 17:14:432023-07-21 17:14:46

Details

answer.code: In function ‘int main()’:
answer.code:27:32: error: invalid operands of types ‘ll [37]’ {aka ‘__int128 [37]’} and ‘int’ to binary ‘operator%’
   27 |                         while(a%10==0) a/=10,z++;
      |                               ~^~~
      |                               | |
      |                               | int
      |                               ll [37] {aka __int128 [37]}
answer.code:27:41: error: invalid operands of types ‘ll [37]’ {aka ‘__int128 [37]’} and ‘int’ to binary ‘operator/’
   27 |                         while(a%10==0) a/=10,z++;
      |                                        ~^~~~
answer.code:27:41: note:   in evaluation of ‘operator/=(ll [37] {aka __int128 [37]}, int)’
answer.code:13:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   13 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
answer.code:15:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   15 |                 scanf("%lld%d",&n,&k);
      |                 ~~~~~^~~~~~~~~~~~~~~~