Problem lcm
User AlphanumericUsername
Submission Time 2023-01-11 17:18:03
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp: In function ‘long long int lcm(int, int)’:
lcm.cpp:5:17: error: ‘__gcd’ was not declared in this scope; did you mean ‘__gid_t’?
5 | return (a / __gcd(a, b)) * b;
| ^~~~~
| __gid_t
lcm.cpp: In function ‘int main()’:
lcm.cpp:14:13: error: ‘__gcd’ was not declared in this scope; did you mean ‘__gid_t’?
14 | cout<<(a / __gcd(a, b)) * b<<"\n";
| ^~~~~
| __gid_t