Problem gcd
User justin271828
Submission Time 2023-06-19 15:27:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gcd.cpp:1:1: error: ‘include’ does not name a type
1 | include <bits/stdc++.h>
| ^~~~~~~
gcd.cpp: In function ‘int gcd(int, int)’:
gcd.cpp:6:3: error: ‘swap’ was not declared in this scope
6 | swap(x, y);
| ^~~~
gcd.cpp: In function ‘int main()’:
gcd.cpp:18:2: error: ‘cin’ was not declared in this scope
18 | cin >> a >> b;
| ^~~
gcd.cpp:19:2: error: ‘cout’ was not declared in this scope
19 | cout << gcd(a, b);
| ^~~~