这个哪里错了
#include <iostream>using namespace std;int gcd(int v1,int v2){ while(v2) { int temp=v2; v2=v1 % v2; v1=temp; } return v1;}int main(){ cout<<"Enter two values:"<<endl; int i,j; cin>>i>>j>>endl; cout<<"gcd:"<<gcd(i,j)<<endl; return 0;}