哪位高手来看一下
#include <iostream>using namespace std;
int count = 0;
int selet (int a){
while(a>=2){
if(a%2==0)
{ count++;
a=a/2;
}
else break;
}
while(a>=3){
if(a%3==0)
{
count++;
a=a/3;
}
else break;
}
return count;
void main(){
int n;
cout<<"输入一个整数"<<endl;
cin>>n;
selet (n);
int s;
s=2*count+2;
cout<<s;
}
E:\C++\zhengshu.cpp(22) : error C2601: 'main' : local function definitions are illegal
E:\C++\zhengshu.cpp(31) : fatal error C1004: unexpected end of file found
Error executing cl.exe.
zhengshu.obj - 2 error(s), 0 warning(s)
编译出错;哪位高手帮帮忙呀