QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#317025 | #7615. Sequence Folding | bobcheeseburger | Compile Error | / | / | C++23 | 4.2kb | 2024-01-28 12:04:58 | 2024-01-28 12:04:59 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
Details
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;} | ^~~~~~