QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#317025#7615. Sequence FoldingbobcheeseburgerCompile Error//C++234.2kb2024-01-28 12:04:582024-01-28 12:04:59

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;}
      |     ^~~~~~