foo.cpp:1:1: error: 'include' does not name a type
 include<iostream>
 ^
foo.cpp: In function 'int gys(int, int)':
foo.cpp:4:16: error: 'swap' was not declared in this scope
 if(x>y)swap(x,y);
                ^
foo.cpp: In function 'int gbs(int, int)':
foo.cpp:9:16: error: 'swap' was not declared in this scope
 if(x>y)swap(x,y);
                ^
foo.cpp:11:7: error: 'yt' was not declared in this scope
 while(yt%x!=0)t++;
       ^
foo.cpp:12:8: error: 'ty' was not declared in this scope
 return ty;
        ^
foo.cpp: In function 'int main()':
foo.cpp:17:1: error: 'cin' was not declared in this scope
 cin>>x>>y;
 ^
foo.cpp:24:1: error: 'cout' was not declared in this scope
 cout<<count<<endl;
 ^
foo.cpp:24:14: error: 'endl' was not declared in this scope
 cout<<count<<endl;
              ^
foo.cpp: In function 'int gbs(int, int)':
foo.cpp:13:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^