#include<iostream>
using namespace std;

class EvenNum{
private:
 int ne;

public:
 int Get(){ return ne; }
 void SetNe(int n) { ne = n ;}

 int EvenS(int n);
};


int EvenNum::EvenS(int n){
 int i,s = 0;
 for(i= 0; i< n ; i++){
  if(i%2 == 0)

   s = s+i;
 }

 return s;
}

int main(){
 int n;
 EvenNum x;

 cout<<"n을 입력하시오. "<<endl;
 cin>>n;

 cout<< x.SetNe(n) <<endl;

 return 0;
}



error C2679: binary '<<' : no operator defined which takes a right-hand operand of type 'void'
(or there is no acceptable conversion)
 
이렇게 나오는데 정확히 뭐가 잘못됐는지 모르겠네..