QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#321236 | #7976. 最后的晚餐 | locsey | Compile Error | / | / | C++20 | 3.7kb | 2024-02-04 11:36:44 | 2024-02-04 11:36:44 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
詳細信息
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;} | ~~~~~^