| Problem | thedarknight |
|---|---|
| User | kit17 |
| Submission Time | 2026-05-21 13:41:41 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
thedarknight.cpp: In function ‘int main()’:
thedarknight.cpp:5:5: error: ‘cin’ was not declared in this scope
5 | cin >> a >> b >> n;
| ^~~
thedarknight.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
thedarknight.cpp:7:25: error: ‘gcd’ was not declared in this scope
7 | int lcm = (a * b) / gcd(a, b);
| ^~~
thedarknight.cpp:9:5: error: ‘cout’ was not declared in this scope
9 | cout << n / lcm;
| ^~~~
thedarknight.cpp:9:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?