Problem | gcd |
---|---|
User | ShaquilleOatmeal34 |
Submission Time | 2025-02-19 16:32:23 |
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:8:3: error: expected ‘}’ before ‘else’
8 | else
| ^~~~
gcd.cpp:6:14: note: to match this ‘{’
6 | if ( b == 0 ){
| ^
gcd.cpp:9:11: error: reference to ‘function’ is ambiguous
9 | 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