Problem | gcd |
---|---|
User | Ignatius |
Submission Time | 2025-02-19 16:31:05 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘long long int function(long long int, long long int)’:
gcd.cpp:10:10: error: reference to ‘function’ is ambiguous
10 | return function(b,a%b);
| ^~~~~~~~
In file included from /usr/include/c++/9/functional:59,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from gcd.cpp:1:
/usr/include/c++/9/bits/std_function.h:128:11: note: candidates are: ‘template<class _Signature> class std::function’
128 | class function;
| ^~~~~~~~
gcd.cpp:5:5: note: ‘long long int function(long long int, long long int)’
5 | int function(int a,int b){
| ^~~~~~~~
gcd.cpp: In function ‘int main()’:
gcd.cpp:15:7: error: ‘x’ was not declared in this scope
15 | cin>>x>>y;
|