Problem | gcd |
---|---|
User | Henries |
Submission Time | 2024-09-29 14:31:44 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp:3:15: error: ‘a’ was not declared in this scope
3 | long long gcd(a,b){
| ^
gcd.cpp:3:17: error: ‘b’ was not declared in this scope
3 | long long gcd(a,b){
| ^
gcd.cpp:3:18: error: expression list treated as compound expression in initializer [-fpermissive]
3 | long long gcd(a,b){
| ^
gcd.cpp: In function ‘int main()’:
gcd.cpp:16:8: 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:3:11: note: ‘long long int gcd’
3 | long long gcd(a,b){
| ^~~