Problem | thedarknight |
---|---|
User | dzuizz |
Submission Time | 2024-11-02 04:53:04 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
thedarknight.cpp: In function ‘int main()’:
thedarknight.cpp:6:17: error: ‘__gcd’ was not declared in this scope; did you mean ‘std::__gcd’?
6 | long long g = __gcd(a,b), l = a / g * b;
| ^~~~~
| std::__gcd
In file included from /usr/include/c++/9/algorithm:62,
from thedarknight.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:1238:5: note: ‘std::__gcd’ declared here
1238 | __gcd(_EuclideanRingElement __m, _EuclideanRingElement __n)
| ^~~~~
thedarknight.cpp:7:20: error: ‘l’ was not declared in this scope
7 | std::cout << n / l << '\n';
| ^