Problem gcd
User Hijackedsoul
Submission Time 2023-06-08 17:10:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp: In function ‘int main()’:
gcd.cpp:4:10: error: ‘cin’ is not a member of ‘std’
4 | std::cin >> a >> b ;
| ^~~
gcd.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | int main() {
gcd.cpp:7:18: error: ‘cout’ is not a member of ‘std’
7 | std::cout << gcd;
| ^~~~
gcd.cpp:7:18: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
gcd.cpp:9:14: error: ‘cout’ is not a member of ‘std’
9 | std::cout <<gcd ;
| ^~~~
gcd.cpp:9:14: note: ‘std::cout’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?