Submission #10161
ソースコード
ステータス
項目 |
データ |
問題 |
0565 - 桁 |
ユーザー名 |
💩
|
投稿日時 |
2016-11-09 13:58:47 |
言語 |
C++11 |
状態 |
Compile Error |
得点 |
0
|
ソースコード長 |
1813 Byte |
最大実行時間 |
-
|
最大メモリ使用量 |
|
コンパイルメッセージ
./Main.cpp: In function ‘ll solve(int, int, int, int)’:
./Main.cpp:38:20: error: reference to ‘plus’ is ambiguous
if( !u ) res = plus(res,solve(p+1,u,ok|(nuzero&&i==k),nuzero));
^
./Main.cpp:21:4: note: candidates are: ll plus(ll, ll)
ll plus(ll a,ll b)
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:48:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/random:40,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:66,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62,
from ./Main.cpp:2:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus
struct plus : public binary_function<_Tp, _Tp, _Tp>
^
./Main.cpp:45:13: error: reference to ‘plus’ is ambiguous
res = plus(res,solve(p+1,nu,ok|(nuzero&&i==k),nuzero));
^
./Main.cpp:21:4: note: candidates are: ll plus(ll, ll)
ll plus(ll a,ll b)
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:48:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/random:40,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:66,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62,
from ./Main.cpp:2:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus
struct plus : public binary_function<_Tp, _Tp, _Tp>
^
./Main.cpp: In function ‘ll solve()’:
./Main.cpp:60:11: error: reference to ‘plus’ is ambiguous
res = plus(res,solve(1,u,i!='0'&&i==k,i!='0'));
^
./Main.cpp:21:4: note: candidates are: ll plus(ll, ll)
ll plus(ll a,ll b)
^
In file included from /usr/local/gcc-5.1.0/include/c++/5.1.0/string:48:0,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/random:40,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_algo.h:66,
from /usr/local/gcc-5.1.0/include/c++/5.1.0/algorithm:62,
from ./Main.cpp:2:
/usr/local/gcc-5.1.0/include/c++/5.1.0/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus
struct plus : public binary_function<_Tp, _Tp, _Tp>
^
セット
テストケース