Problem | thedarknight |
---|---|
User | StormyGood |
Submission Time | 2025-01-03 21:46:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
thedarknight.cpp: In function ‘int32_t main()’:
thedarknight.cpp:8:23: error: ‘gcd’ cannot be used as a function
8 | int gcd = gcd(a, b);
| ^
thedarknight.cpp:9:20: error: ‘gcd_ab’ was not declared in this scope
9 | int lcm = (a / gcd_ab) * b;
| ^~~~~~
thedarknight.cpp:11:9: error: ‘lcm_ab’ was not declared in this scope
11 | if (lcm_ab > c)
| ^~~~~~
thedarknight.cpp:17:17: error: ‘lcm_ab’ was not declared in this scope
17 | cout << c / lcm_ab << endl;
| ^~~~~~