QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#321236#7976. 最后的晚餐locseyCompile Error//C++203.7kb2024-02-04 11:36:442024-02-04 11:36:44

Details

answer.code: In function ‘void Solver::mian()’:
answer.code:37:50: warning: format ‘%d’ expects argument of type ‘int’, but argument 3 has type ‘long int’ [-Wformat=]
   37 |                 fprintf(stderr, "floor memery : %d\n", (&_st - &_ed) >> 20);
      |                                                 ~^     ~~~~~~~~~~~~~~~~~~~
      |                                                  |                   |
      |                                                  int                 long int
      |                                                 %ld
answer.code:63:28: error: cannot bind non-const lvalue reference of type ‘int&’ to a value of type ‘ull’ {aka ‘long long unsigned int’}
   63 |                         Ad(ans, (ll)ff * s1 % mod);
      |                            ^~~
answer.code:30:25: note:   initializing argument 1 of ‘void Solver::Ad(int&, const int&)’
   30 |     inline void Ad(int &x, const int &y) {if((x += y) >= mod) x -= mod;}
      |                    ~~~~~^