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

Compile Error

lcm.cpp:4:9: error: ‘a’ was not declared in this scope
4 | int gcd(a, b) {
| ^
lcm.cpp:4:12: error: ‘b’ was not declared in this scope
4 | int gcd(a, b) {
| ^
lcm.cpp:4:13: error: expression list treated as compound expression in initializer [-fpermissive]
4 | int gcd(a, b) {
| ^
lcm.cpp: In function ‘int main()’:
lcm.cpp:20:31: error: ‘gcd’ cannot be used as a function
20 | if(a < b) gcd_num = gcd(b, a);
| ^
lcm.cpp:21:26: error: ‘gcd’ cannot be used as a function
21 | else gcd_num = gcd(a, b);
| ^