| Problem | gcd |
|---|---|
| User | AthanChee03 |
| Submission Time | 2023-11-08 11:34:40 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:20:19: error: no matching function for call to ‘gcd(int&)’
20 | cout << gcd(input);
| ^
gcd.cpp:4:5: note: candidate: ‘int gcd(int, int)’
4 | int gcd(int a, int b){
| ^~~
gcd.cpp:4:5: note: candidate expects 2 arguments, 1 provided
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: candidate: ‘template<class _Mn, class _Nn> constexpr std::common_type_t<_Mn, _Nn> std::gcd(_Mn, _Nn)’
132 | gcd(_Mn __m, _Nn __n) noexcept
| ^~~
/usr/include/c++/9/numeric:132:5: note: template argument deduction/substitution failed:
gcd.cpp:20:19: note: candidate expects 2 arguments, 1 provided
20 | cout << gcd(input);
| ^