Problem lcm
User prannayag
Submission Time 2023-07-27 22:48:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lcm.cpp: In function ‘int main()’:
lcm.cpp:23:37: error: ‘endl’ was not declared in this scope; did you mean ‘std::endl’?
23 | std::cout << (a * b / gcd_num) << endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/9/iostream:39,
from lcm.cpp:1:
/usr/include/c++/9/ostream:599:5: note: ‘std::endl’ declared here
599 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~