Problem | gcd |
---|---|
User | Broompositive |
Submission Time | 2023-01-24 17:34:25 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp:4:9: error: ‘a’ was not declared in this scope
4 | int gcd(a, b){
| ^
gcd.cpp:4:12: error: ‘b’ was not declared in this scope
4 | int gcd(a, b){
| ^
gcd.cpp:4:13: error: expression list treated as compound expression in initializer [-fpermissive]
4 | int gcd(a, b){
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:16:10: error: reference to ‘gcd’ is ambiguous
16 | cout << gcd(a, b);
| ^~~
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:84,
from gcd.cpp:1:
/usr/include/c++/9/numeric:132:5: note: candidates are: ‘template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)’
132 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
gcd.cpp:4:5: note: ‘int gcd’
4 | int gcd(a, b){
| ^~~