QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#305867 | #5514. Maze | bobcheeseburger | Compile Error | / | / | C++23 | 5.7kb | 2024-01-16 05:09:12 | 2024-01-16 05:09:12 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
answer.code: In function ‘long long int paths(long long int, long long int)’: answer.code:77:33: error: reference to ‘choose’ is ambiguous 77 | int paths(int a, int b) {return choose(a+b, a);} | ^~~~~~ In file included from /usr/include/x86_64-linux-gnu/c++/13/bits/stdc++.h:172, from answer.code:2: /usr/include/c++/13/chrono:2594:16: note: candidates are: ‘enum class std::chrono::choose’ 2594 | enum class choose { earliest, latest }; | ^~~~~~ answer.code:75:5: note: ‘long long int choose(long long int, long long int)’ 75 | int choose(int a, int b) {if (a<b) {return 1;}if (b==a || b==0) {return 1;}return (((factorials[a]*invf[b])%mod)*invf[a-b])%mod;} | ^~~~~~