0_0_31952606_4732.cpp: In function 'int function(int)':
0_0_31952606_4732.cpp:9:14: error: reference to 'function' is ambiguous
return 2 * function(n - 2) + function(n - 1);
^
0_0_31952606_4732.cpp:3:5: note: candidates are: int function(int)
int function(int n) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_31952606_4732.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
0_0_31952606_4732.cpp:9:32: error: reference to 'function' is ambiguous
return 2 * function(n - 2) + function(n - 1);
^
0_0_31952606_4732.cpp:3:5: note: candidates are: int function(int)
int function(int n) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_31952606_4732.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
0_0_31952606_4732.cpp: In function 'int main()':
0_0_31952606_4732.cpp:16:18: error: reference to 'function' is ambiguous
printf("%d\n", function(tmp));
^
0_0_31952606_4732.cpp:3:5: note: candidates are: int function(int)
int function(int n) {
^
In file included from GCC4.9.2/x86_64-w64-mingw32/include/c++/x86_64-w64-mingw32/bits/stdc++.h:70:0,
from 0_0_31952606_4732.cpp:1:
GCC4.9.2/x86_64-w64-mingw32/include/c++/functional:1834:11: note: template<class _Signature> class std::function
class function;
^
|