QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#316992#6337. Mizuyokan 2bobcheeseburgerCompile Error//C++236.7kb2024-01-28 10:43:222024-01-28 10:43:23

詳細信息

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