Problem | thedarknight |
---|---|
User | jyothircool |
Submission Time | 2024-10-10 14:50:18 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
thedarknight.cpp: In function ‘int main()’:
thedarknight.cpp:16:5: error: ‘cin’ was not declared in this scope
16 | 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:17:18: error: ‘lcm’ was not declared in this scope
17 | int lcm_ab = lcm(a, b);
| ^~~
thedarknight.cpp:19:5: error: ‘cout’ was not declared in this scope
19 | cout << times << endl;
| ^~~~
thedarknight.cpp:19:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
thedarknight.cpp:19:22: error: ‘endl’ was not declared in this scope
19 | cout << times << endl;
| ^~~~
thedarknight.cpp:1:1: note: ‘std::endl