Why the code is showing compilation error
#include<stdio.h>
#include
using namespace std;
int x, y, GCD;
void extendedEuclidMethod(int a, int b){
if(b == 0){
GCD = a;
x = 1; y = 0;
}
//Recursive call
extendedEuclidMethod(b, a%b);
int cx = y;
int cy = x - (a/b)*y;
x = cx;
y = cy;
return ;
}
int gcd(int a, int b){
return (b == 0) ? a: gcd(b, a%b) ;
}
int main() {
extendedEuclidMethod(18, 30);
cout<<x<<" "<<y<<endl;
return 0;
}