Problem | gcd |
---|---|
User | charlotteteo |
Submission Time | 2023-06-27 16:33:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
gcd.cpp: In function ‘int main()’:
gcd.cpp:15:5: error: ‘cin’ was not declared in this scope
15 | cin >> a >> b;
| ^~~
gcd.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 |
gcd.cpp:19:5: error: ‘cout’ was not declared in this scope
19 | cout << result << endl;
| ^~~~
gcd.cpp:19:5: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
gcd.cpp:19:23: error: ‘endl’ was not declared in this scope
19 | cout << result << endl;
| ^~~~
gcd.cpp:1:1: note: ‘std::endl’ is defined in header ‘<ostream>’; did you forget to ‘#include <ostream>’?
+++ |+#include <ostream>
1 |