0_0_16089454_24011.cpp: In function 'void add(int, int)':
0_0_16089454_24011.cpp:18:41: error: reference to 'plus' is ambiguous
void add(int k, int v) { while (k <= n) plus(t[k], v), k += k & -k; }
^
0_0_16089454_24011.cpp:17:6: note: candidates are: void plus(int&, int)
void plus(int &x, int y) { x += y; if (x >= mod) x -= mod; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16089454_24011.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus
struct plus : public binary_function<_Tp, _Tp, _Tp>
^
0_0_16089454_24011.cpp: In function 'int solve()':
0_0_16089454_24011.cpp:33:3: error: reference to 'plus' is ambiguous
plus(answer, f[m][i]);
^
0_0_16089454_24011.cpp:17:6: note: candidates are: void plus(int&, int)
void plus(int &x, int y) { x += y; if (x >= mod) x -= mod; }
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/string:48:0,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/random:40,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_algo.h:66,
from GCC4.9.2/x86_64-w64-mingw32/include/c++/algorithm:62,
from 0_0_16089454_24011.cpp:2:
GCC4.9.2/x86_64-w64-mingw32/include/c++/bits/stl_function.h:167:12: note: template<class _Tp> struct std::plus
struct plus : public binary_function<_Tp, _Tp, _Tp>
^
|